/* باكستان بالعربية — نظام بصري موحد للنسخة المحلية */
:root {
  /* عرض الصفحة على الكمبيوتر، واحد لكل صفحات الزوار: غلاف 1240 بهامشين 20 = محتوى 1200 مثل الرئيسية */
  --page-w: 1240px;
  --page-in: 1200px;
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --fg: #17201B;
  --muted: #56635B;
  --line: #DCE3DD;
  --accent: #0B5D33;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4F0E8;
  --ok: #1E7A45;
  --warn-bg: #FFF1CC; --warn-fg: #6B4A00;
  --bad-bg: #FBE3DF;  --bad-fg: #8E2A1E;
  --chip: #EEF2EE;
  --ph-a: #0B5D33; --ph-b: #013D1C; --ph-ink: #E4F0E8;
  --font-display: 'Amiri', 'Times New Roman', serif;
  --font-ui: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Noto Naskh Arabic', 'Geeza Pro', 'Traditional Arabic', serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  --font-persian: 'Vazirmatn', Tahoma, sans-serif;
  --font-en: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1512; --surface: #16201B; --fg: #E5ECE7; --muted: #9AA9A0; --line: #273630;
    --accent: #6CC795; --accent-ink: #0E1512; --accent-soft: #1C3127; --ok: #6CC795; --chip: #1D2923;
    --warn-bg: #3A2F12; --warn-fg: #F3D78A; --bad-bg: #3B1C17; --bad-fg: #F2A99D;
    --ph-a: #1C3127; --ph-b: #0F1F17; --ph-ink: #9AD5B2;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* النص الأردي بالنستعليق أينما ورد، أيا كان خط الموقع */
[lang="ur"] { font-family: var(--font-urdu); line-height: 2.1; }
/* ما وسمه public/urdu.js تلقائيا (data-ur): النستعليق يغلب خط المكون، كاسم المصدر في الشارة أو خيار القائمة.
   والشارة ذات السطر الضيق تتسع لنزول حروف النستعليق فلا تقص */
[data-ur] { font-family: var(--font-urdu) !important; }
[data-ur="1"] { line-height: 2; }
.src-pill[data-ur], .time-pill[data-ur], .chip[data-ur], .st[data-ur] { line-height: 2.35; padding-block: 0; }
/* السندية والبشتو بخط الموقع (لا خط ثابت كالنستعليق الأردي)، وبسطر أوسع لنقاط حروفها السفلية (ڀ ٻ ڄ ڃ). فحص Cairo: فيه حروفها كلها */
[lang="sd"], .orig.sd, .hl.orig-only.sd, .alt-t.sd, .trow-t.sd, .ncard-title.sd, .hit-title.sd, .story-title.sd, .tick-t.sd,
[lang="ps"], .orig.ps, .hl.orig-only.ps, .alt-t.ps, .trow-t.ps, .ncard-title.ps, .hit-title.ps, .story-title.ps, .tick-t.ps { font-family: var(--font-head); line-height: 1.9; }
/* الفارسية بخطها وحده أينما وردت (وزيرمتن، --font-persian في theme.css)، يغلب خط المكون وخط البطاقة:
   خط الموقع تنقصه حروف فارسية فيرسمها المتصفح بخط آخر وتتداخل. ما وسمه public/urdu.js يأخذ data-fa */
[lang="fa"], [lang="fa"] *, .fa:not(body) { font-family: var(--font-persian) !important; }
[lang="fa"], .fa:not(body) { line-height: 1.9; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--page-w); margin: 0 auto; padding-inline: 20px; padding-block: 24px 64px; display: flex; flex-direction: column; gap: 22px; }

/* الرأس */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.brand { font-family: var(--font-display); font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0; }
.brand a { color: inherit; text-decoration: none; }
.sub { color: var(--muted); margin: 4px 0 0; }
.status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.busy { background: #D9A400; }
.nav { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; }

/* التبويبات والتصفية */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { appearance: none; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted); padding: 10px 16px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 44px; }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.seg { display: inline-flex; align-self: flex-start; background: var(--chip); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 16px; min-height: 38px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.chip.topic { font-size: 14px; font-weight: 600; padding: 7px 14px; min-height: 40px; }
.col { display: flex; flex-direction: column; gap: 16px; }

/* البطاقات */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--chip); overflow: hidden; display: block; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(140deg, var(--ph-a), var(--ph-b)); color: var(--ph-ink); text-align: center; padding: 12px; }
.ph b { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.ph span { font-size: 12px; opacity: .85; }
.credit { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
/* خانات البطاقة ثابتة الارتفاع: كل بطاقة بالمقاس نفسه وكل معلومة في موضعها */
.hl { margin: 0; height: 96px; font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 32px; text-wrap: pretty; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.hl a { color: var(--fg); text-decoration: none; }
.hl a:hover { color: var(--accent); }
.hl.orig-only.en { font-family: var(--font-en); direction: ltr; text-align: left; font-weight: 600; }
.hl.orig-only.ur { font-family: var(--font-urdu); font-weight: 500; font-size: 16px; }
.subline { height: 30px; display: flex; align-items: center; min-width: 0; }
.orig { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.orig.en { font-family: var(--font-en); font-size: 14px; direction: ltr; text-align: right; }
.orig.ur { font-family: var(--font-urdu); font-size: 15px; line-height: 2.2; }
.pending { font-size: 12px; color: var(--muted); background: var(--chip); padding: 2px 8px; border-radius: 999px; }
.cov { height: 40px; display: flex; align-items: center; min-width: 0; }
.cov-none { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-btn { appearance: none; border: 0; font: inherit; font-size: 13px; width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); cursor: pointer; text-align: start; min-width: 0; }
.cov-btn b { color: var(--accent); font-weight: 700; white-space: nowrap; }
.cov-btn span { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-btn i { font-style: normal; color: var(--accent); font-size: 18px; line-height: 1; }

/* نافذة «الخبر نفسه في مصادر أخرى» */
.sheet { border: 0; padding: 0; background: transparent; color: var(--fg); width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 720px); }
.sheet::backdrop { background: rgba(10, 20, 15, .55); }
.sheet-box { background: var(--surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: min(80vh, 720px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 17px; color: var(--accent); }
.sheet-close { appearance: none; border: 0; background: var(--chip); color: var(--fg); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.sheet-list { list-style: none; margin: 0; padding: 0 18px 8px; overflow-y: auto; }
.sheet-list li + li { border-top: 1px solid var(--line); }
.alt { display: block; padding: 10px 0; color: var(--fg); text-decoration: none; }
a.alt:hover .alt-t { color: var(--accent); }
.alt-src { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.alt-src i { font-style: normal; font-weight: 400; color: var(--muted); white-space: nowrap; }
.alt-t { display: block; overflow-wrap: anywhere; font-size: 15px; }
.alt-t.ar { font-family: var(--font-head); font-weight: 600; }
.alt-t.en { font-family: var(--font-en); direction: ltr; text-align: left; }
.alt-t.ur { font-family: var(--font-urdu); line-height: 2.1; }
.foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.time { font-size: 12px; color: var(--muted); line-height: 1.35; font-variant-numeric: tabular-nums; }
.time b { display: block; color: var(--fg); font-weight: 600; font-size: 13px; }
.read { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 13px; padding: 0 14px; min-height: 40px; border-radius: 10px; white-space: nowrap; }
.more { align-self: center; }
.btn { appearance: none; font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); border-radius: 10px; padding: 0 18px; min-height: 42px; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 40px 20px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 75ch; }

/* لوحة المصادر */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
td.num { font-variant-numeric: tabular-nums; }
td small { display: block; color: var(--muted); }
.st { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.st.ok { background: var(--accent-soft); color: var(--ok); }
.st.late { background: var(--warn-bg); color: var(--warn-fg); }
.st.bad { background: var(--bad-bg); color: var(--bad-fg); }
.st.off, .st.wait { background: var(--chip); color: var(--muted); }
.err { color: var(--bad-fg); white-space: normal; max-width: 260px; }
.switch { width: 46px; height: 28px; border-radius: 999px; border: 0; padding: 3px; cursor: pointer; display: flex; align-items: center; background: #C9D1CC; justify-content: flex-end; }
.switch[aria-checked="true"] { background: var(--accent); justify-content: flex-start; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.25); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .15s, transform .15s; }
  .card:hover { border-color: var(--accent); transform: translateY(-2px); }
}

/* لوحة المصادر: البحث والتصفية والأقسام */
.tools { display: flex; flex-direction: column; gap: 10px; }
.search { font: inherit; font-size: 15px; width: 100%; max-width: 420px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip i { font-style: normal; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
tr.grp th { background: var(--accent-soft); color: var(--fg); font-size: 14px; padding: 10px 14px; }
tr.grp th b { color: var(--accent); margin-inline-end: 10px; }
tr.grp th span { color: var(--muted); font-weight: 400; font-size: 12px; }
tr.same td:first-child b { color: var(--muted); font-weight: 500; }
.empty.flat { border: 0; border-radius: 0; }

/* نموذج إضافة مصدر */
.form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field span i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; font-weight: 400; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; min-width: 0; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.result { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.result b { color: var(--accent); }
.result span { color: var(--muted); }
.result ul { margin: 4px 0 0; padding-inline-start: 18px; }
.result li { overflow-wrap: anywhere; }
.msg { margin: 0; font-size: 14px; color: var(--muted); }
.msg.bad { color: var(--bad-fg); background: var(--bad-bg); padding: 8px 12px; border-radius: 10px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.result code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; text-align: left; }

/* تعديل المصدر وحذفه */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.bad { border-color: var(--bad-fg); background: var(--bad-fg); color: var(--surface); }
.btn.bad.ghost { background: none; color: var(--bad-fg); border-color: transparent; padding-inline: 4px; }
.grow { flex: 1; }
.danger { background: var(--bad-bg); color: var(--bad-fg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.danger p { margin: 0; font-size: 14px; }

/* صورة الصحيفة العامة لخبر بلا صورة: كاملة على خلفية هادئة */
.media img.site { object-fit: contain; padding: 18px; background: var(--chip); }

/* الفيديو في البطاقة */
.media .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 24px; line-height: 64px; padding-inline-start: 5px; cursor: pointer; }
.media .play:hover, .media .play:focus-visible { background: var(--accent); }
.media .vtag { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.media:has(.play) { background: #111; }
.media.playing { background: #000; }
.media.playing iframe, .media.playing video { width: 100%; height: 100%; border: 0; display: block; }

/* ——— لوحة التحكم: شريط جانبي وأقسام ——— */
body.admin { min-height: 100vh; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: var(--surface); border-inline-end: 1px solid var(--line); }
.side-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); padding: 0 8px; }
.side-brand b { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.side-brand span { font-size: 13px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 42px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.side-nav a i { font-style: normal; width: 18px; text-align: center; color: var(--muted); }
.side-nav a:hover { background: var(--chip); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.side-nav a[aria-current="page"] i { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.side-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.side-link { font-size: 14px; font-weight: 600; text-decoration: none; }
/* المحتوى يملأ عرض المساحة بجانب الشريط الجانبي في كل الأقسام، بلا فراغ على أحد الجانبين */
.main { padding: 28px clamp(16px, 3vw, 40px) 64px; display: flex; flex-direction: column; gap: 18px; min-width: 0; width: 100%; }
.pane { display: flex; flex-direction: column; gap: 18px; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pane-head h1 { margin: 0; font-size: 26px; }
.lead { margin: 0; color: var(--muted); max-width: 75ch; }
.sec { font-size: 17px; margin: 6px 0 0; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box h2 { margin: 0; font-size: 16px; }
.box h3 { margin: 0; font-size: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.stat.ok b { color: var(--ok); }
.stat.warn b { color: var(--warn-fg); }
.stat.bad b { color: var(--bad-fg); }
.prov-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.provider .inline input, .task input, .task select { font: inherit; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); min-width: 0; width: 100%; }
.actions.left { justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.actions { flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 18px; }
.form-grid .sec, .form-grid .wide { grid-column: 1 / -1; }
.form-grid input[type=number] { font: inherit; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
.field small { font-weight: 400; }
.planned { opacity: .7; }
.test-out { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pair { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.orig-t { color: var(--muted); font-size: 13px; }
.ar-t { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
table.mini { font-size: 14px; }
table.mini th, table.mini td { padding: 8px 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.err-box { margin: 0; font-size: 13px; color: var(--bad-fg); background: var(--bad-bg); padding: 8px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.fail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fail-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fail-list .err { max-width: none; }
.gl-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.gl-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.gl-row input { font: inherit; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); min-width: 0; }
.gl-row .arrow { color: var(--muted); }
.toast { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; transform: translateX(50%); margin: 0; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.2); z-index: 50; max-width: min(90vw, 560px); }
.toast.bad { background: var(--bad-fg); color: #fff; }
.st.wait { background: var(--chip); color: var(--muted); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; gap: 10px; padding: 12px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .side-nav a { white-space: nowrap; min-height: 38px; }
  .side-foot { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 0; padding: 0; }
  .main { padding-inline: 16px; }
  .gl-row { grid-template-columns: 1fr 1fr auto; }
  .gl-row .arrow { display: none; }
}

/* الأزرار التي هي روابط */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; align-self: flex-start; }

/* ——— البحث ——— */
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); }
.searchbar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.searchbar .btn { min-height: 48px; padding: 0 22px; }
/* زر البحث فوق الشريط الأخضر في الصفحة الرئيسية: ذهبي الهوية بنص أخضر داكن، فلا يذوب في الخلفية */
.searchbar .btn.primary { background: var(--count-edge, #C9A961); border-color: var(--count-edge, #C9A961); color: #0B2E29; font-weight: 700; }
.searchbar .btn.primary:hover { background: color-mix(in oklab, var(--count-edge, #C9A961) 85%, #fff); }
.searchbar .btn.primary:focus-visible { outline: 2px solid #F4EBD0; outline-offset: 2px; }
.results { display: flex; flex-direction: column; gap: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 20px; }
.filters .sep { width: 1px; background: var(--line); margin: 4px 6px; }
.hits { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.hit + .hit { border-top: 1px solid var(--line); }
.hit { display: flex; gap: 14px; padding: 14px 16px; }
.hit-title { color: var(--fg); text-decoration: none; }
a.hit-title:hover { color: var(--accent); }
.hit-thumb { display: block; flex: 0 0 132px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--chip); }
.hit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hit-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hit-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.hit-title.en { font-family: var(--font-en); direction: ltr; text-align: left; font-weight: 600; }
.hit-title.ur { font-family: var(--font-urdu); font-weight: 500; font-size: 16px; line-height: 2.1; }
.hit-orig { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.hit-orig.en { font-family: var(--font-en); direction: ltr; text-align: right; }
.hit-orig.ur { font-family: var(--font-urdu); line-height: 2; }
.hit-sum { color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.hit-sum.en { direction: ltr; text-align: left; font-family: var(--font-en); }
.hit-sum.ur { font-family: var(--font-urdu); line-height: 2.1; }
.hits mark { background: #FFE58A; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { .hits mark { background: #6B5A12; } }
@media (max-width: 560px) { .hit-thumb { flex-basis: 92px; height: 68px; } }

/* ——— شريط «آخر الأخبار» النصي ——— */
/* الشريط مثبت من اليمين (أول السطر العربي)، ويتحرك نحو اليمين بمقدار نسخة كاملة ثم يعود بلا قفزة ظاهرة */
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 44px; }
.ticker-label { display: flex; align-items: center; padding: 0 14px; background: var(--bad-bg); color: var(--bad-fg); font-weight: 700; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.ticker-view { flex: 1; overflow: hidden; display: flex; align-items: center; min-width: 0; }
.ticker-track { display: flex; gap: 36px; width: max-content; padding-inline: 18px; animation: ticker-run 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tick-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--fg); text-decoration: none; font-size: 14px; }
a.tick-item:hover .tick-t { color: var(--accent); }
.tick-item .urgent { background: var(--bad-fg); color: var(--surface); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.tick-t.en { font-family: var(--font-en); }
.tick-t.ur { font-family: var(--font-urdu); font-size: 15px; line-height: 2; }

.icon-btn { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 16px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ——— زر «أخبار جديدة» ——— */
.newpill { position: sticky; top: 12px; z-index: 5; align-self: center; appearance: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: 8px 18px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-view { overflow-x: auto; }
}

/* تعليمات المترجم */
.prompt-box { display: flex; flex-direction: column; gap: 6px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
textarea.prompt { font: inherit; font-size: 14px; line-height: 1.8; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); resize: vertical; min-height: 180px; width: 100%; }
textarea.prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ——— المسرد ——— */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-add-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.gl-add-grid input { font: inherit; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; min-width: 0; }
.gl-add-grid .btn { min-height: 42px; }
.gl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gl-tools .search { flex: 1; min-width: 220px; }
table.gl-table td small { display: block; }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.2); font-size: 14px; }
.savebar .btn:not(.primary) { background: transparent; color: var(--bg); border-color: var(--bg); }
.sheet.wide { width: min(900px, calc(100vw - 24px)); }
.sheet.wide .form { gap: 12px; }
@media (max-width: 760px) { .gl-add-grid { grid-template-columns: 1fr; } }

/* ——— المسرد: لكل لغة لونها، وفاصل واضح بين الأعمدة ——— */
:root { --lang-ar: #0B5D33; --lang-ar-bg: #E8F3EC; --lang-en: #1E4F8A; --lang-en-bg: #EAF1FA; --lang-ur: #8A5A0B; --lang-ur-bg: #FBF2E2; }
@media (prefers-color-scheme: dark) { :root { --lang-ar: #6CC795; --lang-ar-bg: #17291F; --lang-en: #8DB6EA; --lang-en-bg: #172334; --lang-ur: #E6B866; --lang-ur-bg: #2E2414; } }
.lang-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px; margin-inline-end: 8px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; vertical-align: middle; }
.gl-ar .lang-tag { background: var(--lang-ar); }
.gl-en .lang-tag { background: var(--lang-en); font-family: var(--font-en); }
.gl-ur .lang-tag { background: var(--lang-ur); font-family: var(--font-urdu); line-height: 1; }
.gl-add .field span { display: flex; align-items: center; }
.gl-add .gl-ar input { border-color: color-mix(in srgb, var(--lang-ar) 40%, var(--line)); }
.gl-add .gl-en input { border-color: color-mix(in srgb, var(--lang-en) 40%, var(--line)); font-family: var(--font-en); }
.gl-add .gl-ur input { border-color: color-mix(in srgb, var(--lang-ur) 40%, var(--line)); font-family: var(--font-urdu); }

table.gl-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
table.gl-table col.c-ar { width: 30%; }
table.gl-table col.c-en { width: 33%; }
table.gl-table col.c-ur { width: 33%; }
table.gl-table col.c-del { width: 4%; }
table.gl-table th.gl-h { font-size: 13px; color: var(--fg); padding: 12px 14px; border-bottom: 2px solid; }
table.gl-table th.gl-ar { background: var(--lang-ar-bg); border-bottom-color: var(--lang-ar); }
table.gl-table th.gl-en { background: var(--lang-en-bg); border-bottom-color: var(--lang-en); }
table.gl-table th.gl-ur { background: var(--lang-ur-bg); border-bottom-color: var(--lang-ur); }
table.gl-table td { padding: 0; vertical-align: middle; white-space: normal; border-bottom: 1px solid var(--line); }
table.gl-table td.gl-cell + td.gl-cell { border-inline-start: 1px solid var(--line); }
table.gl-table td.gl-ar { background: color-mix(in srgb, var(--lang-ar-bg) 45%, transparent); }
table.gl-table tbody tr:hover td { background: var(--chip); }
table.gl-table tr.conflict td { background: var(--bad-bg); }
.gl-view { appearance: none; border: 0; background: none; width: 100%; min-height: 48px; padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; text-align: start; cursor: text; color: var(--fg); font: inherit; }
.gl-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.gl-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; line-height: 1.5; border: 1px solid transparent; }
.gl-ar .gl-chip { background: none; padding: 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--lang-ar); }
.gl-en .gl-chip { background: var(--lang-en-bg); color: var(--lang-en); border-color: color-mix(in srgb, var(--lang-en) 25%, transparent); font-family: var(--font-en); font-weight: 600; }
.gl-ur .gl-chip { background: var(--lang-ur-bg); color: var(--lang-ur); border-color: color-mix(in srgb, var(--lang-ur) 25%, transparent); font-family: var(--font-urdu); font-size: 13px; line-height: 2; padding-block: 0; }
.gl-missing { font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; }
table.gl-table td.gl-cell input { font: inherit; font-size: 14px; width: calc(100% - 16px); margin: 6px 8px; min-height: 36px; padding: 0 10px; border: 2px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--fg); outline: none; }
table.gl-table td.gl-en input { font-family: var(--font-en); }
table.gl-table td.gl-ur input { font-family: var(--font-urdu); }
td.gl-del { text-align: center; }
.gl-x { appearance: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; opacity: .45; }
tr:hover .gl-x, .gl-x:focus-visible { opacity: 1; }
.gl-x:hover { background: var(--bad-bg); color: var(--bad-fg); }
.gl-add .field span i.lang-tag { color: #fff; font-weight: 700; }
.gl-ur .gl-chip { font-size: 14px; line-height: 2.3; padding: 1px 12px 3px; }

/* ——— الهوية: الأخضر الباكستاني الرسمي (لون العلم) ——— */
:root {
  --pk-green: #0c4f47;
  --brand-hover: color-mix(in oklab, var(--pk-green) 82%, white);
  --brand-light: color-mix(in oklab, var(--pk-green) 45%, white);
  --brand-line: color-mix(in oklab, var(--pk-green) 75%, white);
}

/* شاشة الترحيب للزائر الجديد */
@keyframes splash-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes splash-shine { from { opacity: .0; } 50% { opacity: .18; } to { opacity: 0; } }
.splash { display: none; }
html.splash-on { overflow: hidden; }
html.splash-on .splash { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: var(--pk-green); transition: opacity .6s ease, visibility .6s; }
html.splash-on .splash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff 0, transparent 55%); animation: splash-shine 1.6s ease-in-out both; pointer-events: none; }
.splash img { width: min(300px, 70vw); height: auto; animation: splash-in .9s cubic-bezier(.2, .7, .2, 1) both; position: relative; z-index: 1; }
html.splash-out .splash { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .splash img, html.splash-on .splash::after { animation: none; } }

/* الصفحة الرئيسية: أخضر ثابت خلف الرأس ثم يتلاشى تلاشيا ناعما حتى نصف الشاشة.
   منحنى التلاشي جيبي (بطيء في أوله وآخره) فلا يظهر للتدرج حد في أي موضع */
body.home {
  background:
    linear-gradient(to bottom,
    var(--pk-green) 0,
    var(--pk-green) 190px,
    color-mix(in oklab, var(--pk-green) 98.3%, var(--bg)) calc(190px + (100% - 190px) * 0.083),
    color-mix(in oklab, var(--pk-green) 93.3%, var(--bg)) calc(190px + (100% - 190px) * 0.167),
    color-mix(in oklab, var(--pk-green) 85.4%, var(--bg)) calc(190px + (100% - 190px) * 0.250),
    color-mix(in oklab, var(--pk-green) 75%, var(--bg)) calc(190px + (100% - 190px) * 0.333),
    color-mix(in oklab, var(--pk-green) 62.9%, var(--bg)) calc(190px + (100% - 190px) * 0.417),
    color-mix(in oklab, var(--pk-green) 50%, var(--bg)) calc(190px + (100% - 190px) * 0.500),
    color-mix(in oklab, var(--pk-green) 37.1%, var(--bg)) calc(190px + (100% - 190px) * 0.583),
    color-mix(in oklab, var(--pk-green) 25%, var(--bg)) calc(190px + (100% - 190px) * 0.667),
    color-mix(in oklab, var(--pk-green) 14.6%, var(--bg)) calc(190px + (100% - 190px) * 0.750),
    color-mix(in oklab, var(--pk-green) 6.7%, var(--bg)) calc(190px + (100% - 190px) * 0.833),
    color-mix(in oklab, var(--pk-green) 1.7%, var(--bg)) calc(190px + (100% - 190px) * 0.917),
    var(--bg) 100%) no-repeat,
    var(--bg);
  background-size: 100% max(50vh, 520px), auto;
}
.masthead { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #fff; }
.mast-bar { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.masthead .pill { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #E8F3EC; }
.masthead .nav a { color: #fff; opacity: .9; }
.masthead .nav a:hover { opacity: 1; text-decoration: underline; }
.logo { margin: 4px 0 0; line-height: 0; }
.logo img { width: min(265px, 64vw); height: auto; display: block; }
.masthead .sub { color: rgba(255, 255, 255, .88); margin: 2px 0 6px; font-size: 14px; }
@media (max-width: 560px) { .mast-bar { justify-content: center; } }

/* شعار لوحة التحكم: الأخضر على الفاتح، والأبيض في الوضع الداكن */
.side-brand { align-items: center; gap: 6px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
.side-brand img { width: 100%; max-width: 200px; height: auto; display: block; }
.side-brand span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--chip); padding: 2px 10px; border-radius: 999px; }
@media (max-width: 860px) { .side-brand { flex-direction: row; justify-content: space-between; border-bottom: 0; padding-bottom: 4px; } .side-brand img { max-width: 150px; } }

/* ——— الشارات المدورة: أسماء المصادر والوقت والتصنيف ———
   ست درجات هادئة، لكل مصدر واحدة ثابتة، بخلفية فاتحة ونص داكن من اللون نفسه */
:root {
  --t0-bg: #E6F1EA; --t0-fg: #1F5A3A;
  --t1-bg: #E5EDF6; --t1-fg: #24496E;
  --t2-bg: #F5EEDF; --t2-fg: #6B4E16;
  --t3-bg: #E3F1F1; --t3-fg: #1E5A5C;
  --t4-bg: #EFE8F3; --t4-fg: #533C67;
  --t5-bg: #F4E7E4; --t5-fg: #763A2E;
  --time-bg: #EEF0EF; --time-fg: #55605A;
  --count-bg: var(--pk-green); --count-fg: #F4EBD0; --count-edge: #C9A961;
}
@media (prefers-color-scheme: dark) {
  :root {
    --t0-bg: #1B3326; --t0-fg: #A6D9BB;
    --t1-bg: #1B2A3B; --t1-fg: #A9C6E6;
    --t2-bg: #33291A; --t2-fg: #E5CB93;
    --t3-bg: #183133; --t3-fg: #9DD3D4;
    --t4-bg: #2A2233; --t4-fg: #CDB8DD;
    --t5-bg: #35211D; --t5-fg: #E7B2A6;
    --time-bg: #1F2925; --time-fg: #A3B1A9;
  }
}
.src-pill, .time-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 1px 10px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tone-0 { background: var(--t0-bg); color: var(--t0-fg); }
.tone-1 { background: var(--t1-bg); color: var(--t1-fg); }
.tone-2 { background: var(--t2-bg); color: var(--t2-fg); }
.tone-3 { background: var(--t3-bg); color: var(--t3-fg); }
.tone-4 { background: var(--t4-bg); color: var(--t4-fg); }
.tone-5 { background: var(--t5-bg); color: var(--t5-fg); }
.time-pill { background: var(--time-bg); color: var(--time-fg); font-weight: 500; }
.time-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; margin-inline-end: 6px; }

/* شريط آخر الأخبار */
.tick-item .src-pill { font-size: 11.5px; padding: 0 9px; }


/* شارتا البطاقة فوق الصورة: المصدر والتصنيف منفصلتان */
.badges { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; inset-inline-end: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge-src, .badge-topic { font-size: 12px; line-height: 1.5; padding: 2px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.badge-src { background: rgba(255, 255, 255, .95); color: #17201B; font-weight: 700; }
.badge-topic { background: rgba(1, 65, 28, .88); color: #F4EBD0; font-weight: 600; border: 1px solid rgba(201, 169, 97, .55); }

/* ——— «موجز الأخبار»: خط زمني بعمود واحد بعرض قراءة مريح ———
   الساعة في عمود ثابت، ونقطة على خط رأسي، ثم العنوان وتحته سطر هادئ بالمصدر والموضوع */
.textlist { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 0 18px; overflow: clip; }
.textlist-head { padding: 18px 24px 16px; border-bottom: 1px solid var(--line); border-inline-start: 4px solid var(--pk-green); background: linear-gradient(to left, color-mix(in oklab, var(--pk-green) 6%, var(--surface)), var(--surface) 70%); }
.textlist-head h2 { margin: 0; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--fg); }
.textlist-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.textlist-head #textcount:not(:empty)::before { content: '· '; }
.tdays { list-style: none; margin: 0 auto; padding: 0 24px; max-width: 900px; }
.tday-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 20px 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.tday-h b { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--pk-green); }
.tday-n { margin-inline-start: auto; font-size: 12px; background: var(--chip); padding: 1px 10px; border-radius: 999px; }
.tday-rows { list-style: none; margin: 0; padding: 6px 0 0; position: relative; }
/* الخط الزمني الرأسي بين عمود الساعة والعناوين */
.tday-rows::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 84px; width: 2px; margin-inline-start: -1px; background: color-mix(in oklab, var(--pk-green) 18%, var(--line)); border-radius: 2px; }
.trow { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 32px; padding: 10px 0; }
.trow::before { content: ''; position: absolute; inset-inline-start: 79px; top: 19px; width: 11px; height: 11px; z-index: 1; border-radius: 50%; background: var(--surface); border: 2px solid var(--pk-green); box-sizing: border-box; }
.trow.same-time::before { width: 5px; height: 5px; inset-inline-start: 82px; top: 22px; border: 0; background: color-mix(in oklab, var(--pk-green) 35%, var(--line)); }
.trow-time { display: flex; flex-direction: column; align-items: flex-end; padding-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.trow-time b { font-size: 15px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.trow-time span { font-size: 11px; color: var(--muted); }
.trow.same-time .trow-time { visibility: hidden; }
.trow-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 14px 6px; border-radius: 10px; transition: background .15s; }
.trow:hover .trow-main { background: var(--chip); }
.trow-t { color: var(--fg); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; line-height: 1.75; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
a.trow-t:hover { color: var(--accent); }
.trow-t.en { font-family: var(--font-en); font-size: 16px; line-height: 1.6; }
.trow-t.ur { font-family: var(--font-urdu); font-weight: 500; font-size: 15.5px; line-height: 2.15; }
.trow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.trow-meta .src-pill { font-size: 11.5px; padding: 0 9px; }
.trow-topic { position: relative; padding-inline-start: 12px; }
.trow-topic::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: .5; }
.trow-pending { font-size: 11px; color: var(--muted); opacity: .8; }
.trow-meta .count-pill { font-size: 11.5px; }
.hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.textlist .more { margin: 18px auto 0; display: block; }
@media (max-width: 560px) {
  .textlist-head { padding-inline: 16px; }
  .tdays { padding-inline: 14px; }
  .trow { grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; }
  .tday-rows::before { inset-inline-start: 60px; }
  .trow::before { inset-inline-start: 55px; }
  .trow.same-time::before { inset-inline-start: 58px; }
  .trow-main { padding-inline: 8px; }
  .trow-time b { font-size: 13.5px; }
}
@media (prefers-color-scheme: dark) {
  .tday-h b { color: var(--brand-light); }
  .trow::before { border-color: #6CC795; }
  .textlist-head { border-inline-start-color: var(--brand-line); }
}

/* شارات إضافية: الموضوع، اللغة، وزر عدد المصادر */
.topic-pill, .lang-pill { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.5; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.topic-pill { color: var(--pk-green); border: 1px solid color-mix(in oklab, var(--pk-green) 35%, transparent); background: color-mix(in oklab, var(--pk-green) 6%, transparent); font-weight: 600; }
.lang-pill { color: var(--muted); border: 1px solid var(--line); }
.count-pill { appearance: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 0 10px; border-radius: 999px; background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); }
.count-pill:hover { background: var(--brand-hover); }
.count-pill:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .topic-pill { color: #A6D9BB; border-color: #2F5A42; background: #17291F; }
}

/* نتائج البحث: الشارات تحت النص مباشرة */
.hit-meta { margin-top: 4px; }

/* ——— الرأي والافتتاحيات: شارة الكاتب وشارة الصحيفة ونوع المادة ——— */
.cov.cov-pills { gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.author-pill, .kind-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; line-height: 1.5; padding: 2px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
.author-pill { background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); }
.author-pill::before { content: '✒'; font-size: 11px; opacity: .85; }
.kind-pill { background: transparent; color: var(--count-edge); border: 1px solid var(--count-edge); }
.cov-pills .src-pill { flex-shrink: 0; }
.time b.time-pill { display: inline-flex; width: max-content; margin-bottom: 3px; font-size: 12px; }
@media (prefers-color-scheme: dark) { .kind-pill { color: #D9BE7E; } }

/* ——— أساليب «موجز الأخبار» الأخرى (تختار من لوحة التحكم) ——— */
.textlist:not(.brief-timeline) .tdays { max-width: none; }
.trow-clock { font-variant-numeric: tabular-nums; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* جدول الوكالة */
.btable { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.btr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 170px; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.btr:nth-child(odd):not(.bth) { background: color-mix(in oklab, var(--chip) 55%, var(--surface)); }
.btr:hover:not(.bth) { background: var(--accent-soft); }
.bth { border-top: 0; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--muted); padding-block: 8px; }
.btime { display: flex; gap: 4px; align-items: baseline; font-variant-numeric: tabular-nums; }
.btime b { font-size: 14px; font-weight: 700; color: var(--fg); }
.btime span { font-size: 11px; color: var(--muted); }
.bmid { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bmid .trow-t { font-size: 15.5px; line-height: 1.6; }
.bmid .trow-t.ur { font-size: 15px; line-height: 2; }
.bmid .trow-meta:empty { display: none; }
.bsrc { display: flex; justify-content: flex-start; min-width: 0; }
@media (max-width: 700px) {
  .bth { display: none; }
  .btr { grid-template-columns: 58px minmax(0, 1fr); row-gap: 6px; }
  .bsrc { grid-column: 2; justify-content: flex-start; }
}

/* بطاقات نصية */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; margin-top: 12px; }
.bcard { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, transform .15s; }
.bcard:hover { border-color: color-mix(in oklab, var(--pk-green) 40%, var(--line)); transform: translateY(-1px); }
.bcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcard-time { display: flex; gap: 4px; align-items: baseline; font-variant-numeric: tabular-nums; color: var(--muted); }
.bcard-time b { font-size: 13px; color: var(--fg); }
.bcard-time span { font-size: 11px; }
.bcard .trow-t { font-size: 16px; line-height: 1.7; min-height: 5.1em; }
.bcard .trow-t.ur { line-height: 2.1; min-height: 6.3em; }
.bcard .trow-meta { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }

/* حسب الموضوع وحسب الصحيفة: أعمدة */
.bcols, .bpapers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; padding-top: 18px; align-items: start; }
.bcol, .bpaper { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 10px; background: var(--surface); }
.bcol-h, .bpaper-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 -16px; padding: 12px 16px 10px; border-bottom: 2px solid var(--pk-green); }
.bcol-h span { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--pk-green); }
.bcol-h small, .bpaper-h small { font-size: 12px; color: var(--muted); background: var(--chip); padding: 1px 9px; border-radius: 999px; font-weight: 500; }
.bpaper-h .src-pill { font-size: 13px; padding: 2px 12px; }
.bcol-list { list-style: none; margin: 0; padding: 0; }
.bcol-list li { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; }
.bcol-list li + li { border-top: 1px solid var(--line); }
.bcol-list .trow-t { font-size: 15px; line-height: 1.65; }
.bcol-list .trow-t.ur { font-size: 15px; line-height: 2.05; }
.bpaper-more { appearance: none; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; padding: 6px 0 2px; }
.bpaper-more:hover { text-decoration: underline; }

/* قائمة مرقمة بعمودين */
.bnum-wrap { padding-top: 14px; }
.bnum { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 36px; }
.bnum li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.bnum-n { flex: 0 0 38px; font-family: var(--font-display); font-size: 28px; line-height: 1; color: color-mix(in oklab, var(--pk-green) 55%, var(--line)); text-align: center; padding-top: 4px; }
.bnum-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bnum .trow-t { font-size: 15.5px; line-height: 1.65; }
@media (prefers-color-scheme: dark) {
  .bcol-h span { color: var(--brand-light); }
  .bcol-h, .bpaper-h { border-bottom-color: var(--brand-line); }
  .bnum-n { color: var(--brand-line); }
}

/* ——— لوحة التحكم: منتقي أسلوب «موجز الأخبار» بمعاينات مصغرة ——— */
.layout-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.layout-opt { position: relative; appearance: none; font: inherit; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s; }
.layout-opt:hover { border-color: color-mix(in oklab, var(--pk-green) 45%, var(--line)); }
.layout-opt.on { border-color: var(--pk-green); box-shadow: 0 0 0 3px color-mix(in oklab, var(--pk-green) 18%, transparent); }
.layout-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.layout-cap { display: flex; flex-direction: column; gap: 3px; padding: 0 4px 2px; }
.layout-cap b { font-size: 14.5px; }
.layout-cap small { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px; align-items: start; }
.cd-side { order: 2; position: sticky; top: 12px; min-width: 0; }
.cd-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cd-box { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cd-box h2 { margin: 0; }
.cd-box > p { margin: 0; }
.cd-preview { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cd-bar, .cd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-bar select { flex: 1; min-width: 0; min-height: 40px; }
.cd-canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: color-mix(in oklab, var(--pk-green) 12%, var(--surface)); }
.cd-note { margin: 0; font-size: 12.5px; }
.cd-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cd-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.cd-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--pk-green); }
.cd-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.cd-field select, .cd-field input[type="text"] { min-height: 40px; font-weight: 400; }
.cd-field input[type="range"] { width: 100%; }
/* «خيارات القارئ» و«خطوط اللغات» في قسم «البطاقة الإخبارية» */
.cd-sub { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cd-sub:first-of-type { border-top: 0; padding-top: 0; }
.cd-sub h3 { margin: 0; font-size: 14px; }
.cd-bounds { display: flex; flex-wrap: wrap; gap: 12px; }
.cd-bound { flex: 1 1 140px; }
.cd-lfonts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.cd-lfont { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.cd-lfont.first { border-color: var(--pk-green); box-shadow: inset 0 0 0 1px var(--pk-green); }
.cd-lfont-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cd-lfont-h .grow { flex: 1; }
.cd-badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--pk-green); border-radius: 999px; padding: 2px 10px; }
.cd-lsample { margin-top: 8px; font-size: 22px; line-height: 2.1; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.cd-ladd { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cd-ladd-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.cd-ladd-row input, .cd-ladd-row select { flex: 1 1 220px; min-height: 40px; }
.cd-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.cd-color { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.cd-color input { flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.cd-color-t { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.cd-color-t small { font-size: 12px; }
.card-picker { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 900px) { .cd-layout { grid-template-columns: minmax(0, 1fr); } .cd-side { order: 0; position: static; } }
.card-opt { cursor: pointer; }
.card-cb { position: absolute; top: 16px; inset-inline-end: 16px; width: 24px; height: 24px; margin: 0; accent-color: var(--pk-green); }
.card-pv { display: block; width: 100%; aspect-ratio: 1; height: auto; border-radius: 8px; background: color-mix(in oklab, var(--pk-green) 12%, var(--surface)); }
.layout-check { position: absolute; top: 16px; inset-inline-end: 16px; width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--pk-green); color: #fff; font-size: 12px; font-weight: 700; }
.layout-opt.on .layout-check { display: inline-flex; }

/* المعاينة المصغرة: رسم تخطيطي بأشرطة رمادية وشارات ملونة */
.lp { position: relative; display: flex; flex-direction: column; gap: 6px; height: 132px; padding: 12px; border-radius: 10px; background: var(--chip); overflow: hidden; }
.lp i, .lp b { display: block; font-style: normal; }
.lp-l { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--fg) 22%, transparent); }
.w20 { width: 20%; } .w60 { width: 60%; } .w90 { width: 90%; }
.lp-pill { width: 34px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.lp-pill.big { width: 56px; height: 12px; }
.lp-pill.t0 { background: var(--t0-fg); opacity: .55; } .lp-pill.t1 { background: var(--t1-fg); opacity: .55; }
.lp-pill.t2 { background: var(--t2-fg); opacity: .55; } .lp-pill.t3 { background: var(--t3-fg); opacity: .55; }
.lp-pill.t4 { background: var(--t4-fg); opacity: .55; }
.lp-time { width: 22px; height: 7px; border-radius: 3px; background: color-mix(in oklab, var(--fg) 45%, transparent); flex-shrink: 0; }
.lp-timeline { gap: 8px; }
.lp-line { position: absolute; top: 10px; bottom: 10px; inset-inline-start: 46px; width: 2px; background: color-mix(in oklab, var(--pk-green) 30%, transparent); }
.lp-row { display: flex; align-items: flex-start; gap: 8px; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--pk-green); background: var(--chip); flex-shrink: 0; position: relative; z-index: 1; box-sizing: border-box; }
.lp-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.lp-tr { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; }
.lp-tr .lp-l.w60 { flex: 1; }
.lp-tr.z { background: color-mix(in oklab, var(--fg) 6%, transparent); }
.lp-th .lp-l { background: color-mix(in oklab, var(--fg) 40%, transparent); height: 5px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.lp-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 1; }
.lp-card, .lp-col { display: flex; flex-direction: column; gap: 5px; padding: 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.lp-colh { height: 7px; width: 60%; border-radius: 3px; background: var(--pk-green); opacity: .75; margin-bottom: 3px; }
.lp-numcol { display: flex; flex-direction: column; gap: 8px; }
.lp-num { display: flex; align-items: center; gap: 6px; }
.lp-num b { font-family: var(--font-display); font-size: 17px; line-height: 1; color: color-mix(in oklab, var(--pk-green) 60%, transparent); width: 14px; text-align: center; }
.lp-num .lp-l { flex: 1; }

/* حسب الموضوع: بطاقة لكل موضوع بأحدث عنوان، وبقية العناوين تفتح بزر */
.brief-topics .bcols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.btopic { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.btopic .bcol-list > li:first-child .trow-t { min-height: 3.3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.btopic .bcol-list > li:first-child .trow-t.ur { min-height: 4.1em; }
.btopic.open .bcol-list > li:first-child .trow-t { -webkit-line-clamp: unset; line-clamp: none; }
.btopic-toggle { appearance: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; margin: 0 -16px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--pk-green) 5%, var(--surface)); color: var(--pk-green); text-align: center; transition: background .15s; }
.btopic-toggle:hover { background: color-mix(in oklab, var(--pk-green) 11%, var(--surface)); }
.btopic.open { grid-row: span 1; border-color: color-mix(in oklab, var(--pk-green) 40%, var(--line)); }
.btopic-foot { margin: 0 -16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
/* نافذة عناوين الموضوع (app.js openTopicSheet): جانبية على الشاشة العريضة، صاعدة من الأسفل على الجوال */
.tsheet { margin: 0; inset-block: 0; left: 0; right: auto; width: min(440px, 100vw); max-width: 100%; height: 100%; max-height: 100%; }
.tsheet .sheet-box { height: 100%; max-height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tsheet .sheet-head { border-bottom: 2px solid var(--pk-green); }
.tsheet .sheet-head h2 { flex: 1; min-width: 0; }
.tsheet-n { font-size: 12px; color: var(--muted); background: var(--chip); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.tsheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tsheet-body .bcol-list { padding: 0 18px; }
.tsheet-hour { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 18px 4px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.tsheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tsheet-go { appearance: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--count-edge, #C9A961); color: #0B2E29; }
.tsheet[open] { animation: tsheet-in .22s ease-out; }
@keyframes tsheet-in { from { transform: translateX(-100%); } to { transform: none; } }
@media (max-width: 640px) {
  .tsheet { inset-block-start: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 88%; }
  .tsheet .sheet-box { border-radius: 18px 18px 0 0; padding-top: 0; }
  .tsheet[open] { animation-name: tsheet-up; }
  @keyframes tsheet-up { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .tsheet[open] { animation: none; } }
@media (prefers-color-scheme: dark) { .btopic-toggle { color: var(--brand-light); } }

/* ——— الخدمات المدفوعة: قفل التبويب، وبطاقة الاشتراك، ودخول المشتركين ——— */
.tab.locked { display: inline-flex; align-items: center; gap: 8px; }
.tab-lock { font-size: 10.5px; font-weight: 700; line-height: 1.5; padding: 0 8px; border-radius: 999px; color: var(--count-edge); border: 1px solid var(--count-edge); }
.tab-lock::before { content: '🔒︎ '; font-size: 9px; }

.paywall { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 34px 22px 30px; border-radius: 18px; border: 1px solid color-mix(in oklab, var(--count-edge) 55%, var(--line)); background: linear-gradient(to bottom, color-mix(in oklab, var(--pk-green) 6%, var(--surface)), var(--surface) 60%); }
.paywall[hidden] { display: none; }
.pw-badge { font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px; background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); }
.pw-title { margin: 0; font-family: var(--font-head); font-size: 26px; }
.pw-desc { margin: 0; color: var(--muted); max-width: 560px; }
.pw-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0; }
.pw-num { display: flex; flex-direction: column; align-items: center; min-width: 130px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pw-num b { font-size: 26px; font-weight: 700; color: var(--pk-green); font-variant-numeric: tabular-nums; }
.pw-num span { font-size: 12.5px; color: var(--muted); }
.pw-sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 760px; }
.pw-sources .muted { font-size: 12.5px; margin-inline-end: 4px; }
.pw-note { max-width: 600px; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.pw-note b { font-size: 16px; }
.pw-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.pw-note .pw-price { color: var(--fg); font-weight: 700; font-size: 15px; }
.pw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.pw-actions .btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (prefers-color-scheme: dark) { .pw-num b { color: var(--brand-light); } .tab-lock { color: #D9BE7E; border-color: #8C7440; } }

.account { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 12px; }
.account:empty { display: none; }
.acct-name { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #F4EBD0; }
/* علامة المشترك الموثق قبل الاسم (يمينه): ختم ذهبي باثني عشر سنا وعلامة صح خضراء (تختلف عن شارة X وفيسبوك) */
.acct-name::before { content: ''; flex: none; width: 17px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12.00,0.60 14.48,2.73 17.70,2.13 18.79,5.21 21.87,6.30 21.27,9.52 23.40,12.00 21.27,14.48 21.87,17.70 18.79,18.79 17.70,21.87 14.48,21.27 12.00,23.40 9.52,21.27 6.30,21.87 5.21,18.79 2.13,17.70 2.73,14.48 0.60,12.00 2.73,9.52 2.13,6.30 5.21,5.21 6.30,2.13 9.52,2.73' fill='%23E9C46A' stroke='%23F4EBD0' stroke-width='.8' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='6.6' fill='none' stroke='%23B8902F' stroke-width='.7'/%3E%3Cpath d='M8.2 12.3l2.5 2.5 5.1-5.3' fill='none' stroke='%230E4D33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.acct-btn { appearance: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.acct-btn:hover { background: rgba(255, 255, 255, .22); }
/* «مساحتي» رابط: بلا خط تحت النص، والعدد داخل الزر محاذيا للنص */
a.acct-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
a.acct-btn:hover, a.acct-btn:focus-visible { text-decoration: none; }

.code-box { padding: 0 20px 20px; gap: 12px; }
.code-box .sheet-head { margin: 0 -20px; }
.code-box p { margin: 0; }
.code-box input { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .08em; text-align: center; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); }
.code-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-actions { display: flex; justify-content: flex-end; }
/* تأكيد الجهاز الجديد واختيار جهاز يستبدله (public/code-login.js) */
.code-step { display: flex; flex-direction: column; gap: 10px; }
.code-step p { margin: 0; line-height: 1.8; }
.code-box .code-pin { letter-spacing: .4em; font-size: 22px; }
.code-step .linkish { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.code-step .linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.code-devices { display: flex; flex-direction: column; gap: 8px; }
.code-device { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.code-device:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.code-device input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
.code-device span { display: flex; flex-direction: column; }
.code-device small { color: var(--muted); }
.code-step .err, #code-msg.err { color: var(--bad, #b42318); }

/* ——— لوحة التحكم: الخدمات ——— */
.btn.btn-del { border-color: var(--bad-fg); color: var(--bad-fg); }
.btn.btn-del:hover { background: var(--bad-bg); }
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--line); border-radius: 0; }
.svc-free { border-inline-start-color: #1F7A4A; }
.svc-paid { border-inline-start-color: #B08A3E; }
.svc-hidden { border-inline-start-color: var(--muted); opacity: .72; }
.svc-order { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.svc-order b { font-size: 13px; color: var(--muted); }
.svc-order .icon-btn { width: 28px; height: 24px; border-radius: 6px; font-size: 10px; }
.svc-order .icon-btn:disabled { opacity: .3; cursor: default; }
.svc-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.svc-main input { font: inherit; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; background: transparent; color: var(--fg); width: 100%; min-width: 0; }
.svc-main input:hover { border-color: var(--line); }
.svc-main input:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.svc-title { font-size: 17px !important; font-weight: 700; }
.svc-desc { font-size: 13px !important; color: var(--muted) !important; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px; padding-inline-start: 8px; }
.tag { font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.access-seg { display: inline-flex; background: var(--chip); border-radius: 12px; padding: 4px; gap: 4px; }
.access-seg button { appearance: none; border: 1px solid transparent; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0 14px; min-height: 36px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.access-seg button[aria-checked="true"].acc-free { background: #E3F2E8; color: #17603A; border-color: #9CCFB0; }
.access-seg button[aria-checked="true"].acc-paid { background: #F6EEDC; color: #6B4E16; border-color: #D9BE7E; }
.access-seg button[aria-checked="true"].acc-hidden { background: var(--surface); color: var(--fg); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  .access-seg button[aria-checked="true"].acc-free { background: #183526; color: #A6D9BB; border-color: #2F6A47; }
  .access-seg button[aria-checked="true"].acc-paid { background: #33291A; color: #E5CB93; border-color: #7A6236; }
}
@media (max-width: 760px) {
  .svc { grid-template-columns: 36px minmax(0, 1fr); }
  .svc-side { grid-column: 1 / -1; align-items: stretch; }
  .access-seg { justify-content: space-between; }
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cat-row code { font-size: 12px; background: var(--chip); padding: 1px 8px; border-radius: 6px; direction: ltr; }
.cat-row input { flex: 1; min-width: 0; font: inherit; border: 0; background: transparent; color: var(--fg); padding: 4px 0; }
.cat-row .icon-btn { width: 26px; height: 26px; font-size: 14px; }
#sv-paywall textarea { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); resize: vertical; }
#sv-langs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
#sv-langs legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
#sv-langs legend i { font-weight: 400; font-style: normal; color: var(--muted); }

/* ——— لوحة التحكم: المشتركون ——— */
.state { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; }
.state.ok { background: #E3F2E8; color: #17603A; }
.state.late { background: var(--warn-bg); color: var(--warn-fg); }
.state.bad, .state.off { background: var(--bad-bg); color: var(--bad-fg); }
@media (prefers-color-scheme: dark) { .state.ok { background: #183526; color: #A6D9BB; } }
#sb-table td small { display: block; }
.table-wrap { overflow-x: auto; }
.title-flip { border: 0; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.sum-cites { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.report-overview { font-size: 17px; line-height: 1.9; padding: 14px; background: var(--chip); border-radius: 10px; }

/* ——— ملخص الخبر للمشتركين ——— */
.foot-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; width: 100%; }
.foot-acts .sum-btn, .foot-acts .read { width: 100%; justify-content: center; min-width: 0; }
.card-tools { border-top: 1px solid var(--line); padding-top: 8px; }
.card-tools summary { color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.card-tools summary::-webkit-details-marker { display: none; }
.card-tools summary::after { content: '⌄'; color: var(--accent); font-size: 16px; line-height: 1; }
.card-tools[open] summary::after { transform: rotate(180deg); }
.card-tools-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 8px; }
.card-tools-body .sum-btn { width: 100%; min-width: 0; min-height: 36px; padding: 5px 8px; white-space: normal; line-height: 1.35; }
.card-tools-body .flag:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sum-btn { appearance: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); transition: background .15s; }
.sum-btn:hover { background: var(--brand-hover); }
.sum-btn.locked { background: transparent; color: var(--count-edge); border-style: dashed; font-weight: 600; font-size: 12px; }
.sum-btn.locked:hover { background: color-mix(in oklab, var(--count-edge) 10%, transparent); }
.sum-btn.small { min-height: 0; font-size: 11.5px; padding: 1px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .sum-btn.locked { color: #D9BE7E; } }
.sum-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.library-body { padding: 18px 20px 20px; overflow-y: auto; }
.library-body > .muted { margin-top: 0; }
.library-list { display: flex; flex-direction: column; gap: 8px; }
.library-row { appearance: none; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 10px; padding: 12px 14px; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.library-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.library-row b { font-family: var(--font-head); font-size: 16px; line-height: 1.55; }
.library-row span { color: var(--muted); font-size: 12px; }
.sum-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum-title { margin: 0; font-family: var(--font-head); font-size: 19px; line-height: 1.6; }
.sum-title.en { font-family: var(--font-en); direction: ltr; text-align: left; }
.sum-title.ur { font-family: var(--font-urdu); font-weight: 500; line-height: 2.1; }
.sum-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sum-points { margin: 0; padding: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 12px; }
.sum-points li { counter-increment: p; position: relative; padding-inline-start: 38px; font-size: 16px; line-height: 1.9; }
html[data-digits="en"] .sum-points li::before { content: counter(p); }
html[data-digits="en"] .rep-facts, html[data-digits="en"] .rep-sources { list-style: decimal; }
.sum-points li::before { content: counter(p, arabic-indic); position: absolute; inset-inline-start: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--count-bg); color: var(--count-fg); }
.sum-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-foot p { margin: 0; font-size: 12.5px; }
.sum-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.sum-actions .btn { display: inline-flex; align-items: center; text-decoration: none; }
.sum-quota { margin-inline-end: auto; font-size: 12px; color: var(--muted); background: var(--chip); padding: 2px 10px; border-radius: 999px; }
.sum-wait { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.8; }
.sum-spin { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--pk-green); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum-bar { height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.sum-bar i { display: block; height: 100%; width: 35%; background: var(--pk-green); border-radius: 2px; animation: sumbar 1.6s ease-in-out infinite; }
@keyframes sumbar { from { transform: translateX(120%); } to { transform: translateX(-300%); } }
@media (prefers-reduced-motion: reduce) { .sum-spin, .sum-bar i { animation: none; } }
.sum-error p { margin: 0 0 10px; color: var(--bad-fg); background: var(--bad-bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.8; }
.sum-locked { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 8px 0; }
.sum-locked b { font-size: 17px; }
.sum-locked p { margin: 0; color: var(--muted); }
.sum-locked .sum-actions { justify-content: center; margin-top: 6px; }
.sum-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#sv-summaries .muted { margin: 0; }

/* الترجمة الكاملة في نافذة الخبر */
.sum-seg { align-self: center; }
.sum-area { display: flex; flex-direction: column; gap: 14px; }
.full-text { display: flex; flex-direction: column; gap: 14px; }
.full-text p { margin: 0; font-size: 16.5px; line-height: 2; text-align: justify; text-justify: inter-word; }
.full-text p:first-child { font-weight: 600; }
#sum-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(88vh, 900px); }
#sum-dialog .sheet-box { max-height: min(88vh, 900px); }
.full-sources { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.full-sources h3 { margin: 0; font-size: 15px; }
.full-sources > p { margin: 0; }
.fs-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fs-bar input { font: inherit; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); min-width: 220px; }
.fs-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.fs-chip { appearance: none; font: inherit; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: start; }
.fs-chip b { font-size: 13px; font-weight: 600; }
.fs-chip small { font-size: 11px; color: var(--muted); }
.fs-chip.on { border-color: #B08A3E; background: #F6EEDC; }
.fs-chip.on b { color: #6B4E16; }
@media (prefers-color-scheme: dark) { .fs-chip.on { background: #33291A; border-color: #7A6236; } .fs-chip.on b { color: #E5CB93; } }
.full-credit { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); background: var(--chip); padding: 10px 14px; border-radius: 10px; }
.full-credit a { color: var(--accent); }
.full-credit b { color: var(--fg); }

/* ——— تذييل الصفحة الرئيسية ——— */
.site-foot { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 18px 0 8px; border-top: 1px solid var(--line); }
.site-foot .note { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }

/* ——— صفحتا السياسة والشروط ——— */
body.doc { background: linear-gradient(to bottom, var(--pk-green) 0, var(--pk-green) 140px, var(--bg) 140px) no-repeat, var(--bg); }
body.doc .doc-wrap { margin-top: 34px; }
.site-footer .doc-mail { color: rgba(255, 255, 255, .86); }
.doc-head { display: flex; justify-content: center; padding: 26px 16px 18px; }
.doc-logo img { width: min(220px, 60vw); height: auto; display: block; }
.doc-wrap { max-width: var(--page-in); margin: 0 auto 48px; padding: 30px 34px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; line-height: 1.95; font-size: 16px; }
.doc-wrap h1 { font-family: var(--font-head); font-size: 28px; margin: 0; }
.doc-wrap h2 { font-family: var(--font-head); font-size: 20px; margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--pk-green); }
.doc-wrap h3 { font-size: 16.5px; margin: 20px 0 4px; }
.doc-wrap p { margin: 8px 0; }
.doc-wrap ul { margin: 6px 0; padding-inline-start: 22px; }
.doc-wrap li { margin: 4px 0; }
.doc-updated { color: var(--muted); font-size: 13px; margin-top: 4px !important; }
.doc-lead { font-size: 17px; background: var(--chip); padding: 14px 18px; border-radius: 12px; }
.doc-toc { font-size: 14px; }
.doc-wrap a { color: var(--accent); }
.doc-mail { direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.doc-links { margin-top: 30px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-operator { color: var(--muted); font-size: 13px; }
.doc-operator:empty { display: none; }
@media (max-width: 560px) { .doc-wrap { padding: 22px 18px; border-radius: 0; border-inline: 0; } }
@media (prefers-color-scheme: dark) { .doc-wrap h2 { border-bottom-color: var(--brand-line); } }

/* ——— لوحة التحكم: طلبات الإزالة ——— */
.rm-form { display: flex; gap: 8px; }
.rm-form input { flex: 1; min-width: 0; font: inherit; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.rm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.rm-row b, .rm-row small { display: block; }
.rm-row input { font: inherit; font-size: 13px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); min-width: 0; }
@media (max-width: 760px) { .rm-row { grid-template-columns: 1fr; } }
.rm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-log li { padding: 8px 12px; background: var(--chip); border-radius: 8px; }
.rm-log b, .rm-log small { display: block; }
.doc-mail-missing { color: var(--muted); }


/* شعار لوحة التحكم بلون الموقع المختار: صورة الشعار قناع يلون بالأخضر الرئيسي (وبالأبيض في الوضع الداكن) */
.logo-mask { display: block; width: 100%; max-width: 200px; aspect-ratio: 531 / 167; background: var(--pk-green); -webkit-mask: url(/static/img/logo-green.png) center / contain no-repeat; mask: url(/static/img/logo-green.png) center / contain no-repeat; }
@media (prefers-color-scheme: dark) { .logo-mask { background: #fff; } }
@media (max-width: 860px) { .logo-mask { max-width: 150px; } }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type=color] { width: 52px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.color-row input[type=text] { width: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.color-row input.bad { border-color: var(--bad-fg); }
.color-preview { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--pk-green); }
.color-preview b { color: #fff; font-size: 14px; }
.color-preview i { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); }
.color-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.color-swatch { appearance: none; font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); }
.color-swatch i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); }

/* ——— الشريط العلوي (نافبار): ثابت أعلى الصفحة بلون الموقع ——— */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--pk-green); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 14px rgba(0, 0, 0, .14); }
.topbar-inner { max-width: var(--page-w); margin: 0 auto; padding: 0 20px; min-height: 58px; display: flex; align-items: center; gap: 22px; }
.topbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.topbar-brand img { height: 30px; width: auto; display: block; }
/* الروابط تأخذ ما يبقى من الشريط وتسحب أفقيا إن ضاق، فلا يدفع خط عريض الصفحة خارج الشاشة */
.topbar-links { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-links::-webkit-scrollbar { display: none; }
.topbar-links a { flex-shrink: 0; white-space: nowrap; }
.topbar-links a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.topbar-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.topbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #E8F3EC; font-size: 12px; padding: 4px 10px; }
.topbar .account { margin: 0; }
.topbar-admin { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); white-space: nowrap; }
.topbar-admin:hover { background: rgba(255, 255, 255, .12); }
.acct-cta { font-size: 13px; font-weight: 700; text-decoration: none; padding: 5px 14px; border-radius: 999px; background: var(--count-edge); color: #1F1A0E; white-space: nowrap; }
.acct-cta:hover { filter: brightness(1.08); }
/* الروابط لا تتسع بجانب أزرار الحساب (compat.js: fitTopbar): سطر ثان بعرض الشاشة، والروابط موزعة عليه */
.topbar.nav-row .topbar-inner { flex-wrap: wrap; row-gap: 0; padding-block: 6px 4px; }
.topbar.nav-row .topbar-links { order: 2; flex: 1 0 100%; }
.topbar.nav-row .topbar-links a { flex: 1 0 auto; text-align: center; }
@media (max-width: 980px) { .topbar-status { display: none; } }
@media (max-width: 760px) {
  .topbar-links { gap: 0; }
  .topbar-links a { padding: 6px 8px; font-size: 13px; }
  .topbar-links .long { display: none; }
  .topbar-inner { gap: 12px; padding: 0 14px; min-height: 54px; }
  .topbar-brand img { height: 26px; }
}
@media (max-width: 420px) {
  .topbar-admin { display: none; } .acct-name { display: none; } /* المدير على الهاتف: لوحة التحكم من /admin مباشرة */
  /* خمسة روابط («أحداث» الخامس) مع أزرار الحساب في ٣٧٥ بكسل */
  .topbar-links a { padding: 6px 5px; font-size: 12.5px; }
  .topbar-inner { gap: 8px; padding: 0 10px; }
  .topbar-end { gap: 6px; }
}
/* الرأس تحت الشريط: الشعار الكبير والسطر التعريفي فقط */
.masthead { padding-top: 6px; }

/* ——— التذييل بلون الموقع ——— */
.site-footer { background: var(--pk-green); color: rgba(255, 255, 255, .86); margin-top: 8px; }
.footer-inner { max-width: var(--page-w); margin: 0 auto; padding: 40px 20px 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 190px; height: auto; display: block; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .78); max-width: 360px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col h2 { margin: 0 0 4px; font-size: 14px; color: #fff; letter-spacing: .02em; padding-bottom: 6px; border-bottom: 2px solid var(--count-edge); }
.footer-col a, .footer-link { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; }
.footer-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: start; }
.footer-col a:hover, .footer-link:hover { color: #fff; text-decoration: underline; }
.footer-col a[hidden] { display: none; }
.footer-bottom { max-width: var(--page-w); margin: 0 auto; padding: 16px 20px 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.footer-bottom p { margin: 0; }
/* «تنفيذ: Sabilo» في آخر سطر الحقوق: الشعار أبيض كله بارتفاع السطر */
.ft-credit { white-space: nowrap; }
.ft-credit a { display: inline-block; vertical-align: middle; margin-inline-start: 3px; line-height: 0; }
.ft-credit img { height: 15px; width: auto; display: block; position: relative; top: -1px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 30px 16px 20px; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-inline: 16px; }
}

/* حداثة الأخبار: سطر هادئ تحت التبويبات */
.freshness { display: flex; align-items: center; gap: 8px; margin: -10px 0 -6px; font-size: 12.5px; color: var(--muted); }
.freshness[hidden] { display: none; }
.freshness .dot { width: 7px; height: 7px; }

/* الشريط العلوي بلا شعار ولا روابط: أزرار المشترك ولوحة التحكم في طرفه */
.topbar-inner { min-height: 52px; }

/* صفحتا السياسة والشروط: الشعار في الوسط تحت الشريط */
body.doc { background: linear-gradient(to bottom, var(--pk-green) 0, var(--pk-green) 190px, var(--bg) 190px) no-repeat, var(--bg); }
body.doc .doc-wrap { margin-top: 0; }

/* ——— «باكستان اليوم بالأرقام»: صندوق مستقل فوق التذييل ——— */
.insights { margin-top: 26px; padding: 26px 26px 24px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in oklab, var(--pk-green) 7%, var(--surface)), var(--surface) 55%); border: 1px solid color-mix(in oklab, var(--pk-green) 22%, var(--line)); display: flex; flex-direction: column; gap: 20px; }
.insights[hidden] { display: none; }
.insights-head h2 { margin: 0; font-family: var(--font-head); font-size: 23px; color: var(--fg); }
.insights-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.ins-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--pk-green); }
.ins-tile b { font-size: 38px; line-height: 1.15; font-weight: 700; color: var(--pk-green); font-variant-numeric: tabular-nums; }
.ins-tile span { font-size: 14.5px; font-weight: 600; color: var(--fg); }
.ins-tile small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ins-panels { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.ins-panel { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ins-panel h3 { margin: 0 0 14px; font-size: 15.5px; }
.ins-panel h3.ins-gap { margin-top: 22px; }
.ins-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ins-bar-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.ins-bar-name { font-weight: 600; }
.ins-bar-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.ins-bar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to left, var(--pk-green), color-mix(in oklab, var(--pk-green) 60%, white)); }
.ins-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--chip); }
.ins-seg { display: block; height: 100%; }
.ins-seg.ur, .ins-dot.ur { background: var(--pk-green); }
.ins-seg.en, .ins-dot.en { background: var(--count-edge); }
.ins-seg.sd, .ins-dot.sd { background: color-mix(in oklab, var(--count-edge) 50%, var(--pk-green)); }
.ins-seg.ps, .ins-dot.ps { background: color-mix(in oklab, var(--count-edge) 25%, var(--pk-green)); }
.ins-seg.ar, .ins-dot.ar { background: color-mix(in oklab, var(--pk-green) 45%, white); }
.ins-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.ins-legend li { display: flex; align-items: center; gap: 6px; }
.ins-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ins-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ins-cats li { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--chip); font-size: 13.5px; }
.ins-cats b { font-size: 20px; color: var(--pk-green); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .ins-panels { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .insights { padding: 20px 16px; } .ins-tile b { font-size: 32px; } }
@media (prefers-color-scheme: dark) { .ins-tile b, .ins-cats b { color: var(--brand-light); } }

/* المرصد الإعلامي: ترويسة بعنوان ووقت تحديث، وشريط القصة الأوسع تغطية، وسطر المنهجية */
.insights-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ins-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--count-fg); background: var(--count-bg); border: 1px solid var(--count-edge); padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.insights-head h2 { font-size: 26px; }
.ins-updated { margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ins-tile { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.ins-tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pk-green); }
.ins-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--pk-green); color: #fff; text-decoration: none; }
.ins-top[hidden] { display: none; }
.ins-top-label { font-size: 12px; font-weight: 700; color: var(--count-fg); border: 1px solid var(--count-edge); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ins-top-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.ins-top-title.en { font-family: var(--font-en); direction: ltr; text-align: left; }
.ins-top-title.ur { font-family: var(--font-urdu); font-weight: 500; line-height: 2.1; }
.ins-top-count { font-size: 13px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
a.ins-top:hover .ins-top-title { text-decoration: underline; }
@media (max-width: 760px) { .ins-top { grid-template-columns: 1fr; gap: 8px; } }
.ins-panel h3 { margin-bottom: 2px; }
.ins-note { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.ins-method { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }

/* ——— صفحة «المرصد الإعلامي» ——— */
.ins-head-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ins-more { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 4px 12px; border: 1px solid color-mix(in oklab, var(--pk-green) 35%, var(--line)); border-radius: 999px; }
.ins-more:hover { background: var(--accent-soft); }
body.obs { background: linear-gradient(to bottom, var(--pk-green) 0, var(--pk-green) 330px, var(--bg) 330px) no-repeat, var(--bg); }
.obs-hero { max-width: var(--page-w); margin: 0 auto; padding: 22px 20px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: #fff; }
.obs-hero h1 { margin: 0; font-family: var(--font-head); font-size: 30px; }
.obs-hero p { margin: 0; color: rgba(255, 255, 255, .86); }
.obs-meta { font-size: 13px; color: rgba(255, 255, 255, .72) !important; font-variant-numeric: tabular-nums; }
.obs-wrap { max-width: var(--page-w); margin: 0 auto 48px; padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
#obs-overview, #obs-country { display: flex; flex-direction: column; gap: 18px; }
#obs-overview[hidden], #obs-country[hidden] { display: none; }
.obs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.obs-card-head { margin-bottom: 16px; }
.obs-card-head h2 { margin: 0; font-family: var(--font-head); font-size: 21px; }
.obs-card-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.obs-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.obs-rank-row { display: grid; grid-template-columns: 30px minmax(120px, 190px) minmax(0, 1fr) 96px 78px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.obs-rank-row:hover { background: var(--chip); }
.obs-rank-n { font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.obs-rank-name { font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-rank-bar { height: 12px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.obs-rank-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to left, var(--pk-green), color-mix(in oklab, var(--pk-green) 55%, white)); }
.obs-rank-val { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.obs-trend { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.obs-trend.up { color: #17603A; }
.obs-trend.down { color: var(--bad-fg); }
@media (prefers-color-scheme: dark) { .obs-trend.up { color: #8FD3AC; } }
@media (max-width: 700px) { .obs-rank-row { grid-template-columns: 24px minmax(0, 1fr) auto; } .obs-rank-bar { grid-column: 2 / -1; grid-row: 2; } .obs-rank-val { display: none; } }
.obs-share { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--chip); }
.obs-seg { display: block; height: 100%; }
.s0 { background: var(--pk-green); } .s1 { background: var(--count-edge); } .s2 { background: color-mix(in oklab, var(--pk-green) 55%, white); }
.s3 { background: #8C6D3A; } .s4 { background: color-mix(in oklab, var(--pk-green) 30%, #8899aa); } .s5 { background: #C9B48A; } .s6 { background: #B8C2BC; }
.obs-share-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.obs-legend-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--chip); color: var(--fg); text-decoration: none; font-size: 14px; }
a.obs-legend-item:hover { outline: 1px solid var(--line); }
.obs-legend-item b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.obs-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.obs-group-h { margin: 18px 0 10px; font-size: 15px; color: var(--muted); }
.obs-group-h:first-of-type { margin-top: 0; }
.obs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.obs-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .15s; }
.obs-tile:hover { border-color: var(--pk-green); }
.obs-tile.quiet { opacity: .6; }
.obs-tile-head { display: flex; align-items: center; gap: 8px; }
.obs-tile-n { font-size: 13px; color: var(--muted); }
.obs-back { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }
.obs-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-bottom: 20px; }
.obs-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.obs-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--pk-green); }
.obs-col small { position: absolute; bottom: -20px; inset-inline-start: 50%; transform: translateX(50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.obs-locked { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 22px; border-radius: 18px; border: 1px solid color-mix(in oklab, var(--count-edge) 55%, var(--line)); background: linear-gradient(to bottom, color-mix(in oklab, var(--pk-green) 6%, var(--surface)), var(--surface)); }
.obs-locked h3 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.obs-locked p { margin: 0; color: var(--muted); }
.obs-locked ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.obs-locked li::before { content: '✓ '; color: var(--pk-green); font-weight: 700; }
.obs-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.obs-actions .btn { display: inline-flex; align-items: center; text-decoration: none; }
.obs-press { display: grid; grid-template-columns: 130px minmax(0, 1fr) 80px; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.obs-press-bar { height: 12px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.obs-press-bar i { display: block; height: 100%; border-radius: 999px; }
.obs-press-bar.ur i { background: var(--pk-green); } .obs-press-bar.en i { background: var(--count-edge); } .obs-press-bar.sd i { background: color-mix(in oklab, var(--count-edge) 50%, var(--pk-green)); } .obs-press-bar.ps i { background: color-mix(in oklab, var(--count-edge) 25%, var(--pk-green)); }
.obs-outlets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.obs-outlets li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--chip); font-size: 14px; }
.obs-headlines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.obs-headlines li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.obs-headlines small { color: var(--muted); font-size: 12px; }
/* أخبار الدولة في المرصد: تصفية بالموضوع، ومجموعات بالأيام، وعمود للوقت، وصورة صغيرة */
.obs-news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.obs-news-count { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.obs-news-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.obs-news-chip { font: inherit; font-size: 13px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.obs-news-chip b { font-weight: 700; color: var(--muted); margin-inline-start: 2px; }
.obs-news-chip:hover { border-color: var(--accent); }
.obs-news-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.obs-news-chip[aria-pressed="true"] b { color: inherit; opacity: .8; }
.obs-news-day { margin-top: 14px; }
.obs-news-dayh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 0; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--fg); }
.obs-news-dayh small { font-size: 12px; font-weight: 600; color: var(--muted); }
.obs-news-list { list-style: none; margin: 0; padding: 0; }
.obs-news-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.obs-news-row.has-img { grid-template-columns: 74px minmax(0, 1fr) 112px; }
.obs-news-row:last-child { border-bottom: 0; }
.obs-news-time { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obs-news-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.obs-news-title { font-size: 16px; font-weight: 600; line-height: 1.75; color: var(--fg); text-decoration: none; text-align: right; }
a.obs-news-title:hover { color: var(--accent); text-decoration: underline; }
.obs-news-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); }
.obs-news-src { font-weight: 700; color: var(--fg); }
.obs-news-tag { font-size: 11.5px; padding: 0 8px; line-height: 1.9; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.obs-news-tag.topic { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.obs-news-img { display: block; width: 112px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--line); }
.obs-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.obs-news-more { display: block; margin: 14px auto 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; cursor: pointer; }
.obs-news-more:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .obs-news-row, .obs-news-row.has-img { grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 12px; }
  .obs-news-row:not(.has-img) { grid-template-columns: minmax(0, 1fr); }
  .obs-news-time { grid-column: 1; padding-top: 0; }
  .obs-news-main { grid-column: 1; }
  .obs-news-img { grid-column: 2; grid-row: 1 / span 2; width: 84px; }
  .obs-news-title { font-size: 15px; }
  .obs-news-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 2px 14px 6px; }
  .obs-news-topics::-webkit-scrollbar { display: none; }
  .obs-news-chip { flex: none; white-space: nowrap; }
}
.obs-pro { border-color: color-mix(in oklab, var(--count-edge) 55%, var(--line)); }
.obs-pro h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; }
.obs-pro p { margin: 0; color: var(--muted); line-height: 1.9; }
.obs-soon { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.obs-soon b { font-size: 11px; color: var(--count-fg); background: var(--count-bg); border: 1px solid var(--count-edge); padding: 1px 8px; border-radius: 999px; margin-inline-end: 6px; }
.obs-pro-actions .obs-actions { justify-content: flex-start; }
.obs-method { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
@media (max-width: 560px) { .obs-card { padding: 18px 14px; } .obs-hero h1 { font-size: 24px; } .obs-press { grid-template-columns: 100px minmax(0, 1fr) 64px; } }

/* المرصد: التبويبات، وصفوف الموضوعات، والاستشهاد */
.obs-view { display: flex; flex-direction: column; gap: 18px; }
.obs-view[hidden] { display: none; }
.obs-tabs { max-width: var(--page-w); margin: -6px auto 16px; padding: 0 20px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.obs-tabs a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px; font-weight: 700; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.obs-tabs a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.obs-tabs a[aria-current="page"] { background: #fff; color: var(--pk-green); border-color: #fff; }
.obs-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.obs-topic { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px 86px 70px 120px; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.obs-topic:hover { background: var(--chip); }
.obs-topic.quiet { opacity: .55; }
.obs-topic-name { font-weight: 700; }
.obs-topic-pct { font-weight: 700; color: var(--pk-green); font-variant-numeric: tabular-nums; text-align: center; }
.obs-spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.obs-spark i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: color-mix(in oklab, var(--pk-green) 70%, white); }
@media (max-width: 760px) { .obs-topic { grid-template-columns: minmax(0, 1fr) auto auto; } .obs-topic .obs-rank-bar, .obs-topic .obs-spark { grid-column: 1 / -1; } .obs-topic .obs-rank-val { display: none; } }
.obs-tag { font-size: 11.5px; color: var(--muted); background: var(--chip); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
#obs-outlets .obs-rank-row { grid-template-columns: 30px minmax(120px, 220px) minmax(0, 1fr) 90px; }
@media (max-width: 700px) { #obs-outlets .obs-rank-row { grid-template-columns: 24px minmax(0, 1fr) auto; } #obs-outlets .obs-tag { display: none; } }
.obs-foot { display: flex; flex-direction: column; gap: 6px; }
.obs-cite { margin: 0; font-size: 13px; color: var(--fg); background: var(--chip); padding: 10px 14px; border-radius: 10px; border-inline-start: 3px solid var(--pk-green); }
.obs-method a { color: var(--accent); }
.doc-cite { font-weight: 600; background: var(--chip); padding: 10px 14px; border-radius: 10px; border-inline-start: 3px solid var(--pk-green); }
@media (prefers-color-scheme: dark) { .obs-topic-pct { color: var(--brand-light); } .obs-tabs a[aria-current="page"] { color: var(--pk-green); } }

/* المرصد: تبويب «الأقاليم» */
.obs-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.obs-region { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.obs-region.quiet { opacity: .6; }
.obs-region-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.obs-region-head h3 { margin: 0; font-family: var(--font-head); font-size: 18px; }
.obs-region-nums { display: flex; align-items: baseline; gap: 8px; }
.obs-region-nums b { font-size: 30px; line-height: 1; color: var(--pk-green); font-variant-numeric: tabular-nums; }
.obs-region-nums span { font-size: 13px; color: var(--muted); }
.obs-region .obs-spark { height: 34px; }
.obs-region-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--fg); }
.obs-region-news { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.obs-region-news li { display: flex; flex-direction: column; gap: 2px; }
.obs-region-news .trow-t { font-size: 14.5px; line-height: 1.6; }
.obs-region-news small { font-size: 11.5px; color: var(--muted); }
.obs-locked-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.obs-locked-note[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .obs-region-nums b { color: var(--brand-light); } }

/* ——— بطاقة الخبر الجديدة: هادئة، أو بشريط أيقونات؛ والأدوات كلها في «لوحة الخبر» ——— */
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-bar .seg { align-self: auto; }
.ncard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ncard:hover { border-color: color-mix(in oklab, var(--pk-green) 55%, var(--line)); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
.ncard:has(.ncard-title:focus-visible) { outline: 2px solid var(--count-edge); outline-offset: 2px; }
/* البطاقة بلا قص حتى لا يقطع اسم الأداة عند المرور؛ الزوايا المدورة على الصورة نفسها */
.ncard-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--chip); overflow: hidden; border-radius: 13px 13px 0 0; }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard-media img.site { object-fit: contain; padding: 18px; }
.ncard-video { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .58); padding: 3px 10px 3px 8px; border-radius: 999px; }
.ncard-video svg { width: 12px; height: 12px; }
.ncard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; flex: 1; }
.ncard-kicker { font-size: 12px; font-weight: 700; color: var(--pk-green); }
.ncard-h { margin: 0; }
.ncard-title { appearance: none; border: 0; background: none; padding: 0; margin: 0; width: 100%; display: block; text-align: start; cursor: pointer; color: var(--fg); font-family: var(--font-head); font-size: 17.5px; font-weight: 700; line-height: 1.62; overflow-wrap: anywhere; }
.ncard-title-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: 4.86em; }
.ncard-title.ur { font-family: var(--font-urdu); font-weight: 500; font-size: 16px; line-height: 2.1; }
.ncard-title.ur .ncard-title-text { min-height: 6.3em; }
.ncard-title.en { font-family: var(--font-en); font-weight: 600; font-size: 16.5px; direction: ltr; text-align: left; }
.ncard-title:focus-visible { outline: none; }
/* الضغط في أي مكان من البطاقة يفتح اللوحة */
.ncard-title::after { content: ''; position: absolute; inset: 0; }
.ncard:hover .ncard-title { color: var(--accent); }
.ncard-meta { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.ncard-meta b { color: var(--fg); font-weight: 600; }
.ncard-count { color: var(--pk-green); font-weight: 700; }
.ncard-pending { color: var(--muted); }
.ncard-tools { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; padding: 3px 8px; border-top: 1px solid var(--line); }
.ncard-icon { position: relative; appearance: none; border: 0; background: transparent; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ncard-icon svg { width: 17px; height: 17px; }
.ncard-icon:hover, .ncard-icon:focus-visible { background: var(--chip); color: var(--fg); outline: none; }
.ncard-icon.locked::before { content: ''; position: absolute; top: 7px; inset-inline-end: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--count-edge); }
.ncard-icon:hover::after, .ncard-icon:focus-visible::after, .ncard-icon[data-done]::after { content: attr(data-label); position: absolute; bottom: calc(100% + 6px); inset-inline-start: 0; background: var(--fg); color: var(--bg); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; z-index: 3; }
.ncard-icon[data-done]::after { content: attr(data-done); background: var(--pk-green); color: #fff; }
.ncard-go { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 6px 6px; border-radius: 8px; }
.ncard-go:hover { background: var(--chip); }
@media (prefers-color-scheme: dark) { .ncard-kicker, .ncard-count { color: var(--brand-light); } }
@media (prefers-reduced-motion: reduce) { .ncard { transition: none; } .ncard:hover { transform: none; } }

/* ——— لوحة الخبر: جانبية على الحاسوب، ونافذة من الأسفل على الجوال ——— */
.story { margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--fg); position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; width: min(500px, 100vw); height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; max-width: 100vw; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
.story[open] { animation: story-in .22s ease-out; }
.story::backdrop { background: rgba(10, 20, 15, .45); }
@keyframes story-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.story-box { display: flex; flex-direction: column; height: 100%; }
.story-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); }
.story-kicker { font-size: 13px; font-weight: 700; color: var(--pk-green); }
.story-body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.story-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--chip); flex-shrink: 0; }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-media img.site { object-fit: contain; padding: 18px; }
.story-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.story-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.story-play svg { width: 26px; height: 26px; margin-inline-start: -3px; }
.story-play:hover { background: var(--pk-green); }
.story-title { margin: 0; font-family: var(--font-head); font-size: 22px; line-height: 1.6; overflow-wrap: anywhere; }
.story-title.ur { font-family: var(--font-urdu); font-weight: 500; line-height: 2.1; }
.story-title.en { font-family: var(--font-en); direction: ltr; text-align: left; }
.story-orig { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; display: flex; flex-direction: column; gap: 2px; }
.story-orig small { color: var(--muted); font-size: 12px; }
.story-orig .ur { font-family: var(--font-urdu); line-height: 2.1; }
.story-orig .en { font-family: var(--font-en); direction: ltr; text-align: right; }
.story-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.story-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-block: 1px solid var(--line); padding-block: 6px; }
.story-tool { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--fg); padding: 7px 10px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.story-tool svg { width: 16px; height: 16px; color: var(--muted); }
.story-tool:hover, .story-tool:focus-visible { background: var(--chip); outline: none; }
.story-tool[data-done]::after { content: attr(data-done); color: var(--pk-green); font-weight: 700; }
.story-lock { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--count-edge); }
.story-go { margin-inline-start: auto; font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 7px 4px; }
.story-flag { display: flex; flex-direction: column; gap: 10px; background: var(--chip); border-radius: 12px; padding: 12px 14px; }
.story-flag p { margin: 0; font-size: 13px; color: var(--muted); }
.story-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.story-field input { font: inherit; font-weight: 400; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.story-flag-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.story-flag-msg { font-size: 13px; color: var(--muted); }
.story-flag-msg.err { color: var(--bad-fg); }
.story-cov h3 { margin: 0 0 4px; font-size: 14.5px; }
.story-cov .sheet-list { padding: 0; overflow: visible; }
@media (max-width: 700px) {
  .story { inset-block-start: auto; inset-inline: 0; width: 100vw; height: auto; max-height: 90vh; max-height: 90dvh; border-radius: 18px 18px 0 0; }
  .story[open] { animation-name: story-up; }
  @keyframes story-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .story-box { max-height: 90vh; max-height: 90dvh; }
}
@media (prefers-reduced-motion: reduce) { .story[open] { animation: none; } }
@media (prefers-color-scheme: dark) { .story-kicker { color: var(--brand-light); } }

/* العناوين في «موجز الأخبار» ونتائج البحث صارت أزرارا تفتح «لوحة الخبر»: بمظهر العنوان نفسه */
button.trow-t, button.hit-title { appearance: none; border: 0; background: none; padding: 0; margin: 0; text-align: start; cursor: pointer; color: var(--fg); width: 100%; }
button.trow-t:hover, button.hit-title:hover { color: var(--accent); }
button.trow-t:focus-visible, button.hit-title:focus-visible, button.hit-thumb:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; border-radius: 4px; }
button.trow-t.en, button.hit-title.en { text-align: left; }
button.hit-thumb { appearance: none; border: 0; padding: 0; cursor: pointer; background: var(--chip); }
.trow-count { font-size: 12px; font-weight: 700; color: var(--pk-green); }
@media (prefers-color-scheme: dark) { .trow-count { color: var(--brand-light); } }
/* على الجوال عمود واحد: لا حاجة إلى توحيد ارتفاع العناوين */
@media (max-width: 560px) { .ncard-title-text, .ncard-title.ur .ncard-title-text { min-height: 0; } }
.sx-range { margin: -6px 0 0; font-size: 14px; }
.sx-stats { display: flex; flex-direction: column; gap: 12px; }
.sx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sx-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sx-tile .sx-l { font-size: 13px; color: var(--muted); }
.sx-tile b { font-size: 26px; font-weight: 700; line-height: 1.3; }
.sx-tile small { font-size: 12px; }
.sx-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.sx-chart, .sx-topics { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; position: relative; }
.sx-chart svg { width: 100%; height: auto; display: block; }
.sx-chart .sx-b { fill: var(--accent); opacity: .55; }
.sx-chart .sx-b.peak, .sx-chart .sx-b.on { opacity: 1; }
.sx-chart .sx-hit { fill: transparent; cursor: pointer; }
.sx-chart .sx-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.sx-chart .sx-axis { stroke: var(--line); }
.sx-chart .sx-tick { fill: var(--muted); font-size: 13px; font-family: var(--font-ui); }
.sx-tip { position: absolute; top: 4px; background: var(--fg); color: var(--surface); font-size: 13px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.sx-topics h3, .sx-top h3, .sx-group h3 { margin: 0 0 8px; font-size: 15px; }
.sx-topic { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; text-align: start; }
.sx-topic:hover { background: var(--chip); }
.sx-topic.on { background: var(--accent-soft); font-weight: 600; }
.sx-track { height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.sx-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); opacity: .7; margin-inline-start: 0; }
.sx-tc { font-size: 13px; color: var(--muted); min-width: 2.5em; text-align: end; }
.sx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sx-bar #sf-cat:empty { display: none; }
.sx-sel { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.sx-sel span { color: var(--muted); }
.sx-sel select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); max-width: 15em; }
.sx-bar .seg { margin-inline-start: auto; }
.sx-top, .sx-group { display: flex; flex-direction: column; }
.sx-groups { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) {
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-row { grid-template-columns: 1fr; }
  .sx-bar .seg { margin-inline-start: 0; }
  .sx-sel { flex: 1 1 100%; } .sx-sel span { min-width: 3.5em; } .sx-sel select { flex: 1; width: 100%; max-width: none; }
  .sx-chart .sx-tick { font-size: 26px; }
}
.results-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-end .seg { align-self: auto; }

/* «حفظ» في البطاقة واللوحة */
.ncard-icon.active, .story-tool.active svg { color: var(--pk-green); }
.ncard-icon.active svg, .story-tool.active svg { fill: currentColor; }
.story-save select { font: inherit; font-weight: 400; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.story-save-btns { display: flex; gap: 8px; }
@media (prefers-color-scheme: dark) { .ncard-icon.active, .story-tool.active svg { color: var(--brand-light); } }

/* ——— «مساحتي»: صفحة المشترك ——— */
body.acct { background: var(--bg); }
.acct-hero { background: var(--pk-green); padding: 18px 20px 0; color: #fff; }
.acct-hero > * { max-width: var(--page-in); margin-inline: auto; }
.acct-hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 16px; }
.acct-logo img { width: 150px; height: auto; display: block; margin-bottom: 4px; }
.acct-hero h1 { margin: 0; font-family: var(--font-head); font-size: 28px; }
.acct-hero p { margin: 0; color: rgba(255, 255, 255, .86); }
.acct-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { flex: none; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 14px 12px; border-bottom: 3px solid transparent; }
.acct-tabs a:hover { color: #fff; }
.acct-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--count-edge, #E9C46A); }
.acct-wrap { max-width: var(--page-w); margin: 0 auto; padding: 22px 20px 48px; min-height: 50vh; }
.acct-stack { display: flex; flex-direction: column; gap: 18px; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.acct-card-head { margin-bottom: 14px; }
.acct-card-head h2 { margin: 0; font-family: var(--font-head); font-size: 21px; }
.acct-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.acct-status { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; }
.acct-status > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.acct-kicker { font-size: 12px; font-weight: 700; color: var(--accent); }
.acct-days { font-family: var(--font-head); font-size: 26px; }
.acct-status .btn { text-decoration: none; display: inline-flex; align-items: center; }
.acct-usage { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.acct-bar { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.acct-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.acct-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: 2px; }
.acct-tile:hover { border-color: var(--accent); }
.acct-tile b { font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.acct-tile span { font-size: 13px; color: var(--muted); }
.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.acct-row:first-child { border-top: 0; }
.acct-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.acct-row-title { color: var(--fg); font-weight: 600; text-decoration: none; line-height: 1.6; }
a.acct-row-title:hover { color: var(--accent); text-decoration: underline; }
.acct-row-title:lang(en) { font-family: var(--font-en); }
.acct-row-title:lang(ur) { font-family: var(--font-urdu); line-height: 2.1; }
.acct-row-meta { font-size: 12.5px; color: var(--muted); }
.acct-note { font-size: 13px; background: var(--warn-bg); color: var(--warn-fg); padding: 2px 8px; border-radius: 6px; }
.acct-row-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.acct-tag { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.acct-tag.summary, .acct-tag.ok { background: var(--accent-soft); color: var(--accent); }
.acct-tag.report { background: var(--warn-bg); color: var(--warn-fg); }
.acct-tag.no { background: var(--bad-bg); color: var(--bad-fg); }
.acct-x, .acct-link { appearance: none; font: inherit; font-size: 13px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.acct-x:hover { color: var(--bad-fg); border-color: var(--bad-fg); }
.acct-link { border: 0; padding: 4px 0; color: var(--accent); }
.acct-link.bad { color: var(--bad-fg); }
.btn.bad { border-color: var(--bad-fg); color: var(--bad-fg); }
.btn.bad:not(.ghost) { background: var(--bad-fg); color: #fff; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.acct-move, .acct-search, .acct-new-folder input { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 10px; padding: 0 10px; min-height: 38px; }
.acct-move { max-width: 160px; }
.acct-search { width: 100%; }
.acct-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.acct-tools .acct-search { flex: 1; min-width: 200px; width: auto; }
.acct-saved { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.acct-folders { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; }
.acct-folders h3 { margin: 0; font-size: 14px; color: var(--muted); }
.acct-folder-list { display: flex; flex-direction: column; gap: 2px; }
.acct-folder { appearance: none; font: inherit; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; text-align: start; background: none; border: 0; border-radius: 9px; padding: 8px 10px; cursor: pointer; color: var(--fg); }
.acct-folder:hover { background: var(--chip); }
.acct-folder[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.acct-folder small { color: var(--muted); font-variant-numeric: tabular-nums; }
.acct-new-folder { display: flex; gap: 6px; }
.acct-new-folder input { flex: 1; min-width: 0; }
.acct-new-folder .btn { min-height: 38px; padding: 0 12px; }
.acct-folder-manage { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.acct-folder-manage p { margin: 0; font-size: 13px; width: 100%; }
.acct-folder-manage .btn { min-height: 34px; font-size: 13px; padding: 0 12px; }
.acct-saved-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.acct-pair { margin: 2px 0; font-size: 15px; }
.acct-prefs { display: flex; flex-direction: column; gap: 16px; }
.acct-pref { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.acct-pref.top { align-items: flex-start; }
.acct-pref-label { width: 180px; font-weight: 600; font-size: 14px; }
.acct-pref .acct-move { max-width: 260px; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.acct-danger, .acct-data { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.acct-danger p, .acct-data p { margin: 0; flex-basis: 100%; font-size: 14px; }
.acct-empty, .acct-empty-row { color: var(--muted); padding: 14px 0; list-style: none; }
.acct-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.acct-empty p { margin: 0; }
/* «ملفات الدول» في مساحتي (public/account.js: countriesTab): تبويب لكل دولة بعداد الجديد، ثم الملف بدرجاته الثلاث */
.cf-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 13.5px; }
.cf-limit { font-weight: 700; color: var(--accent); }
.cf-frozen-note { color: var(--warn-fg); }
.cf-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; border-radius: 12px; background: var(--chip); }
.cf-tab { appearance: none; font: inherit; font-size: 14px; font-weight: 600; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cf-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cf-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-tab.frozen { opacity: .6; cursor: default; }
.cf-tab.frozen small { font-size: 11.5px; color: var(--muted); }
.cf-cnt { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.cf-plus { border-style: dashed; color: var(--accent); }
.cf-plus:disabled { color: var(--muted); cursor: not-allowed; }
.cf-upgrade { font-size: 13px; color: var(--warn-fg); }
.cf-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cf-file-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cf-file-head h3 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.cf-file-head p { margin: 2px 0 0; font-size: 13px; }
.cf-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-tools input[type=date] { font: inherit; font-size: 14px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.cf-tools .acct-search { flex: 1 1 180px; min-width: 0; }
.cf-tools .seg button { white-space: nowrap; }
@media (max-width: 640px) { .cf-tools .seg { flex: 1 1 100%; } .cf-tools .seg button { flex: 1 1 0; padding-inline: 6px; font-size: 13px; } }
.cf-export { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.cf-mail { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-mail legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.cf-mail-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 6px 0; cursor: pointer; }
.cf-mail-opt input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.cf-mail-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-mail-opt b { font-size: 14.5px; }
.cf-mail-opt small { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.cf-mail-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.cf-mail-email input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 14px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.cf-mail-note { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
/* تنبيهات الملف: ثلاث مجموعات (ما ينبهك، أين يصلك، ساعات الهدوء) داخل لوحة تطوى */
.cf-mail > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; min-height: 32px; list-style-position: inside; }
.cf-mail > summary b { font-size: 15px; }
.cf-mail > summary small { color: var(--muted); font-size: 12.5px; }
.cf-mail[open] > summary { margin-bottom: 6px; }
.cf-mail > .btn.primary { align-self: flex-start; margin-top: 6px; }
.cf-al { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cf-al-g { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf-al-g legend { padding: 0 6px; font-weight: 700; font-size: 13.5px; }
.cf-al-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin: 2px 0 6px; }
.cf-al-row select, .cf-al-row input { font: inherit; font-size: 14px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); min-width: 0; }
.cf-al-row input { flex: 1 1 160px; }
.cf-al-topics summary { cursor: pointer; font-size: 13.5px; min-height: 32px; }
.cf-al-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip-check input { accent-color: var(--accent); margin: 0; }
.chip-check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cf-peers, .cf-report { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cf-peers > summary, .cf-report > summary { cursor: pointer; min-height: 32px; font-size: 14px; font-weight: 600; }
.cf-peers-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-peers-list li { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.cf-peers-list li.me { font-weight: 700; }
.cf-peers-bar { height: 10px; background: color-mix(in srgb, var(--muted) 14%, transparent); border-radius: 4px; overflow: hidden; }
.cf-peers-bar span { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 45%, var(--surface)); border-radius: 4px 0 0 4px; }
.cf-peers-list li.me .cf-peers-bar span { background: var(--accent); }
.cf-peers-n { min-width: 32px; text-align: end; font-variant-numeric: tabular-nums; }
.cf-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 14px 0 4px; font-size: 13.5px; }
.cf-report-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 13.5px; }
.cf-report-row select, .cf-report-row input { font: inherit; font-size: 14px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.cf-report-row a.btn { text-decoration: none; }
.cf-tier { display: flex; flex-direction: column; min-width: 0; }
.cf-tier-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 6px; border-bottom: 2px solid var(--cf-c, var(--line)); }
.cf-tier-h h4 { margin: 0; font-size: 15px; }
.cf-tier-h small { font-size: 12.5px; color: var(--muted); }
.cf-tier[data-tier="bilateral"] { --cf-c: var(--accent); }
.cf-tier[data-tier="title"] { --cf-c: var(--t1-fg); }
.cf-tier[data-tier="mention"] { --cf-c: var(--line); }
.cf-more summary { cursor: pointer; font-size: 13.5px; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
/* بطاقة «ملف الدولة» في صفحة الدولة في المرصد */
.obs-file { display: flex; flex-direction: column; gap: 10px; }
.obs-file ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.7; }
.obs-file ol a { color: var(--fg); text-decoration: none; } .obs-file ol a:hover { color: var(--accent); text-decoration: underline; }
.obs-file ol small { display: block; color: var(--muted); font-size: 12px; }
.acct-flash { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.acct-flash.bad { background: var(--bad-bg); color: var(--bad-fg); }
.acct-signin { max-width: 520px; margin: 20px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.acct-signin h2 { margin: 0; font-family: var(--font-head); }
.acct-signin p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .acct-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .acct-tabs { justify-content: flex-start; } }
@media (max-width: 700px) {
  .acct-saved { grid-template-columns: 1fr; }
  .acct-folders { position: static; }
  .acct-folder-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .acct-folder { flex: none; }
  .acct-row { flex-wrap: wrap; }
  .acct-row-acts { width: 100%; justify-content: flex-end; }
  .acct-pref-label { width: 100%; }
  .acct-card, .acct-status { padding: 16px 14px; }
  .acct-wrap { padding: 16px 14px 40px; }
}
@media (max-width: 420px) { .acct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-status { grid-template-columns: 1fr; } }

/* ——— «الأرشيف» الدائم ——— */
.archive-tail { text-align: center; margin: 26px 0 6px; }
.archive-tail a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.archive-tail a:hover { border-color: var(--accent); }
body.arc { background: var(--bg); }
.arc-hero { background: var(--pk-green); color: #fff; padding: 20px 20px 0; }
.arc-hero > * { max-width: var(--page-in); margin-inline: auto; }
.arc-hero-in { padding-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.arc-hero h1 { margin: 0; font-family: var(--font-head); font-size: 30px; line-height: 1.5; }
.arc-hero p { margin: 0; color: rgba(255, 255, 255, .86); }
.arc-hero .arc-hijri { font-size: 14px; color: rgba(255, 255, 255, .72); }
.arc-hero .arc-stats { font-size: 13.5px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.arc-story-h { font-size: 27px !important; max-width: 900px; }
.arc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.arc-crumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.arc-crumbs a:hover { color: #fff; text-decoration: underline; }
.arc-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.arc-tabs::-webkit-scrollbar { display: none; }
.arc-tabs a { flex: none; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 14px 12px; border-bottom: 3px solid transparent; }
.arc-tabs a:hover { color: #fff; }
.arc-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--count-edge, #E9C46A); }
.arc-daynav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 6px; }
.arc-daynav > :first-child { justify-self: start; }
.arc-daynav > :last-child { justify-self: end; }
.arc-hero .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 36px; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.arc-hero .btn:hover { background: rgba(255, 255, 255, .2); }
.arc-week-link { color: #fff; font-size: 13px; }
.arc-kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.arc-kicker.light { color: var(--count-edge, #E9C46A); }
.arc-wrap { max-width: var(--page-w); margin: 0 auto; padding: 22px 20px 48px; display: flex; flex-direction: column; gap: 18px; min-height: 50vh; }
.arc-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.arc-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.arc-sec-head h2 { margin: 0; font-family: var(--font-head); font-size: 21px; }
.arc-sec-head p { margin: 0; flex-basis: 100%; color: var(--muted); font-size: 14px; line-height: 1.7; order: 3; }
.arc-more { margin-inline-start: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.arc-list { list-style: none; margin: 0; padding: 0; }
.arc-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.arc-item:first-child { border-top: 0; }
.arc-title { color: var(--fg); font-weight: 600; text-decoration: none; line-height: 1.65; }
a.arc-title:hover { color: var(--accent); text-decoration: underline; }
.arc-title:lang(en), .arc-lead h3 a:lang(en) { font-family: var(--font-en); }
.arc-title:lang(ur), .arc-lead h3 a:lang(ur) { font-family: var(--font-urdu); line-height: 2.1; }
.arc-meta { font-size: 12.5px; color: var(--muted); }
.arc-meta b { color: var(--accent); font-weight: 600; }
.arc-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; align-items: start; }
.arc-lead { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.arc-lead-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--chip); }
.arc-lead-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.arc-lead h3 { margin: 0; font-family: var(--font-head); font-size: 18px; line-height: 1.6; }
.arc-lead h3 a { color: var(--fg); text-decoration: none; }
.arc-lead h3 a:hover { color: var(--accent); }
.arc-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 26px; }
.arc-col h3 { margin: 10px 0 2px; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.arc-col h3 a { color: var(--fg); text-decoration: none; }
.arc-col h3 a:hover { color: var(--accent); }
.arc-col h3 small { color: var(--muted); font-weight: 500; }
.arc-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.arc-file { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--fg); background: var(--surface); }
.arc-file:hover { border-color: var(--accent); }
.arc-file b { font-family: var(--font-head); font-size: 17px; }
.arc-file span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.arc-file small { margin-top: auto; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.arc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-chips .chip { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.arc-searchbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.arc-searchbar input { flex: 1; min-width: 220px; font: inherit; font-size: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 0 14px; min-height: 46px; }
.arc-adv { font-size: 13.5px; font-weight: 600; }
.arc-cal-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.arc-cal-nav > :first-child { justify-self: start; }
.arc-cal-nav > :last-child { justify-self: end; }
.arc-cal-nav .btn { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }
.arc-cal-report { font-weight: 600; font-size: 14px; }
.arc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.arc-cal-h { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.arc-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; border-radius: 10px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.arc-day b { font-size: 15px; }
.arc-day small { font-size: 11px; opacity: .8; }
.arc-day.lvl0 { color: var(--muted); background: transparent; border-style: dashed; }
.arc-day.future { opacity: .4; }
.arc-day.lvl1 { background: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.arc-day.lvl2 { background: color-mix(in oklab, var(--accent) 24%, var(--surface)); }
.arc-day.lvl3 { background: color-mix(in oklab, var(--accent) 42%, var(--surface)); }
.arc-day.lvl4 { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
a.arc-day:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.arc-day.today { box-shadow: inset 0 0 0 2px var(--count-edge, #E9C46A); }
.arc-day.locked { opacity: .55; }
.arc-day.locked::after { content: '🔒'; font-size: 9px; }
.arc-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.arc-weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 6px 18px; }
.arc-weeks li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; }
.arc-weeks a { text-decoration: none; font-weight: 600; }
.arc-weeks small { color: var(--muted); }
.arc-empty { color: var(--muted); margin: 0; padding: 10px 0; }
.arc-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.arc-figures div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.arc-figures b { font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.arc-figures span { font-size: 13px; color: var(--muted); }
.arc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.arc-share { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.arc-share li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 14px; }
.arc-share a { text-decoration: none; color: var(--fg); font-weight: 600; }
.arc-share li > span:last-child { text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.arc-share progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; background: var(--chip); overflow: hidden; }
.arc-share progress::-webkit-progress-bar { background: var(--chip); border-radius: 999px; }
.arc-share progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.arc-share progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.arc-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; }
.arc-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; text-decoration: none; }
.arc-bar i { display: block; width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 2px; }
.arc-bar:hover i { background: var(--count-edge, #E9C46A); }
.arc-bar small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.arc-bar.h0 i { height: 2px; } .arc-bar.h1 i { height: 10%; } .arc-bar.h2 i { height: 19%; } .arc-bar.h3 i { height: 27%; } .arc-bar.h4 i { height: 35%; }
.arc-bar.h5 i { height: 43%; } .arc-bar.h6 i { height: 51%; } .arc-bar.h7 i { height: 59%; } .arc-bar.h8 i { height: 67%; } .arc-bar.h9 i { height: 75%; } .arc-bar.h10 i { height: 84%; }
.arc-sources { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 6px 18px; counter-reset: src; }
.arc-sources li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.arc-sources b { color: var(--accent); font-variant-numeric: tabular-nums; }
.arc-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.arc-timeline::before { content: ''; position: absolute; inset-block: 6px; inset-inline-start: 88px; width: 2px; background: var(--line); }
.arc-timeline li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 34px; padding: 9px 0; position: relative; }
.arc-timeline li::before { content: ''; position: absolute; inset-inline-start: 84px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.arc-timeline li.current::before { background: var(--count-edge, #E9C46A); border-color: var(--count-edge, #E9C46A); }
.arc-timeline li.current .arc-title { color: var(--accent); }
.arc-timeline li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.arc-tl-date { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding-top: 3px; }
a.arc-tl-date:hover { color: var(--accent); }
.arc-tl-more { font-size: 12.5px; text-decoration: none; }
.arc-locked { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.arc-locked h2 { margin: 0; font-family: var(--font-head); }
.arc-locked p { margin: 0; color: var(--muted); max-width: 560px; line-height: 1.8; }
.arc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arc-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.arc-tools { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.arc-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.arc-range label, .arc-adv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.arc-range input, .arc-adv-form input, .arc-adv-form select { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-height: 40px; }
.arc-adv-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.arc-adv-form .wide { grid-column: 1 / -1; }
.arc-adv-form .wide input { font-size: 16px; min-height: 46px; }
.arc-adv-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.arc-adv-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.arc-digest:empty { display: none; }
.arc-digest { border-top: 1px dashed var(--line); padding-top: 12px; }
.arc-digest h3 { margin: 0 0 8px; font-size: 16px; }
.arc-digest-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.85; }
.arc-ref { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 3px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; text-decoration: none; vertical-align: 2px; }
.arc-flash { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.arc-flash.bad { background: var(--bad-bg); color: var(--bad-fg); }
.arc-story { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.arc-story-img { margin: 0; }
.arc-story-img img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; background: var(--chip); }
.arc-story-img figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.arc-orig { margin: 0; padding: 10px 14px; background: var(--chip); border-radius: 10px; line-height: 1.8; }
.arc-orig span { font-size: 12.5px; color: var(--muted); font-family: var(--font-ui); }
.arc-orig:lang(en) { font-family: var(--font-en); text-align: right; }
.arc-orig:lang(ur) { font-family: var(--font-urdu); line-height: 2.2; }
.arc-prov { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.arc-prov div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.arc-prov dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.arc-prov dd { margin: 0; font-size: 14px; }
.arc-cite { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.arc-cite h2 { margin: 0; font-size: 15px; }
.arc-cite-text { margin: 0; font-size: 14px; line-height: 1.9; user-select: all; overflow-wrap: anywhere; }
.sr-copy { position: fixed; inset-inline-start: -9999px; }
@media (max-width: 900px) {
  .arc-adv-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .arc-hero h1 { font-size: 24px; }
  .arc-story-h { font-size: 22px !important; }
  .arc-wrap { padding: 16px 14px 40px; }
  .arc-sec, .arc-story, .arc-tools, .arc-adv-form { padding: 16px 14px; }
  .arc-leads { grid-template-columns: 1fr; }
  .arc-prov { grid-template-columns: 1fr; }
  .arc-day { min-height: 46px; }
  .arc-day small { display: none; }
  .arc-share li { grid-template-columns: 90px minmax(0, 1fr) 38px; }
  .arc-timeline::before { inset-inline-start: 66px; }
  .arc-timeline li { grid-template-columns: 58px minmax(0, 1fr); gap: 30px; }
  .arc-timeline li::before { inset-inline-start: 62px; }
  .arc-tl-date { font-size: 12px; }
  .arc-bar small { display: none; }
  .arc-daynav .btn { font-size: 12px; padding: 0 10px; }
}
@media (max-width: 420px) { .arc-adv-form { grid-template-columns: 1fr; } .topbar-links a { padding: 6px 5px; font-size: 12.5px; } }
/* طباعة تقرير الأسبوع والشهر: بلا شريط ولا تذييل، وعلى خلفية بيضاء */
@media print {
  .topbar, .site-footer, .arc-tabs, .arc-daynav, .arc-crumbs, .arc-tools, .arc-actions, .arc-searchbar { display: none !important; }
  body.arc, .arc-sec, .arc-figures div, .arc-story { background: #fff !important; color: #000; }
  .arc-hero { background: #fff !important; color: #000; padding: 0; }
  .arc-hero p, .arc-hero .arc-hijri { color: #333 !important; }
  .arc-sec, .arc-figures div { border-color: #ccc; break-inside: avoid; }
  .arc-wrap { padding: 0; }
  a { color: #000 !important; text-decoration: none !important; }
  .arc-lead-img { display: none; }
}
.story-arc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 0 2px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; }
.story-arc a { text-decoration: none; }
.story-arc a:hover { text-decoration: underline; }
.acct-key-form { margin-top: 12px; max-width: 520px; }
.acct-key-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); }
.acct-key-new p { margin: 0; flex-basis: 100%; font-size: 14px; }
.acct-key-new code, .acct-row code { font-size: 13px; background: var(--chip); color: var(--fg); padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.acct-api-doc { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.acct-api-doc summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.acct-api-doc p { margin: 8px 0 0; line-height: 1.8; overflow-wrap: anywhere; }
.ds-card { display: flex; flex-direction: column; gap: 12px; }
.ds-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ds-head h2 { margin: 0; font-size: 18px; }
.ds-head a { font-size: 13px; }
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ds-grid .wide { grid-column: 1 / -1; }
.ds-grid textarea { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; resize: vertical; }
@media (max-width: 700px) { .ds-grid { grid-template-columns: 1fr; } }
/* ——— «مساحتي»: أخباري ومتابعاتي والنشرة ——— */
.acct-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--count-edge, #E9C46A); color: #1F1A0E; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.acct-badge[hidden] { display: none; }
.acct-tile-new { border-color: color-mix(in oklab, var(--count-edge, #E9C46A) 70%, var(--line)); }
.acct-row-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.acct-tag.new { background: var(--count-edge, #E9C46A); color: #1F1A0E; }
.acct-row.fresh .acct-row-title { color: var(--accent); }
.acct-feed-filter { margin-bottom: 6px; }
.acct-feed-filter .chip { text-decoration: none; }
.acct-watch-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.acct-watch-form .acct-search { flex: 1; min-width: 200px; width: auto; }
.acct-watch-pick { flex: 1; min-width: 200px; max-width: none !important; }
.acct-watch-form [hidden] { display: none; }
.acct-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.acct-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.acct-brief-mail { max-width: 320px; }
.acct-brief-preview { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.acct-brief-preview h3 { margin: 0 0 6px; font-size: 16px; }
.acct-brief-preview h4 { margin: 12px 0 4px; font-size: 14px; color: var(--accent); }
.acct-brief-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.7; }
.acct-brief-list a { color: var(--fg); text-decoration: none; }
.acct-brief-list a:hover { color: var(--accent); text-decoration: underline; }
.acct-brief-list small { color: var(--muted); }
.arc-follow.done { background: var(--accent-soft); }
.topbar .acct-badge { margin-inline-start: 0; }
/* «ملف دولتي» في الرأس: الشارة والجرس */
.acct-strip { display: inline-flex; align-items: center; gap: 6px; }
.acct-chip { max-width: 220px; }
.acct-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chip.more { padding-inline: 9px; }
.acct-bell-wrap { position: relative; display: inline-flex; }
.acct-bell { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; }
.acct-bell-ic { display: inline-flex; }
.acct-bell-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 10px 12px; text-align: start; font-size: 13.5px; }
.acct-bell-pop[hidden] { display: none; }
.acct-bell-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.acct-bell-all { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px; }
.acct-bell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-bell-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.acct-bell-list li.unread a { font-weight: 700; }
.acct-bell-list a { color: var(--fg); text-decoration: none; line-height: 1.6; }
.acct-bell-list a:hover { text-decoration: underline; }
.acct-bell-list small { color: var(--muted); font-size: 12px; }
.acct-bell-empty { margin: 6px 0; color: var(--muted); }
.acct-bell-foot { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--accent); text-decoration: none; font-size: 13px; }
@media (max-width: 640px) { .acct-chip > span:first-child { max-width: 110px; } }
.story-follow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 0 0; font-size: 13px; color: var(--muted); }
.story-follow .chip { min-height: 30px; padding: 4px 10px; }
/* ——— «مؤسستي» ——— */
.acct-member { flex-wrap: wrap; }
.acct-member-acts { flex-wrap: wrap; justify-content: flex-end; }
.acct-limit { width: 96px; max-width: 96px !important; }
.acct-member-msg { flex-basis: 100%; }
.acct-member-msg:empty { display: none; }
.acct-count { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.org-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.org-table th, .org-table td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.org-table th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.org-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 10px 0; }
.org-edit .actions { grid-column: 1 / -1; }
@media (max-width: 700px) { .org-edit { grid-template-columns: 1fr 1fr; } .org-table { font-size: 13px; } }
/* ——— لوحة التحكم: التكاليف والاستهلاك ——— */
.cost-periods { flex-wrap: wrap; }
.cost-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 8px; overflow-x: auto; }
.cost-col { flex: 1 0 22px; max-width: 48px; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cost-stack { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.cost-seg { display: block; width: 100%; min-height: 1px; }
.cost-col small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cost-seg.c1 { background: var(--accent); } .cost-seg.c2 { background: #C08A2B; } .cost-seg.c3 { background: #5B7DB1; } .cost-seg.c4 { background: #9C5B8C; } .cost-seg.c5 { background: #6E9E5A; } .cost-seg.c6 { background: #B0605A; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cost-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cost-legend .cost-seg { width: 12px; height: 12px; border-radius: 3px; }
.cost-settings { margin-top: 14px; }
.cost-fixed h3 { margin: 0 0 8px; font-size: 15px; }
.cost-fixed-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; margin-bottom: 6px; }
.cost-fixed-row input { font: inherit; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); min-width: 0; }
/* ——— لوحة التحكم: الزوار والاستخدام ——— */
/* «بوابة النشر» (public/admin/gate.js) */
.gate-orig { display: inline-block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.gate-title { display: flex; gap: 6px; align-items: center; min-width: 240px; margin: 0; }
.gate-title input { font: inherit; flex: 1; min-width: 0; min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.gate-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.vis-tab { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vis-tab > p.muted { margin: 0; }
body.admin .vis-tab > .ex-site { margin: 0; }
.vis-jr { display: flex; flex-direction: column; gap: 6px; }
.vis-jr > p { margin: 0; }
.vis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vis-grid .box h3 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.vis-shares { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vis-shares li { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.vis-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-bar { height: 9px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.vis-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.vis-pct { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vis-insights { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.8; }
.vis-hours .cost-col { flex: 1 0 14px; }
@media (max-width: 900px) { .vis-grid { grid-template-columns: 1fr; } }
/* «مرصد الزيارات» (2026-11-24): سجل الزيارات ومسار الزائر وخريطة الأسبوع والعداد */
.vis-link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vis-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.vis-filters select { font: inherit; min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.vis-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--chip); }
.vis-row { cursor: pointer; }
.vis-row:hover td, .vis-row[aria-expanded="true"] td { background: var(--chip); }
.vis-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vis-journey td { white-space: normal; background: var(--bg, transparent); }
.vis-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; }
.vis-step { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; background: var(--surface); max-width: 100%; }
.vis-step i { font-style: normal; font-size: 11px; color: var(--muted); }
.vis-step small { color: var(--muted); font-size: 11.5px; }
.vis-step a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.vis-arrow { color: var(--muted); }
.vis-act { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 3px 8px; }
.vis-heat { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.vis-heat th { color: var(--muted); font-weight: 500; padding: 0 4px; text-align: center; }
.vis-heat td { width: 22px; height: 18px; border-radius: 3px; background: var(--chip); }
.vis-heat td.on { background: var(--accent); opacity: calc(.2 + var(--h) * .8); }
.vis-counter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.vis-counter b { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.vis-ctr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.vis-ctr-row label { min-width: 170px; color: var(--muted); font-size: 14px; }
.vis-ctr-row input { font: inherit; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 180px; max-width: 100%; }
@media print {
  body.admin .side, body.admin .vis-noprint, body.admin .toast { display: none !important; }
  body.admin .shell { display: block; }
  body.admin .box { break-inside: avoid; border-color: #ccc; }
}
/* ——— دخول لوحة التحكم ——— */
body.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.login-box { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login-box img { width: 170px; height: auto; margin: 0 auto; }
.login-box h1 { margin: 0; font-size: 20px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; text-align: start; }
.login-box pre { text-align: left; background: var(--chip); padding: 10px 12px; border-radius: 10px; font-size: 13px; overflow-x: auto; }
.side-logout { appearance: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-align: start; color: var(--muted); }
.ds-topics { display: flex; flex-wrap: wrap; gap: 6px; }

/* مصدر يرفض القراءة الآلية: الزر باهت، ونقره يشرح السبب فورا */
.sum-btn.off, .sum-btn.off:hover { background: transparent; color: var(--muted, #888); border-style: dashed; font-weight: 600; cursor: help; }
.ncard-icon.off, .story-tool.off { opacity: .45; cursor: help; }

/* ——— إقفال الموقع للزوار ——— */
.lock-page { min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, var(--ph-a, #0B5D33) 0%, var(--ph-b, #013D1C) 100%); color: #F2F7F4; text-align: center; font-family: var(--font-ui); }
.lock-wrap { max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lock-logo { width: min(320px, 78vw); height: auto; }
.lock-rule { width: 64px; height: 2px; background: rgba(255, 255, 255, .45); border-radius: 2px; margin: 10px 0 4px; }
.lock-page h1 { font-family: var(--font-display); font-size: clamp(30px, 7vw, 44px); margin: 0; line-height: 1.3; color: #fff; }
.lock-msg { font-size: 17px; line-height: 2; margin: 0; color: rgba(242, 247, 244, .9); }
.lock-when { font-size: 14px; margin: 6px 0 0; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; }
.lock-contact { font-size: 14px; margin: 4px 0 0; color: rgba(242, 247, 244, .8); }
.lock-contact a { color: #fff; }
.lock-foot { position: fixed; bottom: 14px; inset-inline: 0; font-size: 12px; color: rgba(242, 247, 244, .6); }
.lock-bar { position: sticky; top: 0; z-index: 1000; background: var(--bad-fg); color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; font-family: var(--font-ui); }
.lock-bar a { color: #fff; font-weight: 700; margin-inline-start: 6px; }
/* لوحة التحكم ← الصيانة */
#mt-lock.lock-on { border-color: var(--bad-fg); }
.lock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lock-head h2 { margin: 0; }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.bad { color: var(--bad-fg); background: var(--bad-bg); border-color: transparent; font-weight: 600; }
.lock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0; }
.lock-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.lock-field:nth-child(3) { grid-column: 1 / -1; }
.lock-field input, .lock-field select, .lock-field textarea { font: inherit; font-weight: 400; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); box-sizing: border-box; width: 100%; }
.lock-field small { font-weight: 400; }
@media (max-width: 640px) { .lock-grid { grid-template-columns: 1fr; } }

/* ——— لوحة التحكم ← باقات الإعلام ——— */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.warn-line { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.pk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pk-head h3 { margin: 0; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-feeds { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.pk-group { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; background: var(--surface); }
.pk-group summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.pk-feed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pk-url { font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.pk-card.off { opacity: .75; }
.pk-more { margin-top: 12px; }
.pk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pk-table th, .pk-table td { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pk-table td.err { color: var(--bad-fg); font-size: 12px; }
.pk-table tr.muted td { color: var(--muted); }
.pk-table small.tag { margin-inline-start: 6px; }
.pk-sug { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pk-sug > div:first-child { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.pk-sug .tag { align-self: flex-start; }
.pk-sample { margin: 4px 0 0; padding-inline-start: 18px; font-size: 12px; color: var(--muted); }
.btn.warn { border-color: var(--warn-fg); color: var(--warn-fg); background: var(--warn-bg); }
.pk-broken-bar { margin: 8px 0; }
.pk-edit td { background: var(--chip); }
.pk-url-input { flex: 1; min-width: 220px; font: inherit; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.pk-table td .pk-url { display: inline-block; max-width: 100%; word-break: break-all; }
.pk-edit-btn { margin-inline-start: 8px; }
.pk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pk-filters select, .pk-filters input { font: inherit; font-size: 13px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.pk-filters input { flex: 1; min-width: 180px; }
.pk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pk-why { display: block; margin-top: 4px; font-size: 11.5px; }
.pk-table .tag { display: inline-block; width: auto; margin: 2px 0 0; margin-inline-start: 6px; }

/* بطاقات الأرقام القابلة للنقر في لوحة التحكم */
button.stat { font: inherit; text-align: start; cursor: pointer; color: inherit; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.stat.go::after { content: '↖'; position: absolute; top: 10px; inset-inline-end: 12px; font-size: 13px; color: var(--muted); opacity: .6; }
button.stat.go:hover, button.stat.go:focus-visible { border-color: var(--accent); box-shadow: 0 2px 10px color-mix(in oklab, var(--accent) 18%, transparent); transform: translateY(-1px); outline: none; }
button.stat.go:hover::after { color: var(--accent); opacity: 1; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
button.stat.on { border-color: var(--accent); background: var(--accent-soft); }
.pk-download { margin-top: 10px; font-size: 13px; }
.go-row { cursor: pointer; }
.go-row:hover, .go-row:focus-visible { background: var(--accent-soft); outline: none; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-alert { display: block; width: 100%; text-align: start; font: inherit; font-size: 13px; border: 0; }

/* ——— سطر الشارات تحت العنوان في كل بطاقات الأخبار (الأخبار، والأرشيف، و«مساحتي») ———
   على نسق «أبرز الأخبار»: المصدر بلونه الهادئ الثابت (tone-*)، ثم الوقت، ثم عدد المصادر */
.meta-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.meta-pills .src-pill { font-size: 11.5px; padding: 1px 9px; }
.meta-pills .time-pill { font-size: 11.5px; padding: 1px 9px; }
.cnt-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.meta-pills .ncard-pending { font-size: 11.5px; color: var(--muted); }
.ncard-meta.meta-pills { margin-top: auto; padding-top: 4px; }
/* سطر واحد دائما: اسم المصدر يختصر، والوقت وعدد المصادر يبقيان كاملين */
.ncard-meta.meta-pills { flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.ncard-meta.meta-pills > * { flex: none; }
.ncard-meta.meta-pills .src-pill { flex: 0 1 auto; min-width: 0; font-size: 11px; padding: 0 7px; }
.ncard-meta.meta-pills .time-pill { font-size: 11px; padding-inline: 0; }
.ncard-meta.meta-pills .cnt-pill { font-size: 11px; padding: 0 7px; }
.ncard-meta.meta-pills .ncard-pending { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }

/* التصنيف شارة فوق صورة البطاقة، بلون الموقع */
.ncard-tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 700; line-height: 1.5; padding: 2px 11px; border-radius: 999px;
  background: color-mix(in oklab, var(--pk-green) 90%, transparent); color: #F4EBD0; border: 1px solid rgba(201, 169, 97, .55); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); pointer-events: none; }
.arc-item .arc-kicker { align-self: flex-start; font-size: 12px; }
.arc-meta.meta-pills { margin-top: 3px; }
.arc-meta.meta-pills .time-pill { color: var(--time-fg); }
.acct-row-meta.meta-pills { margin-top: 4px; }
/* التصنيف فوق عنوان سطر الموجز */
.trow-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--pk-green); margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .trow-kicker { color: var(--brand-light); } }
.trow-count.cnt-pill { font-size: 11.5px; }

/* لوحة التحكم ← مختبر X */
.xl-steps { margin: 6px 0 12px; padding-inline-start: 20px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.xl-list { display: flex; flex-direction: column; }
.xl-post { padding: 14px 0; border-top: 1px solid var(--line); }
.xl-post.pk { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }
.xl-ar { margin: 8px 0 4px; font-weight: 600; line-height: 1.9; }
.xl-text { margin: 6px 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.xl-text.muted { font-size: 13px; }
.xl-trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.xl-trend { display: flex; align-items: center; gap: 10px; text-align: start; font: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); cursor: pointer; }
.xl-trend b { color: var(--muted); font-size: 12px; min-width: 18px; }
.xl-trend:hover, .xl-trend:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.xl-reports { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.xl-rep-item { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; text-align: start; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); cursor: pointer; }
.xl-rep-item:hover { border-color: var(--accent); }
.xl-rep-item.bad { opacity: .7; }
.xl-report-view { margin-top: 16px; }
.xl-rep-head h3 { margin: 0 0 4px; font-size: 20px; }
.xl-summary { font-size: 15.5px; line-height: 2; font-weight: 500; }
.xl-mood { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 6px 0; background: var(--chip); }
.xl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.xl-point { border-inline-start: 3px solid var(--accent); padding: 4px 12px; margin: 10px 0; }
.xl-point.warn { border-color: var(--warn-fg); }
.xl-point p { margin: 4px 0; line-height: 1.9; }
.xl-point details summary, .xl-sample summary { cursor: pointer; font-size: 12.5px; color: var(--accent); }
.xl-tw { padding: 10px 0; border-top: 1px solid var(--line); }
.xl-arch { padding-inline-start: 18px; line-height: 2; }
.xl-sample { margin-top: 16px; }
.xl-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; margin: 8px 0 14px; }
.xl-prov { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); cursor: pointer; }
.xl-prov small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.xl-prov.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.xl-prov:hover { border-color: var(--accent); }

/* ——— لوحة التحكم ← وسائل التواصل ——— */
.sx-logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; }
.sx-logo svg { width: 18px; height: 18px; }
.sx-logo.big { width: 52px; height: 52px; border-radius: 14px; }
.sx-logo.big svg { width: 28px; height: 28px; }
.sx-logo.x { background: #0F1419; color: #fff; }
.sx-logo.youtube { background: #fff; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .sx-logo.x { background: #fff; color: #0F1419; } .sx-logo.youtube { background: #fff; } }

.so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.so-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.so-card:hover, .so-card:focus-visible { border-color: var(--accent); box-shadow: 0 4px 18px color-mix(in oklab, var(--accent) 14%, transparent); transform: translateY(-2px); outline: none; }
.so-card.soon { background: color-mix(in oklab, var(--chip) 50%, var(--surface)); }
.so-top { display: flex; align-items: center; gap: 14px; }
.so-top h2 { margin: 0 0 4px; font-size: 19px; }
.so-card p { margin: 0; line-height: 1.9; font-size: 13.5px; }
.so-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.so-facts div { background: var(--chip); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.so-facts b { font-size: 16px; font-variant-numeric: tabular-nums; }
.so-facts span { font-size: 11.5px; color: var(--muted); }
.so-go { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 13.5px; }

.sx-head { margin-bottom: 14px; }
.sx-crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.sx-crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sx-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sx-title-text { flex: 1; min-width: 220px; }
.sx-title h1 { margin: 0; font-size: 26px; }
.sx-title p { margin: 4px 0 0; font-size: 13px; }
.sx-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-chip, .sx-meter { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.sx-chip:hover, .sx-meter:hover { border-color: var(--accent); }
.sx-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sx-chip .dot.off { background: var(--bad-fg); }
.sx-meter i { display: block; width: 80px; height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.sx-meter i b { display: block; height: 100%; background: var(--accent); }
.sx-meter i b.hot { background: var(--bad-fg); }

.sx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; }
.sx-tab { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.sx-tab i { font-style: normal; font-size: 11.5px; background: var(--chip); color: var(--muted); border-radius: 999px; padding: 0 8px; }
.sx-tab:hover { color: var(--fg); }
.sx-tab[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.sx-tab[aria-current="true"] i { background: var(--accent-soft); color: var(--accent); }

.sx-box { margin-bottom: 16px; }
.sx-box-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-box-head h2 { margin: 0; font-size: 18px; }
.sx-box-head p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.8; max-width: 680px; }
.sx-box-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-box-actions select { font: inherit; font-size: 13px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.sx-onboard { border-color: var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
.sx-onboard h2 { margin-top: 0; }
.sx-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.sx-action { font: inherit; text-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); cursor: pointer; }
.sx-action b { font-size: 15px; }
.sx-action span { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.sx-action:not(.static):hover, .sx-action:not(.static):focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.sx-action.static { cursor: default; }
.sx-table td { vertical-align: middle; }
.sx-arrow { color: var(--accent); font-weight: 700; }
.sx-back { margin-bottom: 10px; }
.sx-report { padding: 22px 24px; }
.sx-report-title { margin: 0 0 8px; font-size: 22px; line-height: 1.6; }
.sx-report h3 { margin: 22px 0 8px; font-size: 16px; }
.sx-handles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sx-handle { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); cursor: pointer; }
.sx-handle span { font-size: 11.5px; color: var(--muted); }
.sx-handle.on, .sx-handle:hover { border-color: var(--accent); background: var(--accent-soft); }
.sx-edit summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; margin: 6px 0; }
.sx-edit textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
@media (max-width: 640px) { .so-facts { grid-template-columns: 1fr 1fr 1fr; } .sx-title h1 { font-size: 22px; } }

/* ——— الاشتراك المهني: لون ذهبي هادئ واحد لكل ما هو مهني، بدل أقفال «للمشتركين» ——— */
:root { --pro: #9A7531; --pro-soft: #F6EFDF; --pro-edge: #D8C08A; }
@media (prefers-color-scheme: dark) { :root { --pro: #D9BE7E; --pro-soft: #2B2516; --pro-edge: #6B5A33; } }
.pro-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--pro); background: var(--pro-soft); border: 1px solid var(--pro-edge); border-radius: 999px; padding: 1px 10px; }
.pro-btn { color: var(--pro); border-color: var(--pro-edge); }
.btn.primary.pro-btn { background: var(--pro); border-color: var(--pro); color: #fff; }
.acct-cta.pro-cta { background: transparent; color: #F4EBD0; border: 1px solid rgba(201, 169, 97, .7); font-weight: 700; text-decoration: none; }
.acct-cta.pro-cta:hover { background: rgba(201, 169, 97, .18); }
.story-lock { font-style: normal; color: var(--pro); font-size: 11px; margin-inline-start: 4px; }
.tab-lock { color: var(--pro); font-size: 11px; }
.sum-btn.locked { color: var(--pro); border-color: var(--pro-edge); border-style: solid; background: transparent; }
.ncard-icon.locked::before { background: var(--pro); }

.pro-sheet { border: 1px solid var(--pro-edge); background: linear-gradient(to bottom, var(--pro-soft), var(--surface) 70%); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pro-sheet h4 { margin: 4px 0 0; font-size: 17px; }
.pro-sheet p { margin: 0; line-height: 1.9; font-size: 14px; }
.pro-preview:empty { display: none; }
.pro-points { margin: 6px 0 0; }
.pro-blur { filter: blur(4px); user-select: none; color: var(--muted); }
.pro-example { margin: 4px 0; padding-inline-start: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.pro-left { align-self: center; }

.pro-teaser { margin: 14px 0; border: 1px solid var(--pro-edge); border-radius: 12px; padding: 12px 14px; background: linear-gradient(to left, var(--pro-soft), var(--surface)); }
.pro-teaser-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pro-teaser p { margin: 4px 0; font-size: 13.5px; line-height: 1.8; }
.pro-quote { font-weight: 600; color: var(--fg); border-inline-start: 3px solid var(--pro); padding-inline-start: 10px; }
.pro-teaser-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pro-more { margin-inline-start: auto; font-size: 12.5px; color: var(--pro); font-weight: 600; text-decoration: none; }

/* ——— صفحة «الاشتراك المهني» ——— */
.sb-page .arc-hero-in h1 { margin: 10px 0 6px; }
.sb-page .arc-hero-in > p { max-width: 760px; line-height: 2; }
.sb-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sb-price { margin: 10px 0 0; font-weight: 700; color: var(--count-edge, #E9C46A); }
.sb-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sb-table th, .sb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.sb-table thead th { background: var(--chip); font-size: 13px; }
.sb-table thead th.pro { color: var(--pro); background: var(--pro-soft); }
.sb-table td.pro { background: color-mix(in oklab, var(--pro-soft) 55%, transparent); font-weight: 600; }
.sb-table tbody th { font-weight: 600; }
.sb-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sb-yes { color: var(--ok); font-weight: 700; font-size: 16px; }
.sb-no { color: var(--muted); }
.sb-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.sb-cases div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.sb-cases b { font-size: 15px; }
.sb-cases p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.sb-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.sb-sample { background: var(--surface); border: 1px solid var(--pro-edge); border-radius: 14px; padding: 16px 18px; }
.sb-sample h3 { margin: 10px 0 8px; font-size: 17px; line-height: 1.7; }
.sb-sample h4 { margin: 12px 0 4px; font-size: 14px; }
.sb-sample p { line-height: 1.9; font-size: 14px; }
.sb-method { padding-inline-start: 18px; line-height: 2.1; }
.sb-method b { color: var(--fg); }
.sb-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.sb-faq summary { cursor: pointer; font-weight: 600; }
.sb-faq p { margin: 8px 0 2px; line-height: 1.9; color: var(--muted); }
.sb-plans { display: flex; flex-direction: column; gap: 20px; }
.sb-periods { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sb-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; }
.sb-period { font: inherit; font-weight: 600; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; }
.sb-period[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.sb-pnote { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.sb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.sb-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.sb-card.featured { border: 2px solid var(--pro); }
.sb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.sb-card h2 { margin: 0; font-size: 22px; font-family: var(--font-head); }
.sb-tag { font-size: 12px; font-weight: 700; color: var(--pro); background: var(--pro-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.sb-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sb-cost[hidden], .sb-pnote[hidden] { display: none; }
.sb-amount { direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: 38px; font-weight: 700; line-height: 1.2; color: var(--accent); font-variant-numeric: tabular-nums; }
.sb-seatprice { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 700; }
.sb-unit, .sb-seats { color: var(--muted); font-size: 14px; }
.sb-seats { margin-top: -10px; }
.sb-items { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sb-items li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.8; }
.sb-items li::before { content: "✓"; flex: none; color: var(--ok); font-weight: 700; }
.sb-choose { font: inherit; font-weight: 700; min-height: 46px; border: 1px solid var(--pro); border-radius: 10px; background: var(--surface); color: var(--pro); cursor: pointer; }
.sb-card.featured .sb-choose { background: var(--pro); color: #fff; }
.sb-seatnote { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.sb-page .sb-table td { text-align: center; }
.sb-page .sb-table thead th:not(:first-child) { text-align: center; }
.sb-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; counter-reset: sb; }
.sb-steps li { display: flex; flex-direction: column; gap: 6px; counter-increment: sb; }
.sb-steps li::before { content: counter(sb); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sb-steps h3 { margin: 0; font-size: 17px; }
.sb-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.sb-contact { background: var(--pk-green); color: #fff; border-color: transparent; }
.sb-contact h2 { margin-top: 0; }
.sb-contact p { color: rgba(255, 255, 255, .9); }
.sb-contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-contact .btn { min-height: 46px; color: #fff; background: transparent; border-color: rgba(255, 255, 255, .6); font-weight: 700; }
.sb-contact .btn.primary { background: #fff; color: #17201B; border-color: #fff; }
.sb-page .arc-hero-in .pro-badge, .sb-sample .pro-badge { width: fit-content; align-self: flex-start; display: inline-flex; }
.pro-sheet .pro-badge, .pro-teaser .pro-badge { align-self: flex-start; width: fit-content; }

/* ——— بطاقة الرأي: الكاتب في الواجهة (public/app.js: opinionCard) ——— */
.wav { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1; object-fit: cover; letter-spacing: .02em; }
.wav.paper { width: auto; min-width: 42px; padding-inline: 8px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; }
.wav.paper.ur { font-family: var(--font-urdu); font-weight: 500; line-height: 2; }
.wav.big { width: 84px; height: 84px; font-size: 28px; border: 3px solid rgba(255, 255, 255, .85); }
img.wav { background: var(--chip); }
.ocard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; flex: 1; }
.ocard-kind { font-size: 12px; font-weight: 700; color: var(--pk-green); }
.ocard .ncard-title-text { min-height: 0; }
.ocard-q.ar .ncard-title-text::before { content: '«'; color: var(--count-edge); margin-inline-end: 2px; }
.ocard-q.ar .ncard-title-text::after { content: '»'; color: var(--count-edge); margin-inline-start: 2px; }
.ocard .ncard-pending { align-self: flex-start; font-size: 12px; }
.ocard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.ocard-who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; line-height: 1.5; }
.ocard-name { position: relative; z-index: 1; font-size: 14px; font-weight: 700; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ocard-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.ocard-name:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; border-radius: 4px; }
.ocard-line { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-pills { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.ocard-pill { flex: none; font-size: 11px; font-weight: 600; line-height: 1.6; padding: 1px 8px; border-radius: 999px; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ocard-pill-src { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.writer-link { text-decoration: none; }
.writer-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ——— صفحات «كتاب الرأي» ——— */
.wr-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; }
.wr-hero > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
/* مقالات الكاتب: أدوات (بحث وموضوعات وشهور)، ثم شبكة بطاقات صغيرة بمجموعات الشهور */
.wr-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wr-q { font: inherit; font-size: 14px; width: 100%; max-width: 420px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); }
.wr-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.wr-chips, .wr-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-chip { font: inherit; font-size: 12.5px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.wr-chip b, .wr-jump b { font-weight: 700; color: var(--muted); margin-inline-start: 2px; }
.wr-chip:hover, .wr-jump a:hover { border-color: var(--accent); }
.wr-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wr-chip[aria-pressed="true"] b { color: inherit; opacity: .8; }
.wr-jump a { font-size: 12.5px; color: var(--accent); text-decoration: none; padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid transparent; }
.wr-month { scroll-margin-top: 90px; }
.wr-month + .wr-month { margin-top: 18px; }
.wr-month-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 6px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.wr-month-h small { font-size: 12px; font-weight: 600; color: var(--muted); }
.wr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wr-ac[hidden], .wr-month[hidden] { display: none; }
.wr-ac a { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; transition: border-color .15s, background .15s; }
.wr-ac a:hover { border-color: var(--accent); background: var(--accent-soft); }
.wr-ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.wr-ac-topic { font-weight: 700; color: var(--tp, var(--muted)); white-space: nowrap; }
.wr-ac-title { font-size: 14.5px; font-weight: 600; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wr-ac-src { margin-top: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wr-none { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .wr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .wr-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wr-q { max-width: none; }
  .wr-ac a { padding: 8px 11px; gap: 3px; border-radius: 10px; }
  .wr-ac-title { font-size: 14px; }
  .wr-chips, .wr-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .wr-chips::-webkit-scrollbar, .wr-jump::-webkit-scrollbar { display: none; }
  .wr-chip, .wr-jump a { flex: none; white-space: nowrap; }
}
.arc-hero .wr-orig { font-size: 14px; color: rgba(255, 255, 255, .72); unicode-bidi: plaintext; text-align: right; }
.wr-find { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.wr-find input { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.wr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.wr-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; min-width: 0; }
.wr-card:hover { border-color: color-mix(in oklab, var(--pk-green) 55%, var(--line)); }
.wr-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wr-text b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-n { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }


/* الشريط العلوي على الجوال: أزرار الحساب بصيغة قصيرة («اشترك» و«دخول») فلا يتجاوز الشريط عرض الشاشة */
.topbar .short { display: none; }
@media (max-width: 520px) {
  .topbar .long { display: none; }
  .topbar .short { display: inline; }
  .topbar-inner { gap: 8px; padding: 0 10px; }
  .topbar-end, .topbar .account { gap: 6px; }
  .acct-cta, .acct-btn, .topbar-admin { padding: 4px 10px; font-size: 12px; }
}

/* لوحة الخبر لمقال الرأي: الكاتب مكان الصورة */
.story-writer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--chip); }
.story-writer .wav { width: 48px; height: 48px; }
@media (prefers-color-scheme: dark) { .ocard-kind { color: var(--brand-light); } }

/* ——— الإعلام الرسمي: شارة «رسمي» (public/app.js: officialPill) ——— */
.off-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 1px 9px; border-radius: 999px; white-space: nowrap; background: #E3EFE7; color: #0B5D33; border: 1px solid #B9D6C3; }
.off-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.off-pill.statement { background: #F6EFDF; color: #6E4E14; border-color: #D8C08A; }
@media (prefers-color-scheme: dark) {
  .off-pill { background: #1C3127; color: #A6D9BB; border-color: #2F5440; }
  .off-pill.statement { background: #2B2516; color: #E5CB93; border-color: #6B5A33; }
}

/* ═══ ألوان الشارات (٢٠٢٦-١٠-٢٠) ═══
   عشرة ألوان هادئة متمايزة للمصادر (tone-0…9، اللون ثابت لكل اسم)، ولكل موضوع لونه في شارته فوق الصورة،
   وأشكال مختلفة لبقية الشارات: الوقت نص هادئ بلا خلفية، وعدد المصادر إطار ذهبي، و«رسمي» أخضر الموقع.
   الألوان كلها متوسطة التشبع، متقاربة الإضاءة، ومنسجمة مع الأخضر والذهبي. */
:root {
  --t0-bg: #E2F1E8; --t0-fg: #17603C;   /* زمردي */
  --t1-bg: #E3ECF7; --t1-fg: #23507E;   /* أزرق فولاذي */
  --t2-bg: #FAEFD7; --t2-fg: #7A5410;   /* مغرة */
  --t3-bg: #DCF0EF; --t3-fg: #135F5C;   /* فيروزي */
  --t4-bg: #F0E5F3; --t4-fg: #69397A;   /* برقوقي */
  --t5-bg: #FBE7E0; --t5-fg: #8A3A24;   /* طيني */
  --t6-bg: #E7E8F8; --t6-fg: #3A3F8E;   /* نيلي */
  --t7-bg: #EDF1DA; --t7-fg: #526018;   /* زيتوني */
  --t8-bg: #F9E5EC; --t8-fg: #8A2E4F;   /* وردي داكن */
  --t9-bg: #E1EDF2; --t9-fg: #2C5567;   /* أردوازي */
}
@media (prefers-color-scheme: dark) {
  :root {
    --t0-bg: #193427; --t0-fg: #A3DABA;
    --t1-bg: #1A2A3D; --t1-fg: #A8C6E8;
    --t2-bg: #35291A; --t2-fg: #E8CC90;
    --t3-bg: #163334; --t3-fg: #95D4D2;
    --t4-bg: #2C2235; --t4-fg: #D2B7E0;
    --t5-bg: #38221B; --t5-fg: #EDB3A1;
    --t6-bg: #222439; --t6-fg: #B9BDF0;
    --t7-bg: #272D18; --t7-fg: #C9D69A;
    --t8-bg: #37202A; --t8-fg: #EDB0C5;
    --t9-bg: #1A2C33; --t9-fg: #A2C8D8;
  }
}
.tone-0, .tone-1, .tone-2, .tone-3, .tone-4, .tone-5, .tone-6, .tone-7, .tone-8, .tone-9 { border: 1px solid color-mix(in oklab, currentColor 20%, transparent); }
.tone-6 { background: var(--t6-bg); color: var(--t6-fg); }
.tone-7 { background: var(--t7-bg); color: var(--t7-fg); }
.tone-8 { background: var(--t8-bg); color: var(--t8-fg); }
.tone-9 { background: var(--t9-bg); color: var(--t9-fg); }

/* الوقت: نص هادئ بنقطة، بلا خلفية، فلا يزاحم لون المصدر */
.meta-pills .time-pill { background: transparent; color: var(--muted); padding-inline: 2px; font-weight: 500; }
.meta-pills .time-pill::before { background: color-mix(in oklab, var(--muted) 70%, transparent); }
/* عدد المصادر: إطار ذهبي على خلفية فاتحة */
.cnt-pill { background: color-mix(in oklab, var(--count-edge) 12%, var(--surface)); color: color-mix(in oklab, var(--count-edge) 55%, #3A2A08); border: 1px solid color-mix(in oklab, var(--count-edge) 55%, transparent); }
@media (prefers-color-scheme: dark) { .cnt-pill { background: color-mix(in oklab, var(--count-edge) 14%, var(--surface)); color: #E5CB93; } }
/* «رسمي»: أخضر الموقع ممتلئا، و«بيان رسمي» ذهبي ممتلئ */
.off-pill { background: var(--pk-green); color: #F4EBD0; border-color: transparent; }
.off-pill.statement { background: #A9822F; color: #FFF8E8; border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .off-pill { background: color-mix(in oklab, var(--pk-green) 70%, #0E1512); color: #CDEBD9; }
  .off-pill.statement { background: #6B5A33; color: #F6E7C2; }
}

/* الموضوع فوق الصورة: لون مشبع داكن لكل موضوع، بنص فاتح وإطار رفيع، يقرأ فوق أي صورة */
.ncard-tag[class*="tp-"] { color: #fff; border-color: rgba(255, 255, 255, .28); }
.ncard-tag.tp-politics { background: rgba(11, 93, 51, .92); }
.ncard-tag.tp-economy { background: rgba(138, 100, 20, .92); }
.ncard-tag.tp-security { background: rgba(38, 64, 92, .92); }
.ncard-tag.tp-kashmir { background: rgba(19, 102, 99, .92); }
.ncard-tag.tp-courts { background: rgba(91, 61, 122, .92); }
.ncard-tag.tp-crime { background: rgba(138, 58, 36, .92); }
.ncard-tag.tp-society { background: rgba(58, 63, 142, .92); }
.ncard-tag.tp-education { background: rgba(35, 90, 140, .92); }
.ncard-tag.tp-health { background: rgba(22, 120, 92, .92); }
.ncard-tag.tp-environment { background: rgba(78, 107, 30, .92); }
.ncard-tag.tp-sports { background: rgba(160, 82, 45, .92); }
.ncard-tag.tp-tech { background: rgba(44, 85, 103, .92); }
.ncard-tag.tp-culture { background: rgba(138, 46, 79, .92); }
.ncard-tag.tp-travel { background: rgba(107, 90, 30, .92); }
.ncard-tag.tp-power { background: rgba(168, 97, 12, .92); }
.ncard-tag.tp-development { background: rgba(109, 82, 53, .92); }
.ncard-tag.tp-diplomacy { background: rgba(42, 74, 128, .92); }
.ncard-tag.tp-family { background: rgba(154, 63, 99, .92); }
.ncard-tag.tp-agriculture { background: rgba(92, 122, 18, .92); }
.ncard-tag.tp-religion { background: rgba(46, 107, 74, .92); }
.ncard-tag.tp-world { background: rgba(54, 71, 79, .92); }
.ncard-tag.tp-misc { background: rgba(84, 101, 92, .92); }

/* الموضوع نصا (سطر الموجز وقوائم الأرشيف): لون الموضوع نفسه */
.tpk-politics { --tp: #0B5D33; } .tpk-economy { --tp: #8A6414; } .tpk-security { --tp: #26405C; } .tpk-kashmir { --tp: #136663; }
.tpk-courts { --tp: #5B3D7A; } .tpk-crime { --tp: #8A3A24; } .tpk-society { --tp: #3A3F8E; } .tpk-education { --tp: #235A8C; }
.tpk-health { --tp: #16785C; } .tpk-environment { --tp: #4E6B1E; } .tpk-sports { --tp: #A0522D; } .tpk-tech { --tp: #2C5567; }
.tpk-culture { --tp: #8A2E4F; } .tpk-travel { --tp: #6B5A1E; } .tpk-world { --tp: #36474F; } .tpk-misc { --tp: #54655C; }
.tpk-power { --tp: #A8610C; } .tpk-development { --tp: #6D5235; } .tpk-diplomacy { --tp: #2A4A80; } .tpk-family { --tp: #9A3F63; }
.tpk-agriculture { --tp: #5C7A12; } .tpk-religion { --tp: #2E6B4A; }
.trow-kicker[class*="tpk-"], .arc-kicker[class*="tpk-"] { color: var(--tp); }
@media (prefers-color-scheme: dark) {
  .trow-kicker[class*="tpk-"], .arc-kicker[class*="tpk-"] { color: color-mix(in oklab, var(--tp) 45%, white); }
}

/* ——— التقرير الإعلامي في نافذة الخبر (public/app.js: renderReport) ——— */
.rep { display: flex; flex-direction: column; gap: 4px; }
.rep-head { padding-bottom: 10px; border-bottom: 3px solid var(--count-edge); }
.rep-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rep-kicker b { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.rep-no { font-size: 11.5px; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
.rep-title { margin: 6px 0 0; font-family: var(--font-head); font-size: 21px; line-height: 1.6; text-wrap: balance; }
.rep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.rep-stat { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; background: color-mix(in oklab, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line)); }
.rep-stat b { font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rep-stat span { font-size: 11.5px; color: var(--muted); }
.rep-sec { margin-top: 14px; }
.rep-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; font-size: 15.5px; color: var(--accent); border-bottom: 1px solid var(--line); }
.rep-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--pk-green); color: #fff; font-size: 12.5px; }
.rep-lead { margin: 0; padding: 10px 14px; line-height: 1.95; border-radius: 6px; background: color-mix(in oklab, var(--count-edge) 12%, var(--surface)); border-inline-start: 4px solid var(--count-edge); }
.rep-facts, .rep-sources { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 7px; line-height: 1.85; }
.rep-facts li::marker, .rep-sources li::marker { color: var(--accent); font-weight: 700; }
.rep-refs { display: inline-flex; gap: 3px; margin-inline-start: 6px; vertical-align: 2px; white-space: nowrap; }
/* إحالة الواقعة إلى مصدرها: رقم المصدر في دائرة ذهبية صغيرة، والضغط يذهب إليه في قائمة المصادر */
.rep-refs a { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1;
  background: color-mix(in oklab, var(--count-edge) 18%, var(--surface)); color: color-mix(in oklab, var(--count-edge) 60%, #3A2A08); border: 1px solid color-mix(in oklab, var(--count-edge) 50%, transparent); text-decoration: none; }
.rep-refs a:hover { background: var(--count-edge); color: #fff; }
@media (prefers-color-scheme: dark) { .rep-refs a { color: #E5CB93; } }
.rep-facts, .rep-sources { list-style: arabic-indic; }
.rep-table-wrap { overflow-x: auto; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-table th { text-align: start; padding: 7px 10px; font-size: 12.5px; background: var(--pk-green); color: #fff; }
.rep-table th:first-child { border-start-start-radius: 6px; } .rep-table th:last-child { border-start-end-radius: 6px; }
.rep-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
.rep-table td:first-child { width: 30%; }
.rep-table tr:nth-child(even) td { background: color-mix(in oklab, var(--accent) 4%, var(--surface)); }
.rep-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.85; }
.rep-list li::marker { color: var(--count-edge); }
.rep-muted { color: var(--muted); font-size: 13.5px; }
.rep-sources { font-size: 13.5px; }
.rep-sources li { border-radius: 6px; padding: 2px 4px; }
.rep-sources li.flash { animation: repflash 1.6s ease; }
@keyframes repflash { 0%, 40% { background: color-mix(in oklab, var(--count-edge) 25%, transparent); } 100% { background: transparent; } }
.rep-src-link { font-size: 12px; white-space: nowrap; }
.rep-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rep-tools .btn { text-decoration: none; display: inline-flex; align-items: center; }
.rep-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.rep-saved a { color: var(--accent); }
.rep-refresh { font-size: 12.5px; min-height: 30px; padding: 2px 12px; border-color: var(--count-edge); }
.sr-copy { position: fixed; inset-inline-start: -9999px; top: 0; opacity: 0; }

/* ——— لوحة التحكم: الدليل التحريري (public/admin/style.js) ——— */
.st-box { display: flex; flex-direction: column; gap: 10px; }
.st-savebar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; background: var(--bg); }
.st-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.st-q.pending { border-color: var(--count-edge); background: color-mix(in oklab, var(--count-edge) 7%, var(--surface)); }
.st-q legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px; }
.st-opt { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.st-opt input { margin-top: 6px; }
.st-opt span { display: flex; flex-direction: column; }
.st-rules { width: 100%; font: inherit; line-height: 1.9; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.st-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-ortho-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .st-ortho-grid { grid-template-columns: 1fr; } }
.st-lbl { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; }
.st-scope { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tog { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.st-tog span { display: flex; flex-direction: column; gap: 2px; }
.st-tog small { font-size: 12px; }
.st-probe { width: 100%; font: inherit; line-height: 1.8; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.st-probe-out { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--chip, rgba(0,0,0,.04)); line-height: 1.8; min-height: 2.6em; }
.st-apply { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-apply .muted { flex: 1 1 260px; }
.st-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.st-row.off { opacity: .55; }
.st-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-line input:not([type]) { flex: 1 1 200px; min-width: 0; }
.st-line .st-note { flex: 2 1 260px; }
.st-arrow { color: var(--muted); }
.st-use { flex: 1 1 200px; }
.st-rm { font-size: 12px; min-height: 30px; padding: 2px 10px; }
.st-prompt { white-space: pre-wrap; direction: rtl; font-family: inherit; font-size: 13px; line-height: 1.9; margin: 0; padding: 12px; background: var(--chip); border-radius: 8px; }

/* ——— صفحة الخبر للصحفي (src/archive-pages.js: storyPage) — على تصميم النموذج المعتمد ——— */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { --sp-gold: #A9822F; --sp-gold-soft: #F6EFDF; --sp-gold-edge: #D8C08A; --sp-warn: #8E2A1E; --sp-warn-soft: #FBE7E3; --sp-green-soft: #E3EFE7; --sp-blue: #23507E; --sp-blue-soft: #E3ECF7;
  display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 980px; margin-inline: auto; }
@media (prefers-color-scheme: dark) { .sp { --sp-gold: #D9BE7E; --sp-gold-soft: #2B2516; --sp-gold-edge: #6B5A33; --sp-warn: #F2A99D; --sp-warn-soft: #3B1C17; --sp-green-soft: #1C3127; --sp-blue: #A8C6E8; --sp-blue-soft: #1A2A3D; } }
.sp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-head h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.sp-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.sp-sub { margin: 8px 0 0; font-size: 14px; color: var(--fg); }
.sp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-row .btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.sp-small { font-size: 12.5px; }
.sp-photo { margin: 0; }
.sp-photo img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 10px; background: var(--chip); max-width: 100%; }
.sp-credit { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; background: var(--chip); border-radius: 10px; padding: 10px 14px; }
.sp-credit dt { color: var(--muted); font-weight: 600; }
.sp-credit dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sp-prov { background: transparent; padding: 0; gap: 8px 16px; }
.sp-prov dt { padding-top: 1px; }
.sp-rights { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sp-warn); background: var(--sp-warn-soft); border-radius: 10px; padding: 8px 12px; }
.sp-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sp-thumb { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-width: 0; display: flex; flex-direction: column; }
.sp-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--chip); }
.sp-thumb span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; padding: 4px 8px 0; font-weight: 600; }
.sp-thumb small { display: block; font-size: 11px; padding: 0 8px 6px; color: var(--muted); }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tabs button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.sp-tabs button[aria-selected="true"] { background: var(--pk-green); border-color: var(--pk-green); color: #fff; }
.sp-tabs button:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; }
.sp-cite-pane { display: flex; flex-direction: column; gap: 8px; }
.sp-cite { margin: 0; background: var(--chip); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; user-select: all; }
.sp-cite.ltr { text-align: left; font-family: Georgia, 'Times New Roman', serif; }
.sp-diff { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.sp-diff .old { background: var(--sp-warn-soft); text-decoration: line-through; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.sp-diff .new { background: var(--sp-green-soft); padding: 6px 10px; border-radius: 8px; }
.sp-meter { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.sp-meter div { background: var(--chip); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.sp-meter b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--accent); }
.sp-meter span { font-size: 12px; color: var(--muted); }
.sp-verdict { margin: 0; display: flex; gap: 8px; align-items: flex-start; background: var(--sp-green-soft); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.sp-verdict i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }
.sp-verdict.single { background: var(--sp-gold-soft); } .sp-verdict.single i { background: var(--sp-gold); }
.sp-race { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.sp-race li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 4px 8px; border-radius: 8px; }
.sp-race li.first { background: var(--sp-gold-soft); font-weight: 600; }
.sp-race time { font-variant-numeric: tabular-nums; color: var(--muted); }
.sp-race span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sp-race small { color: var(--muted); font-size: 12.5px; }
.sp-stmt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sp-stmt a { color: var(--sp-blue); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-ent { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sp-blue-soft); color: var(--sp-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.sp-ent small { font-weight: 500; opacity: .8; }
.sp-quote { margin: 0; border-inline-start: 4px solid var(--sp-gold); padding: 6px 12px; background: var(--sp-gold-soft); border-radius: 6px; font-size: 14px; line-height: 1.85; }
.sp-quote .src { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sp-locked { margin: 0; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--sp-gold-edge); background: var(--sp-gold-soft); }
.sp, .sp-card > * { min-width: 0; }
/* «كيف عنونت كل وسيلة الخبر»: جدول مرجعي بثلاثة أعمدة ورأس يسميها. عمود إسناد ثابت على اليمين (كبسولة الوسيلة
   وتحتها الوقت) تبدأ كل كبسولاته من الحافة نفسها أيا كانت لغة الاسم، ثم الترجمة، ثم الأصل بخط لغته.
   كل قطاع مجموعة برأس وعدد وسائله. على الهاتف تصعد الكبسولتان سطرا فوق العنوان، والأصل تحت الترجمة */
.sp-cov { display: flex; flex-direction: column; gap: 22px; }
.sp-cov-cols { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 18px; padding: 0 4px 6px; margin-bottom: -10px; border-bottom: 2px solid var(--accent); font-size: 12px; font-weight: 700; color: var(--muted); }
.sp-cov-grp { display: flex; flex-direction: column; }
.sp-cov-h { margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--chip); font-size: 14px; }
.sp-cov-h b { color: var(--accent); }
.sp-cov-h small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-inline-start: auto; } /* العدد دائما في نهاية السطر */
.no-flexgap .sp-cov-h > small { margin-right: auto; }
.sp-cov-cols .sp-cov-par > span + span { padding-inline-start: 21px; }
.sp-cov-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 18px; padding: 14px 4px; }
.sp-cov-row + .sp-cov-row { border-top: 1px solid var(--line); }
.sp-cov-row.self { background: var(--sp-gold-soft); border-radius: 10px; padding-inline: 12px; }
.sp-cov-who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-top: 4px; }
.sp-cov-self { font-size: 11.5px; font-weight: 700; color: var(--sp-gold-edge); }
/* شارتا الوسيلة والوقت بعرض العمود كله ومتساويتان، مهما قصر ما فيهما */
.sp-cov-who > .src-pill, .sp-cov-who > .time-pill { align-self: stretch; justify-content: center; text-align: center; }
.sp-cov-par { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sp-cov-par.one { grid-template-columns: minmax(0, 1fr); }
.sp-cov-par > * { min-width: 0; }
.sp-cov-ar { color: var(--fg); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.8; text-wrap: pretty; overflow-wrap: anywhere; }
.sp-cov-ar:hover { color: var(--accent); text-decoration: underline; }
.sp-cov-o { margin: 0; color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 20px; overflow-wrap: anywhere; }
.sp-cov-o:lang(en) { font-family: var(--font-en); font-size: 14.5px; line-height: 1.65; text-align: left; }
.sp-cov-o:lang(ur) { font-family: var(--font-urdu); font-size: 14.5px; line-height: 2.2; }
@media (max-width: 640px) {
  .sp-cov-cols { display: none; }
  .sp-cov-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-cov-who { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 0; }
  .sp-cov-who > .src-pill, .sp-cov-who > .time-pill { align-self: auto; }
  .sp-cov-par { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sp-cov-o { border-inline-start: 0; padding-inline-start: 0; border-top: 1px dashed var(--line); padding-top: 8px; }
}
.sp-bg { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sp-bg a { color: var(--fg); text-decoration: none; } .sp-bg a:hover { color: var(--accent); }
.sp-tools { border: 2px solid var(--sp-gold-edge); background: color-mix(in oklab, var(--sp-gold-soft) 50%, var(--surface)); }
.sp-file label { font-weight: 700; font-size: 14px; }
.sp-file select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); max-width: 100%; }
.sp-pending { text-align: center; }
.sp .off-pill { font-size: 11px; }
@media (max-width: 560px) { .sp-race li { grid-template-columns: 84px 1fr; } .sp-race li small { grid-column: 2; } .sp-credit { grid-template-columns: 1fr; } }
.acct-export { margin-top: 10px; text-decoration: none; display: inline-flex; font-size: 13px; }

/* ——— لوحة «مشاركة» (share.js): وسط الشاشة في الحاسوب، وورقة من الأسفل في الجوال ——— */
.shr { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0,0,0,.25); font-family: var(--font-ui); }
.shr::backdrop { background: rgba(10,20,15,.45); }
/* نافذة المشاركة مفتوحة: الصفحة تحتها ثابتة، وتمرير النافذة لا ينتقل إليها عند أعلاها وأسفلها (share.js: shr-on) */
html.shr-on, html.shr-on body { overflow: hidden; }
.shr { overscroll-behavior: contain; }
.shr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.shr-head h2 { margin: 0; font: 700 17px/1.4 var(--font-head); }
.shr-x { appearance: none; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.shr-x:hover { background: var(--chip); }
.shr-hold { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px max(20px, env(safe-area-inset-bottom, 0px)); background: #000; }
.shr-hold img { max-width: 100%; max-height: calc(100% - 130px); object-fit: contain; border-radius: 6px; -webkit-touch-callout: default; user-select: auto; }
.shr-hold-tip { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; }
.shr-hold .shr-x { position: absolute; top: 10px; inset-inline-start: 10px; width: 48px; height: 48px; font-size: 30px; color: #fff; }
.shr-hold-done { width: 100%; max-width: 360px; min-height: 48px; font-size: 16px; background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.shr-pv { display: flex; gap: 12px; align-items: center; margin: 4px 18px 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.shr-thumb { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.shr-pt { min-width: 0; flex: 1; }
.shr-pt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 14px/1.6 var(--font-head); }
.shr-link { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.shr-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-link button { appearance: none; font: inherit; font-weight: 600; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 8px; padding: 2px 10px; cursor: pointer; flex: none; }
.shr-big { display: block; width: calc(100% - 36px); margin: 0 18px 12px; min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--font-ui); cursor: pointer; }
.shr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 12px; }
.shr-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; }
.shr-opt:hover, .shr-opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.shr-grid.secondary .shr-opt { padding: 8px 4px; font-size: 12px; }
.shr-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 15px/1 system-ui, sans-serif; }
.shr-grid.secondary .shr-ico { width: 30px; height: 30px; font-size: 13px; }
.wa-c { background: #25D366; } .tg-c { background: #229ED9; } .x-c { background: #111; } .fb-c { background: #1877F2; } .li-c { background: #0A66C2; } .em-c { background: #6B7A71; }
.shr-rows { border-top: 1px solid var(--line); padding: 6px 10px 12px; }
.shr-row { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 8px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: 600 14px var(--font-ui); text-align: start; cursor: pointer; }
.shr-row:hover { background: var(--chip); }
.shr-row i { font-style: normal; width: 24px; text-align: center; color: var(--accent); }
.shr-row span { flex: 1; }
.shr-row small { color: var(--muted); font-weight: 500; font-size: 12px; }
.shr-pub { padding: 2px 8px 8px; }
.shr-pub .shr-grid { padding: 0; }
.shr-pub-note { margin: 10px 2px 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: 13.5px; line-height: 1.7; }
.shr-pub-note a { color: var(--accent); font-weight: 700; }
.shr-pub-note[hidden] { display: none; }
.shr-chk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0 3px; }
.shr-pro { color: #8A6D1F !important; }
.shr-card { padding: 4px 8px 8px; }
.shr-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.shr-seg button { appearance: none; font: 600 13px var(--font-ui); border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.shr-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shr-seg button[data-v="wide"] { margin-inline-start: auto; }
.shr-lang { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shr-lang .shr-seg { align-items: center; margin-bottom: 0; }
.shr-lang .shr-dg.first { margin-inline-start: auto; }
.shr-lbl { font: 600 13px var(--font-ui); color: var(--muted); margin-inline-end: 4px; }
.shr-font { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.shr-font[hidden] { display: none; }
.shr-size { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.shr-size input { flex: 1; min-width: 0; accent-color: var(--accent); }
.shr-size output { font: 600 13px var(--font-ui); min-width: 3.2em; text-align: center; }
.shr-size .shr-lbl { flex: 0 0 auto; min-width: 7.5em; }
.shr-font select { flex: 1; min-width: 0; font: 500 14px var(--font-ui); padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
/* تصاميم البطاقة: شبكة لا شريط، فكل ما فعله المدير ظاهر دون سحب جانبي */
.shr-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; padding: 3px; }
.shr-tpl { appearance: none; min-width: 0; padding: 4px; font: 600 12px var(--font-ui); line-height: 1.4; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.shr-tpl canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
.shr-tpl span { display: block; margin-top: 4px; }
.shr-tpl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.shr-tpl:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.shr-canvas { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.shr-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shr-acts .btn { flex: 1; min-height: 40px; }
.sr-copy { position: fixed; top: -1000px; opacity: 0; }
@media (max-width: 640px), (pointer: coarse) {
  .shr { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .shr-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
  .shr-grid { grid-template-columns: repeat(3, 1fr); }
}
.btn-tool[data-key="share"] svg, .tool[data-key="share"] svg { stroke-width: 1.8; }

/* ——— لوحة التحكم: «الخطوط» (admin/fonts.js) ——— */
.ft-hero { scroll-margin-top: 12px; }
.ft-hero-h { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; }
.ft-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ft-eyebrow.pending { color: var(--warn-fg); background: var(--warn-bg); padding: 2px 10px; border-radius: 999px; }
.box .ft-name { margin: 4px 0 2px; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; overflow-wrap: anywhere; }
.ft-meta { margin: 0; font-size: 13px; }
.ft-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ft-warn { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; background: var(--warn-bg); color: var(--warn-fg); }
.ft-spec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; padding: 18px; background: var(--bg); border-radius: 12px; }
.ft-spec-main { min-width: 0; }
.ft-spec-kicker { display: block; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.box .ft-spec-title { margin: 0 0 8px; font-family: inherit; font-size: clamp(21px, 3vw, 27px); font-weight: 700; line-height: 1.45; }
.ft-spec-text { margin: 0; font-size: 16px; line-height: 1.85; }
.ft-spec-side { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.ft-spec-side small { font-family: var(--font-ui); font-size: 12px; }
.ft-spec-lang { margin: 0 0 4px; font-size: 16px; line-height: 1.7; }
.ft-spec-lang[lang="ur"] { font-size: 18px; line-height: 2.2; }
.ft-wpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 20px; margin-top: 14px; }
.ft-wrow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ft-wrow > b { font-size: 13.5px; }
.ft-where { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.ft-where li { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ft-where b { font-size: 13.5px; }
.ft-where small { font-size: 12px; }
.ft-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.ft-tools input[type="search"] { flex: 1 1 220px; min-height: 40px; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chip { min-height: 40px; padding: 0 14px; font: inherit; font-size: 13.5px; color: var(--fg); background: var(--chip); border: 1px solid transparent; border-radius: 999px; cursor: pointer; }
.ft-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ft-group { margin-top: 16px; }
.box .ft-group h3 { margin: 0 0 8px; font-size: 15px; }
.box .ft-group h3:empty { display: none; }
.ft-hint { margin: -4px 0 8px; font-size: 13px; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.ft-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; font: inherit; color: var(--fg); text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ft-card[hidden] { display: none; }
.ft-card:hover { border-color: var(--accent); }
.ft-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.ft-card-h { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ft-card-h b { font-size: 14px; }
.ft-now { display: none; padding: 1px 8px; font-size: 11.5px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
.ft-card.current .ft-now { display: inline-block; }
.ft-card-s { font-size: 19px; line-height: 1.6; overflow-wrap: anywhere; }
.ft-card-n { font-size: 12.5px; line-height: 1.5; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.ft-tags span { padding: 1px 8px; font-size: 11.5px; color: var(--muted); background: var(--chip); border-radius: 999px; }
.ft-more { margin-top: 16px; }
.ft-more > summary, .ft-upload > summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.ft-more[hidden] { display: none; }
.ft-more .ft-group { margin-top: 6px; }
.ft-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ft-up input[type="text"] { flex: 1 1 200px; min-height: 40px; }
.ft-up select { min-height: 40px; }
.ft-files { list-style: none; margin: 12px 0 0; padding: 0; }
.ft-files li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.ft-file { display: block; font-size: 11.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ft-spec { grid-template-columns: 1fr; padding: 14px; }
  .ft-spec-side { padding-inline-start: 0; padding-top: 12px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .ft-bar .btn { flex: 1 1 auto; }
}

/* «القصة الأوسع تغطية»: قائمة الوسائل التي تناولتها، كل وسيلة برابط تغطيتها (home.js) */
a.ins-top-title { color: inherit; text-decoration: none; }
a.ins-top-title:hover, a.ins-top-title:focus-visible { text-decoration: underline; }
button.ins-top-count { appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
button.ins-top-count:hover, button.ins-top-count[aria-expanded="true"] { background: rgba(255,255,255,.22); }
button.ins-top-count i { font-style: normal; }
.ins-cov { margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ins-cov[hidden] { display: none; }
.ins-cov-h { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.ins-cov-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.ins-cov-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; height: 100%; box-sizing: border-box; }
.ins-cov-list a:hover, .ins-cov-list a:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.ins-cov-list b { font-size: 14px; }
.ins-cov-list small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.ins-cov-list li:first-child a { border-color: var(--accent); }
.ins-cov-off { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
.ins-cov-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
/* زاوية صورة «بطاقة الخبر»: سحب وتقريب و«الصورة كاملة» */
/* البطاقة تمرر باللمس كأي صورة؛ ما يبدأ على صورة الخبر وحده يحركها (share.js: onPhoto) */
.shr-canvas.movable { touch-action: manipulation; }
.shr-canvas.movable.dragging { cursor: grabbing !important; }
.shr-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shr-frame { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: 13px; }
.shr-frame[hidden] { display: none; }
.shr-hint { color: var(--muted); flex-basis: 100%; font-size: 12px; }
.shr-zoom { display: flex; align-items: center; gap: 6px; flex: 1 1 140px; }
.shr-zoom input { flex: 1; accent-color: var(--accent); }
.shr-frame button { appearance: none; font: 600 13px var(--font-ui); border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.shr-frame button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* رأس نافذة المشاركة ثابت: × ظاهر مهما نزل القارئ في البطاقة */
.shr-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }

/* ——— الأقسام وشريط التصفية (المقترح أ): مجموعتان معنونتان، والموضوع سطرا، والمصدر والعرض في قائمتين ——— */
.svc-nav { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 28px; border-bottom: 1px solid var(--line); }
.svc-group { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.svc-group-label { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-inline: 16px; letter-spacing: .01em; }
.svc-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.svc-row::-webkit-scrollbar { display: none; }
.svc-nav .tab { white-space: nowrap; }
.svc-nav .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 8px 8px 0 0; }

.fbar { display: flex; flex-direction: column; gap: 10px; }
.fbar[hidden] { display: none; }
.fbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.fbar-lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fbar-gap { flex: 1; }
.fbar-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 300px; min-width: 0; padding: 3px 2px;
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.fbar-scroll::-webkit-scrollbar { display: none; }
.fbar-scroll .chip { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fbar .chip[aria-pressed="true"]::before { content: '✓'; font-size: 12px; }
.chip.empty { color: var(--muted); border-style: dashed; }
.fcount { font-size: 11.5px; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums; }
.fbar .freshness { margin: 0; }

.dd { position: relative; }
.dd-btn { appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 10px; padding: 0 12px; min-height: 38px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dd-btn::after { content: '▾'; font-size: 11px; color: var(--muted); }
.dd-btn[aria-expanded="true"], .dd-btn.on { border-color: var(--accent); }
.dd-btn.on { background: var(--accent-soft); }
.dd-n { font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.dd-n:empty { display: none; }
.dd-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 40; width: 270px; max-width: calc(100vw - 32px); max-height: min(420px, 70vh); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.dd-menu.end { inset-inline-start: auto; inset-inline-end: 0; }
.dd-menu[hidden] { display: none; }
.dd-menu input[type="search"] { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-height: 38px; background: var(--bg); color: var(--fg); margin-bottom: 4px; }
.dd-list { display: flex; flex-direction: column; gap: 2px; }
.dd-h { margin: 6px 8px 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.dd-item, .dd-opts button { appearance: none; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: start; padding: 0 10px; min-height: 40px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dd-item[hidden] { display: none; }
.dd-item:hover, .dd-opts button:hover, .dd-item:focus-visible, .dd-opts button:focus-visible { background: var(--chip); }
.dd-item .fcount { margin-inline-start: auto; }
.dd-item[aria-pressed="true"], .dd-opts button[aria-pressed="true"] { font-weight: 700; color: var(--accent); }
.dd-item::before, .dd-opts button::before { content: ''; width: 14px; flex: none; font-size: 13px; }
.dd-item[aria-pressed="true"]::before, .dd-opts button[aria-pressed="true"]::before { content: '✓'; }
.dd-opts { display: flex; flex-direction: column; gap: 2px; }
.dd-opts button { flex-wrap: wrap; padding-block: 6px; }
.dd-opts button small { flex-basis: 100%; padding-inline-start: 22px; font-size: 12px; font-weight: 500; color: var(--muted); }

.fbar-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fbar-active[hidden] { display: none; }
.fpill { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--fg); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 13px; font-weight: 600; }
.fpill button { appearance: none; border: 0; background: var(--surface); color: var(--muted); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.fpill button:hover { color: var(--fg); }
.fclear { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 32px; }
@media (max-width: 640px) {
  .svc-nav { gap: 0 12px; }
  .svc-group { width: 100%; }
  .svc-group-label { padding-inline: 10px; padding-top: 6px; }
  .svc-nav .tab { padding: 8px 12px 10px; font-size: 15px; }
  .fbar-row:first-child { flex-wrap: nowrap; }
  .fbar-row:first-child .fbar-lbl { display: none; }
  .fbar .freshness { flex-basis: 100%; }
  .dd-menu.end { inset-inline-start: auto; inset-inline-end: 0; }
  .chip, .dd-btn { min-height: 40px; }
}
.fmini { position: fixed; inset-inline: 0; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in oklab, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.08); backdrop-filter: blur(6px); }
.fmini[hidden] { display: none; }
.fmini-t { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmini-t small { font-weight: 500; color: var(--muted); font-size: 13px; }

/* ——— الشكل «ج»: بوابتان ثم أقسام فرعية، وشبكة موضوعات بأيقونات (يختاره المدير من «الإعدادات») ——— */
.nav-c .svc-nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
.svc-gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.svc-gate { appearance: none; text-align: start; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 14px; padding: 12px 16px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t n" "s n"; align-items: center; gap: 2px 14px; font: inherit; }
.svc-gate b { grid-area: t; font-family: var(--font-head); font-size: 19px; line-height: 1.5; }
.svc-gate small { grid-area: s; font-size: 12.5px; color: var(--muted); }
/* عدد الأخبار في خانة مستقلة في طرف البطاقة، بخط فاصل */
.gate-num { grid-area: n; display: flex; flex-direction: column; align-items: center; min-width: 78px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); line-height: 1.25; }
.gate-num strong { font-size: 24px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.gate-num em { font-style: normal; font-size: 12px; color: var(--muted); }
.svc-gate[aria-pressed="true"] .gate-num { border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.svc-gate:hover { border-color: var(--accent); }
.svc-gate[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.svc-gate:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-c .svc-group-label { display: none; }
.nav-c .fbar-row:first-child { display: block; }
.nav-c .fbar-row:first-child > .fbar-lbl { display: block; margin-bottom: 8px; }
/* صف التصفية قبله شريط التصفيات المحفوظة، فليس الأول دائما؛ وفي صف مرن تنكمش الشبكة إلى عمود واحد */
.nav-c:not(.rail-on) .fbar-row.has-tgrid { display: block; }
.nav-c:not(.rail-on) .fbar-row.has-tgrid > .fbar-lbl { display: block; margin-bottom: 8px; }
/* عدد الأعمدة يضعه app.js من عرض الشبكة (topicCols)؛ هذا للحظة قبل التشغيل */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
/* ارتفاع واحد لكل المربعات، والتسمية سطر واحد لا ينكسر */
.ttile { position: relative; appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; height: 84px; min-width: 0; }
.ttile span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.ttile svg { flex: none; }
.ttile[hidden] { display: none; }
.ttile svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ttile small { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.ttile:hover { border-color: var(--accent); }
.ttile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ttile[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 5px; inset-inline-start: 7px; font-size: 11px; font-weight: 700; line-height: 1; color: var(--accent); }
.ttile.empty { opacity: .55; border-style: dashed; }
.ttile svg.dots { stroke-width: 3.2; }
.ttile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .svc-gates { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* الجوال: العدد في سطر العنوان، والوصف بعرض البطاقة تحته */
  .svc-gate { padding: 10px 12px; grid-template-areas: "t n" "s s"; align-items: start; gap: 2px 8px; }
  .svc-gate b { font-size: 16px; }
  .svc-gate small { font-size: 11.5px; line-height: 1.6; }
  .gate-num { min-width: 0; padding: 0; border: 0; align-items: flex-end; }
  .gate-num strong { font-size: 17px; line-height: 1.5; }
  .gate-num em { display: none; }
  .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ttile { height: 76px; padding-inline: 2px; font-size: 11.5px; }
}
/* الجوال الضيق: العنوان لا يتسع بجانب العدد («الباكستانية» كلمة واحدة)، فالعدد في سطر وحده تحته */
@media (max-width: 400px) {
  .svc-gate { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "n" "s"; }
  .gate-num { align-items: flex-start; }
}
/* معاينة شكلي الأقسام في «الإعدادات» */
.nav-picker { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.np { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 10px; background: var(--bg); min-height: 128px; }
.np i { display: block; background: var(--line); border-radius: 999px; height: 8px; }
.np i.on { background: var(--pk-green); }
.np-tabs { display: flex; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.np-tabs i { width: 30px; }
.np-chips { display: flex; gap: 5px; overflow: hidden; }
.np-chips i { width: 26px; height: 14px; flex: none; }
.np-row { display: flex; gap: 6px; }
.np-row i.dd { width: 60px; height: 14px; border-radius: 6px; }
.np-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.np-gates i { height: 26px; border-radius: 8px; }
.np-gates i.on { background: color-mix(in oklab, var(--pk-green) 25%, var(--surface)); box-shadow: inset 0 -3px 0 var(--pk-green); }
.np-frame { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.np-foot { display: block; height: 12px; margin: 2px -8px -8px; border-radius: 0 0 9px 9px; background: var(--chip); }

/* ——— الشكل p: لوحة تحكم موحدة. إطار واحد فيه البوابتان مفتاحا من نصفين، ثم الأقسام، ثم الموضوعات رقائق، ثم الأدوات، وفي أسفله «تعرض الآن» ——— */
.cpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 40, 25, .05), 0 6px 20px rgba(11, 40, 25, .05); min-width: 0; position: relative; z-index: 5; }
/* لا يقص ما يخرج من الإطار (قائمة «كل المصادر»)، والزوايا على أول الإطار وآخره */
.nav-p .svc-gates { border-radius: 15px 15px 0 0; overflow: hidden; }
.nav-p .cpanel .svc-nav { border: 0; gap: 0; }
.nav-p .svc-gates { gap: 0; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.nav-p .svc-gate { border: 0; border-radius: 0; padding: 14px 20px; background: transparent; box-shadow: inset 0 -3px 0 transparent; }
.nav-p .svc-gate + .svc-gate { border-inline-start: 1px solid var(--line); }
.nav-p .svc-gate b { font-size: 18px; }
.nav-p .svc-gate:hover { background: var(--bg); }
.nav-p .svc-gate[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.nav-p .svc-gate:focus-visible { outline-offset: -3px; }
.nav-p .gate-num { border: 0; padding: 0; min-width: 0; align-items: flex-end; }
.nav-p .gate-num strong { font-size: 20px; }
/* الأقسام: أزرار ممتلئة بدل التبويبات ذات الخط السفلي */
.nav-p .svc-group { padding: 14px 20px 0; }
.nav-p .svc-row { gap: 8px; padding: 2px; flex-wrap: wrap; overflow: visible; }
.nav-p .svc-nav .tab { min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 15px; color: var(--fg); }
.nav-p .svc-nav .tab:hover { border-color: var(--accent); }
.nav-p .svc-nav .tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-p .svc-nav .tab:focus-visible { border-radius: 999px; outline-offset: 2px; }
.nav-p .cp-body { padding: 12px 20px 14px; }
.nav-p .cp-body .fbar { gap: 12px; }
/* الموضوعات: رقائق بأيقونة وعدد في سطر واحد */
.nav-p #topics .chip.topic { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; border-color: transparent; background: var(--chip); font-size: 14px; padding: 6px 12px; }
.nav-p #topics .chip.topic svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-p #topics .chip.topic svg.dots { stroke-width: 3.2; }
.nav-p #topics .chip.topic[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nav-p #topics .chip.topic[aria-pressed="true"]::before { content: none; }
.nav-p #topics .chip.topic.empty { border: 1px dashed var(--line); background: transparent; }
.nav-p .fbar-row { align-items: flex-start; }
.nav-p .fbar-row > .fbar-lbl { min-width: 4.5em; line-height: 46px; }
.nav-p .fbar-row:first-child, .nav-p .fbar-row.has-tgrid { display: flex; }
.nav-p .fbar-row:first-child > .fbar-lbl { margin-bottom: 0; }
.nav-p .op-search { margin: 12px 0 0; }
.cp-more { display: none; }
/* الموضوعات والمصادر تلتف ولا تمرر، وما لا يتسع في سطره خلف «المزيد» (app.js: fitRows) */
.nav-p #topics { flex-wrap: wrap; overflow: visible; }
.cp-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 300px; min-width: 0; padding: 3px 2px; }
.nav-p .cp-src .chip.topic { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; border-color: transparent; background: var(--chip); font-size: 14px; padding: 6px 12px; }
.nav-p .cp-src .chip.topic[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nav-p .cp-src .chip.topic[aria-pressed="true"]::before { content: none; }
.nav-p .chip.cp-moreb { background: transparent; border: 1px dashed var(--line); color: var(--accent); }
.nav-p .chip.cp-moreb::after { content: '▾'; font-size: 11px; }
.nav-p .chip.cp-moreb[aria-expanded="true"]::after { content: '▴'; }
/* العرض: مفتاحان معنونان ظاهران */
.cp-viewrow { gap: 8px 14px; }
.cp-seg { align-items: center; padding: 3px; }
.cp-seg-l { font-size: 12px; font-weight: 600; color: var(--muted); padding-inline: 8px 4px; }
.cp-seg button { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
/* «تعرض الآن»: الاختيار وعدده، وما يزال منه، وزمن التحديث */
.cp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 20px; background: var(--chip); border-top: 1px solid var(--line); font-size: 13.5px; border-radius: 0 0 15px 15px; }
.cp-now-l { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cp-crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.cp-crumbs i { font-style: normal; color: var(--muted); }
.cp-total { font-variant-numeric: tabular-nums; font-weight: 600; }
.cp-total:empty { display: none; }
.cp-foot .fbar-active { padding: 0; border: 0; gap: 6px; }
.cp-foot .fbar-active > .fbar-lbl { display: none; }
.cp-foot .freshness { margin: 0; margin-inline-start: auto; }
@media (max-width: 640px) {
  .nav-p .svc-gates { grid-template-columns: 1fr 1fr; }
  .nav-p .svc-gate { padding: 10px 12px; }
  .nav-p .svc-gate b { font-size: 15px; }
  .nav-p .svc-gate small { display: none; }
  .nav-p .svc-group { padding: 10px 12px 0; }
  .nav-p .cp-body { padding: 10px 12px 12px; }
  .nav-p .fbar-row > .fbar-lbl { display: none; }
  .cp-foot { padding: 8px 12px; font-size: 12.5px; }
  .cp-foot .freshness { margin-inline-start: 0; }
  /* المصدر والمقارنة والعرض خلف زر واحد، واللغة ظاهرة */
  .cp-more { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; width: 100%; appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .cp-more::after { content: '▾'; font-size: 11px; color: var(--muted); }
  .cp-more[aria-expanded="true"]::after { content: '▴'; }
  .nav-p .fbar:not(.cp-open) .cp-tools > :not(#oplang) { display: none; }
  .nav-p .fbar:not(.cp-open) .cp-tools #oplang[hidden] { display: none; }
  .nav-p .fbar:not(.cp-open) .cp-viewrow { display: none; }
  .cp-seg { flex-wrap: wrap; }
}
.np-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.np-grid i { height: 22px; border-radius: 6px; }
.np-grid i.on { background: color-mix(in oklab, var(--pk-green) 25%, var(--surface)); }

/* ——— البحث الذي يفهم التصفية (search.js): شارات داخل الخانة واقتراحات ——— */
.sq-box { position: relative; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding-inline: 8px; min-height: 48px; }
.sq-box:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.searchbar .sq-box input { border: 0; padding: 0 8px; min-height: 44px; background: none; flex: 1 1 160px; }
.searchbar .sq-box input:focus-visible { outline: 0; }
.sq-tokens { display: contents; }
.sq-tokens[hidden] { display: none; }
.sq-tok { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--fg); border-radius: 8px; padding: 2px 4px 2px 10px; font-size: 13px; font-weight: 600; }
.sq-tok button { appearance: none; border: 0; background: none; color: var(--muted); font-size: 15px; width: 22px; height: 22px; cursor: pointer; border-radius: 6px; }
.sq-tok button:hover { background: var(--surface); color: var(--fg); }
#sf-cat .sq-tok { padding-block: 5px; }
.sq-sugg { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); padding: 6px; display: flex; flex-direction: column; gap: 2px; color: var(--fg); }
.sq-sugg[hidden] { display: none; }
.sq-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.sq-opt:hover, .sq-opt.on { background: var(--chip); }
.sq-opt small { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.sq-kind { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: var(--chip); color: var(--muted); min-width: 44px; text-align: center; }
.sq-kind.topic { background: var(--accent-soft); color: var(--accent); }
.sq-kind.source { background: color-mix(in oklab, #C9A961 22%, var(--surface)); color: color-mix(in oklab, #8A6D1F 80%, var(--fg)); }
.sq-help { margin: 4px 8px 2px; font-size: 11.5px; color: var(--muted); }


/* ——— «تصفياتي» ——— */
.saved-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.saved-bar[hidden] { display: none; }
.preset-wrap { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.preset { appearance: none; border: 0; background: none; color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.preset.on { background: var(--accent-soft); color: var(--accent); }
.preset-new { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 11px; padding: 0 7px; }
.preset-new[hidden] { display: none; }
.preset-x { appearance: none; border: 0; border-inline-start: 1px solid var(--line); background: none; color: var(--muted); width: 30px; cursor: pointer; font-size: 15px; }
.preset-x:hover { color: var(--fg); background: var(--chip); }
.preset.add { border: 1px dashed var(--accent); border-radius: 12px; color: var(--accent); }
.pro-mark { font-size: 11px; color: #8A6D1F; }

/* ——— «قارن التغطية» ——— */
.cmp-btn[hidden] { display: none; }
.cmp-btn::after { content: none; }
.cmp-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.compare { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.compare[hidden] { display: none; }
.compare-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.compare-head h2 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.compare-head p { margin: 0; flex: 1 1 260px; font-size: 13px; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.compare-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.compare-pick select { flex: 1; min-width: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 40px; padding: 0 10px; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.compare-list li { padding: 8px 10px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.compare-list li > a { color: var(--fg); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.6; }
.compare-list li > a:hover { text-decoration: underline; }
.compare-list small { font-size: 12px; color: var(--muted); }
.compare-list small a { color: var(--accent); }
@media (max-width: 760px) { .compare-cols { grid-template-columns: 1fr; } }

/* ——— العمود الجانبي (≥١١٨٠ بكسل، browse-plus.js) ——— */
.tab-n { display: none; }
.rail-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.rail { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scrollbar-width: thin; }
.rail-on .svc-nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; border: 0; }
.rail-on .svc-group { width: 100%; }
.rail-on .svc-group-label { padding-inline: 10px; }
.rail-on .svc-row { flex-direction: column; overflow: visible; }
.rail-on .svc-nav .tab { display: flex; justify-content: space-between; align-items: center; text-align: start; border-bottom: 0; border-inline-start: 3px solid transparent; border-radius: 0 8px 8px 0; padding: 6px 10px; min-height: 38px; font-size: 15px; margin: 0; }
.rail-on .svc-nav .tab[aria-selected="true"] { border-inline-start-color: var(--accent); background: var(--accent-soft); }
.rail-on .tab-n { display: inline; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-on .svc-gates { grid-template-columns: 1fr; }
/* العمود الجانبي ضيق: العدد في سطر العنوان والوصف بعرض البطاقة، كما في الجوال */
.rail-on .svc-gate { grid-template-areas: "t n" "s s"; align-items: start; gap: 2px 10px; }
.rail-on .gate-num { min-width: 0; padding: 0; border: 0; align-items: flex-end; }
.rail-on .gate-num strong { font-size: 18px; line-height: 1.6; }
.rail-on .gate-num em { display: none; }
.rail-on .fbar { gap: 12px; }
.rail-on .fbar-row { flex-direction: column; align-items: stretch; }
.rail-on .fbar-scroll { flex-direction: column; overflow: visible; -webkit-mask-image: none; mask-image: none; flex: none; }
.rail-on .fbar-scroll .chip { justify-content: space-between; border-radius: 10px; }
.rail-on .fbar .fcount { margin-inline-start: auto; }
.rail-on .fbar-gap { display: none; }
.rail-on .dd-btn { width: 100%; max-width: none; justify-content: space-between; }
.rail-on .dd-menu, .rail-on .dd-menu.end { inset-inline: 0; width: auto; }


.rail-on .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rail-on .nav-c .fbar-row:first-child, .rail-on.nav-c .fbar-row:first-child { display: block; }
.rail-on .fmini { display: none !important; }
.rail-on .compare-cols { grid-template-columns: 1fr 1fr; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.feat-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.feat-opt input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.feat-opt span { display: flex; flex-direction: column; gap: 2px; }
.feat-opt small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.feat-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ——— قسم «الذكاء الاصطناعي» (/ai): الصفحة نفسها بلون أزرق يميزه عن أخضر باكستان ——— */
body.space-ai {
  --pk-green: #1F3A8A; --accent: #1F3A8A; --accent-ink: #FFFFFF; --count-bg: #1F3A8A; --lang-ar: #1F3A8A;
  --accent-soft: color-mix(in oklab, #1F3A8A 10%, white); --ph-a: #1F3A8A; --ph-b: #13245a; --ph-ink: #E5EAF8;
  --brand-hover: color-mix(in oklab, #1F3A8A 82%, white); --brand-light: color-mix(in oklab, #1F3A8A 45%, white); --brand-line: color-mix(in oklab, #1F3A8A 75%, white);
}
@media (prefers-color-scheme: dark) {
  body.space-ai { --accent: #93A9F0; --accent-ink: #0E1512; --accent-soft: #1C2440; --ph-a: #1C2440; --ph-b: #121a33; --lang-ar: #93A9F0; }
}
/* اسم المساحة تحت الشعار بهيئة سطر الرئيسية نفسه (طلب المستخدم 2026-11-11): نص صغير بلا شارة */
.space-name { margin: 2px 0 0; align-self: center; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .88); }
.space-name[hidden] { display: none; }
/* مفتاح المساحة في لوحة التحكم */
.space-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--chip); border-radius: 10px; padding: 3px; margin: 0 4px 10px; }
.space-switch button { appearance: none; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.space-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
html[data-space="ai"] .space-switch button[aria-pressed="true"] { color: #1F3A8A; }
html[data-space="kashmir"] .space-switch button[aria-pressed="true"] { color: #6d2c42; }
html[data-space="kashmir"] .space-chip { background: #fbf1f5; color: #6d2c42; }
.space-chip { font-family: var(--font-ui); font-size: 12px; font-weight: 700; vertical-align: middle; border-radius: 999px; padding: 2px 10px; background: var(--accent-soft); color: var(--accent); }
html[data-space="ai"] .space-chip { background: #E5EAF8; color: #1F3A8A; }
/* رابط قسم الذكاء الاصطناعي في الشريط العلوي: «AI» على الشاشات الضيقة */
.topbar .ai-s { display: none; }
@media (max-width: 760px) { .topbar .ai-s { display: inline; font-family: var(--font-ui); letter-spacing: .02em; } }
@media (max-width: 420px) {
  .topbar-inner { gap: 6px; padding: 0 8px; }
  .topbar-links a { padding: 6px 4px; }
  .acct-cta, .acct-btn, .topbar-admin { padding: 4px 8px; }
}

/* ——— رسائل النظام (dialog.js): بدل نوافذ المتصفح، في وسط الشاشة وبهوية الموقع ——— */
dialog.ask { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0,0,0,.28); font-family: var(--font-ui); }
dialog.ask::backdrop { background: rgba(10, 20, 15, .5); }
dialog.ask[open] { animation: ask-in .14s ease-out; }
@keyframes ask-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.ask[open] { animation: none; } }
.ask-box { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 18px; margin: 0; }
.ask-title { margin: 0; font-family: var(--font-head); font-size: 19px; line-height: 1.5; }
dialog.ask.danger .ask-title { color: var(--bad-fg); }
.ask-msg { margin: 0; font-size: 15px; line-height: 1.8; color: var(--fg); white-space: pre-line; overflow-wrap: anywhere; }
.ask-input { font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
.ask-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 4px; }
.ask-actions .btn { min-width: 96px; }
.ask-actions .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
dialog.ask.danger .ask-actions .btn.bad { background: var(--bad-fg); border-color: var(--bad-fg); color: var(--surface); }

/* ——— «خلاصة الرأي اليوم» (opinion-digest.js) ——— */
.opd { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(to bottom, var(--accent-soft), var(--surface) 140px); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.opd[hidden] { display: none; }
.op-search { display: flex; gap: 8px; margin-bottom: 12px; }
.op-search[hidden] { display: none; }
.op-search input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 12px; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.op-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { .op-search input { font-size: 16px; } }
.opd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.opd-head h2 { margin: 0; font-family: var(--font-head); font-size: 21px; }
.opd-nav { display: flex; align-items: center; gap: 8px; }
.opd-arc { font-size: 13px; color: var(--accent); }
.opd-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.opd-pill { font-size: 11.5px; font-weight: 600; line-height: 1.6; padding: 1px 9px; border-radius: 999px; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.opd-lead { margin: 0; font-family: var(--font-head); font-size: 17px; line-height: 1.9; font-weight: 600; }
.opd-rest { display: flex; flex-direction: column; gap: 14px; }
.opd-sec { display: flex; flex-direction: column; gap: 8px; }
.opd-sec[hidden] { display: none; }
.opd-sec h3, .opd-titles h3 { margin: 0; font-family: var(--font-head); font-size: 15.5px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.opd-sec h3 { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.opd-sec h3 small, .opd-titles h3 small { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.opd-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* مربع أخير منفرد يمتد ليملأ سطره، فلا يبقى مكان فارغ */
.opd-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opd-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opd-box.ed { background: color-mix(in oklab, var(--count-edge) 12%, var(--surface)); border-color: transparent; }
.opd-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.opd-who .wav { width: 32px; height: 32px; font-size: 12px; }
.opd-who .wav.paper { width: auto; min-width: 32px; padding-inline: 6px; border-radius: 8px; font-size: 11px; }
.opd-names { display: flex; flex-wrap: wrap; gap: 0 8px; flex: 1; min-width: 0; line-height: 1.5; }
.opd-name { font-size: 13.5px; font-weight: 700; color: var(--fg); text-decoration: none; }
a.opd-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.opd-s { margin: 0; font-size: 14px; line-height: 1.85; }
.opd-cites { display: inline-flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; }
.opd-cite { font-size: 11.5px; font-weight: 600; text-decoration: none; padding: 0 8px; border-radius: 999px; line-height: 1.8; background: var(--chip); color: var(--muted); white-space: nowrap; }
.opd-cite.l-en { background: var(--lang-en-bg); color: var(--lang-en); }
.opd-cite.l-ur { background: var(--lang-ur-bg); color: var(--lang-ur); }
.opd-cite:hover { text-decoration: underline; }
.opd-titles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 6px 18px; }
.opd-titles li { border-top: 1px solid var(--line); padding-top: 6px; }
.opd-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.opd-lock p { margin: 0; flex: 1 1 240px; font-size: 13.5px; }
.opd-note { margin: 0; font-size: 12px; color: var(--muted); }
.opd-more { align-self: center; }
@media (max-width: 640px) {
  .opd { padding: 14px; }
  .opd-head h2 { font-size: 19px; }
  .opd-lead { font-size: 16px; }
  .opd-boxes { grid-template-columns: minmax(0, 1fr); }
}

/* ——— «الروايات المتعارضة» (src/contested.js): الشارات في الموقع واللوحة ——— */
:root { --cx1: #8A5A0B; --cx1-bg: #FBF2E2; --cx2: #1E4F8A; --cx2-bg: #EAF1FA; --cx3: #5A5F66; --cx3-bg: #EEF0F2; --cx4: #8E2A1E; --cx4-bg: #FBE3DF; }
@media (prefers-color-scheme: dark) { :root { --cx1: #E6B866; --cx1-bg: #2E2414; --cx2: #8DB6EA; --cx2-bg: #172334; --cx3: #B4BAC2; --cx3-bg: #23272C; --cx4: #F2A99D; --cx4-bg: #3B1C17; } }
.cx-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 999px; line-height: 1.9; white-space: nowrap; }
.cx-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cx-badge.l1 { color: var(--cx1); background: var(--cx1-bg); }
.cx-badge.l2 { color: var(--cx2); background: var(--cx2-bg); }
.cx-badge.l3 { color: var(--cx3); background: var(--cx3-bg); }
.cx-badge.l4 { color: var(--cx4); background: var(--cx4-bg); }
.cx-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border-radius: 10px; padding: 7px 10px; font-size: 13px; line-height: 1.7; background: var(--chip); }
.cx-flag.l1 { background: var(--cx1-bg); } .cx-flag.l2 { background: var(--cx2-bg); } .cx-flag.l3 { background: var(--cx3-bg); } .cx-flag.l4 { background: var(--cx4-bg); }
.cx-flag button { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.cx-panel { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cx-panel h3 { margin: 0; font-family: var(--font-head); font-size: 16px; }
.cx-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.cx-side { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.cx-side h4 { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.cx-side blockquote { margin: 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--line); font-size: 13.5px; }
.cx-side ul, .cx-ev ul { margin: 0; padding-inline-start: 18px; font-size: 13px; }
.cx-note { margin: 0; font-size: 12.5px; color: var(--muted); }
/* اللوحة */
.cx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cx-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.cx-row.rejected { opacity: .7; }
.cx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.chip-mini { font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--chip); line-height: 1.9; }
.chip-mini.ok { color: var(--ok); font-weight: 700; }
.cx-title { margin: 0; font-family: var(--font-head); font-size: 16px; }
.cx-sum, .cx-cor { margin: 0; font-size: 14px; }
.cx-det summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.cx-evs { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.cx-ev { display: flex; flex-direction: column; gap: 4px; }
.cx-ev blockquote { margin: 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--line); font-size: 13.5px; }
.cx-before { margin: 0; text-decoration: line-through; color: var(--muted); }
.cx-after { margin: 0; font-weight: 600; }
.cx-scroll { overflow-x: auto; }
.cx-table { border-collapse: collapse; font-size: 13px; min-width: 520px; width: 100%; }
.cx-table th, .cx-table td { text-align: start; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cx-table .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.cx-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-story { font-size: 13px; }
.cx-raise { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--cx4); border-radius: 10px; }
.cx-raise p { margin: 0; font-size: 13px; }
.cx-raise input, .cx-raise textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg); color: var(--fg); }
.cx-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin: 8px 0; }
.cx-hours input { width: 70px; font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.ncard .cx-flag { position: relative; z-index: 2; margin-top: 2px; }
/* الشارات على صورة البطاقة من سجلها (src/badges.js): ثلاثة أماكن، ولا تغير ارتفاع البطاقة */
.ncard-bdgs { position: absolute; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100% - 20px); pointer-events: none; }
.ncard-bdgs.p-media-top { inset-block-start: 10px; inset-inline-start: 10px; }
.ncard-bdgs.p-media-bottom { inset-block-end: 10px; inset-inline-start: 10px; }
.ncard-bdgs.p-media-end { inset-block-end: 10px; inset-inline-end: 10px; justify-content: flex-end; }
.ncard-bdgs > * { position: static; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.ncard-bdgs .ncard-video { position: static; }
.ncard-bdgs .ncard-tag { position: static; }
.ncard-bdgs .bdg-btn { pointer-events: auto; }
/* زر الشارة: منطقة لمس ٤٠ بكسل دون تكبير الشارة */
.bdg-btn { position: relative; appearance: none; border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bdg-btn::after { content: ""; position: absolute; inset: -9px -4px; }
.meta-pills .bdg-btn, .trow-meta .cx-badge { position: relative; z-index: 2; }
.bdg-grey { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 1px 9px; border-radius: 999px; white-space: nowrap; background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.cx-feed { display: flex; flex-direction: column; gap: 12px; }
.cx-item { display: flex; flex-direction: column; gap: 8px; }
.cx-item h3 { margin: 0; font-family: var(--font-head); font-size: 16px; }
.cx-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; margin: 0 0 8px; }
.cx-levels div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.cx-levels dd { margin: 0; font-size: 14px; }
button.cx-badge { border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
button.cx-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ——— «أحداث اليوم» (home.js): الحدث الأول بصورته، والبقية قائمة مرقمة؛ شريط مصادر التغطية بلون لكل قطاع ——— */
/* ألوان القطاعات متباعدة في الصبغة والإضاءة معا، فتتميز متجاورة في شريط رفيع: ذهبي، أزرق، أخضر، بنفسجي، برتقالي محمر، ورمادي فاتح للعالمي */
:root { --s-ur: #C7920A; --s-en: #1F62B0; --s-sd: #A8324A; --s-ps: #6B7A1E; --s-off: #0B7A45; --s-ar: #7A4FB5; --s-in: #C2410C; --s-wd: #8E989E; --s-ai: #2F8FA8; }
@media (prefers-color-scheme: dark) { :root { --s-ur: #E6B866; --s-en: #8DB6EA; --s-sd: #F0909E; --s-ps: #C2D07A; --s-off: #6CC795; --s-ar: #B9A8E0; --s-in: #F0A06A; --s-wd: #9DB8BF; --s-ai: #7FC4E0; } }
.events { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(1, 65, 28, .10); }
.events[hidden] { display: none; }
.ev-live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 0 9px; border-radius: 999px; line-height: 1.9; color: var(--bad-fg); background: var(--bad-bg); }
.ev-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ev-topic { font-size: 12px; font-weight: 600; color: var(--fg); background: var(--chip); padding: 0 9px; border-radius: 999px; line-height: 1.9; }
/* قطع منفصلة بفراغ بينها، لا شريط متصل: حدّ كل قطاع واضح ولو تقارب لونان. القطع تملأ العرض كله */
.ev-mix { display: flex; gap: 2px; height: 9px; }
.ev-seg { display: block; height: 100%; flex: 1 1 auto; min-width: 6px; border-radius: 3px; }
.s-pin { background: #8a6414; } .s-ur { background: var(--s-ur); } .s-en { background: var(--s-en); } .s-sd { background: var(--s-sd); } .s-ps { background: var(--s-ps); } .s-off { background: var(--s-off); } .s-ar { background: var(--s-ar); } .s-in { background: var(--s-in); } .s-wd { background: var(--s-wd); } .s-ai { background: var(--s-ai); }
.events-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--muted); }
.events-legend span { display: inline-flex; align-items: center; gap: 5px; }
.events-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* «أحداث اليوم» في صفحتها (/events): الشريط بأصناف عرض جاهزة (لا style مضمن) */
.ev-seg.w5 { width: 5%; }
.ev-seg.w10 { width: 10%; }
.ev-seg.w15 { width: 15%; }
.ev-seg.w20 { width: 20%; }
.ev-seg.w25 { width: 25%; }
.ev-seg.w30 { width: 30%; }
.ev-seg.w35 { width: 35%; }
.ev-seg.w40 { width: 40%; }
.ev-seg.w45 { width: 45%; }
.ev-seg.w50 { width: 50%; }
.ev-seg.w55 { width: 55%; }
.ev-seg.w60 { width: 60%; }
.ev-seg.w65 { width: 65%; }
.ev-seg.w70 { width: 70%; }
.ev-seg.w75 { width: 75%; }
.ev-seg.w80 { width: 80%; }
.ev-seg.w85 { width: 85%; }
.ev-seg.w90 { width: 90%; }
.ev-seg.w95 { width: 95%; }
.ev-seg.w100 { width: 100%; }
/* السجل المرتب: صف لكل حدث (الرتبة، العنوان والبيانات، التغطية بأرقامها)، وعمود واحد على الجوال */
.arc-hero .evr-lede { max-width: 75ch; }
.arc-hero .evr-lede a { color: #fff; font-weight: 700; }
.arc-hero .evr-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13.5px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.arc-hero .evr-facts b { color: #fff; }
.evr-page { margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.evr-legend { padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.evr-list { list-style: none; margin: 0; padding: 0; }
.evr { display: grid; grid-template-columns: 3.4em 128px minmax(0, 1fr) minmax(0, 220px); gap: 6px 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.evr-thumb { display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--chip); }
.evr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evr-thumb-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--muted); text-decoration: none; font-size: 11px; line-height: 1.3; }
.evr:last-child { border-bottom: 0; }
/* رقم الترتيب في مستطيل عمودي بحافة رمادية، بارتفاع الصورة المصغرة (عرضها × ٩ / ١٦) وزاويتها */
.evr-rank { display: grid; place-items: center; height: 72px; border-radius: 8px; border: 1.5px solid var(--line); background: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.evr:first-child .evr-rank { font-size: 24px; }
.evr-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.evr-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.65; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.evr:first-child .evr-title { font-size: 18px; }
.evr-title:hover { color: var(--accent); }
.evr-title.en { font-family: var(--font-en); font-weight: 600; direction: ltr; }
.evr-title.ur { font-family: var(--font-urdu); font-weight: 500; line-height: 2.1; }
.evr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.evr-cov { display: flex; flex-direction: column; gap: 5px; min-height: 40px; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; color: inherit; text-decoration: none; }
.evr-cov:hover { background: var(--chip); }
.evr-cov:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.evr-n { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.evr-n b { color: var(--fg); font-size: 15px; }
.evr-go { color: var(--accent); font-weight: 700; }
/* مفتاح الشريط تحته: مربع بلون القطاع قبل اسمه وعدده، فلا يحتاج القارئ إلى تذكر الألوان */
.evr-mixl { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--muted); line-height: 1.6; font-variant-numeric: tabular-nums; }
.evr-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.evr-k i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.evr-k b { color: var(--fg); font-weight: 700; }
.evr .ev-mix { height: 9px; }
/* أدوات النشر لكل حدث: «البطاقة الإخبارية» و«انشر مع الصورة» (لوحة المشاركة، public/share.js) */
.evr-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.evr-tool { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.evr-tool:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }
.evr-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.evr-tool svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evr > .evr-tools { grid-column: 3; grid-row: 2; }
.evg .evr-tools { padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .evr > .evr-tools { grid-column: 2 / -1; grid-row: auto; } }
@media (max-width: 480px) { .evr > .evr-tools { grid-column: 1 / -1; } .evr > .evr-tools .evr-tool { flex: 1 1 0; justify-content: center; } }
.evg .evr-tool { flex: 1 1 0; justify-content: center; }
@media (pointer: coarse) { .evr-tool { min-height: 40px; } }
@media (max-width: 720px) {
  .evr { grid-template-columns: 2.6em 92px minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px; align-items: start; }
  .evr-rank { height: 52px; font-size: 18px; }
  .evr:first-child .evr-rank { font-size: 20px; }
  .evr-cov { grid-column: 2 / -1; }
  .evr:first-child .evr-title { font-size: 17px; }
}
/* الجوال الضيق: الرقم شارة على زاوية الصورة بدل عمود وحده، فيتسع العنوان */
@media (max-width: 480px) {
  .evr { grid-template-columns: 88px minmax(0, 1fr); gap: 6px 10px; padding: 12px; }
  .evr-thumb { grid-column: 1; grid-row: 1; }
  .evr-rank, .evr:first-child .evr-rank { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; z-index: 1; height: auto; min-width: 1.8em; margin: 4px; padding: 2px 5px; font-size: 13px; color: var(--fg); background: var(--surface); border-width: 1px; }
  .evr-body { grid-column: 2; grid-row: 1; }
  .evr-cov { grid-column: 1 / -1; }
}
/* صف الأدوات (المصدر وقارن التغطية وطريقة العرض) مرتبا: الأدوات الثلاث متجاورة في أول السطر، ووقت التحديث وحده في آخره.
   الجوال: «كل المصادر» بعرض السطر، ثم «قارن التغطية» و«طريقة العرض» متساويين جنبا إلى جنب، ثم وقت التحديث. (شكل اللوحة p يرتبه بنفسه) */
html:not(.nav-p) .fbar-tools .fbar-gap { order: 1; }
html:not(.nav-p) .fbar-tools .freshness { order: 2; }
@media (max-width: 640px) {
  html:not(.nav-p) .fbar-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
  html:not(.nav-p) .fbar-tools > #oplang, html:not(.nav-p) .fbar-tools > #src-dd, html:not(.nav-p) .fbar-tools > .freshness { grid-column: 1 / -1; }
  html:not(.nav-p) .fbar-tools > .fbar-lbl, html:not(.nav-p) .fbar-tools > .fbar-gap { display: none; }
  html:not(.nav-p) .fbar-tools > #cmp-btn[hidden] + #view-dd { grid-column: 1 / -1; }
  html:not(.nav-p) .fbar-tools .dd-btn { width: 100%; max-width: none; justify-content: center; min-height: 44px; }
  html:not(.nav-p) .fbar-tools #src-btn { justify-content: flex-start; }
  html:not(.nav-p) .fbar-tools #src-btn::after { margin-inline-start: auto; }
  html:not(.nav-p) .fbar-tools .freshness { justify-self: start; }
}
/* مفتاح العرض «قائمة | صور» بجانب مفتاح الألوان */
.evr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.evr-bar .evr-legend { padding: 0; border: 0; background: none; }
.evr-views { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.evr-views a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: var(--surface); text-decoration: none; }
.evr-views a + a { border-inline-start: 1px solid var(--line); }
.evr-views a[aria-current="true"] { background: var(--pk-green); color: #fff; }
.evr-views a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.evr-views svg { width: 16px; height: 16px; fill: currentColor; }
/* العرض بالصور: بطاقات بمقاس واحد، والحدث الأول بعرض بطاقتين، وشريط التغطية في أسفل كل بطاقة */
.evg-grid { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.evg { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); padding-bottom: 12px; }
.evg > :not(.evg-media) { margin-inline: 14px; }
.evg-lead { grid-column: span 2; }
.evg-media { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--chip); }
.evg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* الصورة رابط يفتح التغطية (archive.js)، وبلا سكربت يفتح صفحة الحدث */
a.evg-media { color: inherit; text-decoration: none; cursor: pointer; }
a.evg-media img { transition: transform .25s ease, filter .25s ease; }
a.evg-media:hover img { transform: scale(1.03); filter: brightness(.94); }
a.evg-none:hover { background: color-mix(in oklab, var(--accent) 7%, var(--chip)); }
@media (prefers-reduced-motion: reduce) { a.evg-media img { transition: none; } a.evg-media:hover img { transform: none; } }
.evg-rank { position: absolute; inset-inline-end: 10px; top: 10px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; background: rgba(8, 24, 21, .72); color: #fff; font-variant-numeric: tabular-nums; }
.evg-lead .evg-rank { background: var(--count-edge, #C9A961); color: #0B2E29; }
.evg-cap { position: absolute; inset-inline-start: 10px; bottom: 8px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #fff; background: rgba(8, 24, 21, .72); padding: 1px 8px; border-radius: 999px; }
.evg-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; text-align: center; padding: 12px; }
.evg-none .evg-rank { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.evg-big { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.evg-none .ev-mix { width: 70%; height: 10px; }
.evg .evr-title { font-size: 15.5px; }
.evg-lead .evr-title { font-size: 19px; }
.evg .evr-cov { margin-top: auto; margin-inline: 8px; }
/* عمودان: الأول بعرض بطاقة واحدة، فعشرون حدثا عشرة صفوف كاملة (بعرض بطاقتين تبقى خانة فارغة في الأخير) */
@media (max-width: 960px) { .evg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evg-lead { grid-column: auto; } }
@media (max-width: 620px) {
  .evg-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .evg-lead { grid-column: auto; }
  .evg-lead .evr-title { font-size: 17px; }
  .evr-bar { padding: 8px 14px; }
}
/* درج «التغطية كلها» (archive.js): مجموعات بالقطاع */
.covg-h { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 18px 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--surface); border-bottom: 1px solid var(--line); }
.covg-h i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.covg-h small { color: var(--muted); font-weight: 600; }
.covg-list { list-style: none; margin: 0; padding: 4px 18px 10px; display: flex; flex-direction: column; }
.covg-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.covg-list li > a { flex-basis: 100%; }
.covg-list li:last-child { border-bottom: 0; }
.covg-list a { color: var(--fg); text-decoration: none; font-size: 14px; line-height: 1.7; }
.covg-list a:hover { color: var(--accent); }
.covg-list small { color: var(--muted); font-size: 12px; }
a.tsheet-go { display: inline-flex; align-items: center; text-decoration: none; }
/* «كيف نرتب الأحداث؟»: إنفوغرافيك من خمس بطاقات، والتعريف المختار تحتها (archive.js) */
.evh { display: grid; gap: 12px; }
.evh-rule { margin: 0; font-family: var(--font-head); font-size: 19px; line-height: 1.6; }
.evh-rule b { color: var(--accent); }
.evh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.evh-tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-height: 96px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; cursor: default; transition: border-color .2s, background .2s, transform .2s; }
.evh-tile b { font-size: 14px; }
.evh-vis { flex: 1; display: grid; place-items: center; width: 100%; min-height: 34px; }
.evh-js .evh-tile { cursor: pointer; }
.evh-js .evh-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.evh-js .evh-tile[aria-selected="true"] { border-color: var(--accent); background: var(--chip); box-shadow: inset 0 -3px 0 var(--accent); }
.evh-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.evh-panels { display: grid; gap: 8px; }
.evh-panel { margin: 0; line-height: 1.9; padding: 10px 14px; border-radius: 12px; background: var(--chip); }
/* الوصلة: البطاقة المختارة والتعريف بلون واحد، وسهم من التعريف إلى منتصف البطاقة */
.evh-js .evh-panels { position: relative; }
.evh-js .evh-panel { border: 1px solid var(--accent); }
.evh-js .evh-panels::before { content: ""; position: absolute; top: -9px; left: var(--evh-x, 50%); width: 17px; height: 17px; margin-left: -8.5px; background: var(--chip); border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); transform: rotate(45deg); transition: left .3s ease; }
/* التشغيل التلقائي: شريط يمتلئ في البطاقة المختارة خلال مدة عرضها */
.evh-tile { position: relative; overflow: hidden; }
.evh-auto .evh-tile[aria-selected="true"]::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: right; animation: evh-run 5s linear; }
.evh-auto .evh-tile[aria-selected="true"] { box-shadow: none; }
@keyframes evh-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.evh-panel b { color: var(--accent); }
/* الرسوم الصغيرة */
.evh-merge { display: flex; align-items: center; gap: 6px; }
.evh-dots { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; }
.evh-dots i { width: 8px; height: 8px; border-radius: 50%; }
.evh-to { color: var(--muted); font-weight: 700; }
.evh-one { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); }
.evh-count { display: flex; flex-direction: column; align-items: center; line-height: 1.3; font-size: 12px; color: var(--muted); }
.evh-count s { text-decoration-color: var(--bad-fg); }
.evh-count span { color: var(--fg); }
.evh-count b { font-size: 18px; color: var(--accent); }
.evh-mixv { width: 100%; max-width: 110px; }
.evh-mixv .ev-mix { width: 100%; }
.evh-ladder { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.evh-ladder i { font-style: normal; font-size: 10.5px; line-height: 1.5; padding: 0 7px; border-radius: 6px; background: var(--chip); color: var(--muted); }
.evh-ladder i:first-child { background: var(--accent); color: var(--surface); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .evh-tile { transition: none; } .evh-js .evh-tile:hover { transform: none; } .evh-js .evh-panels::before { transition: none; } }

/* ——— «باكستان بعيون الإعلام»: الشريط المصور (home.js) ——— */
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.featured { display: flex; flex-direction: column; gap: 10px; }
.featured-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
/* العنوان لا يعصر بجانب الأزرار: إن ضاق عنهما السطر نزلت الأزرار تحته */
.featured-head h2 { flex: 1 1 11em; margin: 0; font-size: 19px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.featured-head h2 .featured-tag { font-size: 12.5px; font-weight: 600; color: var(--count-fg); background: var(--count-bg); border: 1px solid var(--count-edge); padding: 2px 12px; border-radius: 999px; line-height: 1.6; }
.featured-ctrl { display: flex; gap: 6px; margin-inline-start: auto; }
.featured-view { overflow: hidden; touch-action: pan-y; }
.featured-track { display: flex; gap: 12px; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.slide { position: relative; flex: 0 0 calc((100% - 24px) / 3); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--fg); text-decoration: none; min-width: 0; }
.slide-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; min-width: 0; }
a.slide-link:hover .slide-title { color: var(--accent); }
.slide-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--chip); display: block; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-media.noimg { background: linear-gradient(140deg, var(--ph-a), var(--ph-b)); }
.slide.on .slide-media img { animation: slow-zoom 6.5s ease-out both; }
.featured.paused .slide-media img { animation: none; }
/* سبب ظهور البطاقة: الصحافة ولونها أعلى الصورة، وعدد وسائلها في الركن المقابل أسفلها */
.slide-why { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1; box-sizing: border-box; height: 26px; font-size: 12px; font-weight: 700; line-height: 24px; color: #fff; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 12px; }
.slide-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.6; height: 3.2em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.slide-title.en { font-family: var(--font-en); font-weight: 600; direction: ltr; text-align: left; }
.slide-title.ur { font-family: var(--font-urdu); font-weight: 500; font-size: 15px; line-height: 2.1; height: 4.2em; }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
/* طبقة بمقاس الصورة (16:9 بالحشو العلوي، يعمل في المتصفح القديم) تحمل زر العدد، ولا تعترض الضغط على الصورة */
.slide-over { position: absolute; top: 0; left: 0; right: 0; z-index: 1; pointer-events: none; }
.slide-over::before { content: ""; display: block; padding-top: 56.25%; }
.slide-over .slide-count { pointer-events: auto; }
.slide-count { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; appearance: none; cursor: pointer; font: inherit; box-sizing: border-box; height: 26px; font-size: 12px; font-weight: 700; line-height: 24px; padding: 0 11px; border-radius: 999px; background: var(--count-bg); color: var(--count-fg); border: 1px solid var(--count-edge); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .15s, background .15s; }
.slide-count i { font-style: normal; font-size: 13px; line-height: 1; opacity: .8; }
/* الشارتان بمقاس واحد (٢٦ بكسل) على الحاسوب والجوال؛ منطقة لمس الزر أوسع من شكله بطبقة شفافة (pointer: coarse) */
.slide-count:hover { background: var(--brand-hover); transform: translateY(-1px); }
.slide-count:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; }
.slide-count:disabled { cursor: default; transform: none; }
.slide-count:disabled i { display: none; }
.featured-dots { display: flex; justify-content: center; gap: 6px; }
.featured-dots .dot { appearance: none; border: 0; padding: 0; width: 8px; height: 8px; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .3s; }
.featured-dots .dot.on { width: 22px; background: var(--accent); }
/* الشريط يقع على منتصف تدرج الصفحة الرئيسية، فيعرض على لوح فاتح حتى يبقى عنوانه مقروءا */
body.home .featured { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 10px; box-shadow: 0 6px 24px rgba(1, 65, 28, .10); }
@media (max-width: 860px) { .slide { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 560px) { .slide { flex-basis: 100%; } .featured-head h2 .featured-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .featured-track { transition: none; } .slide.on .slide-media img { animation: none; } }
/* لوحة التحكم ← «أحداث اليوم»: سجل الجمع الآلي */
.evm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.evm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.evm-row label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.evm-row label b { font-family: var(--font-head); font-size: 15px; line-height: 1.6; }
.evm-row input { margin-top: 6px; }
.evm-row.log { grid-template-columns: minmax(0, 1fr) auto; }
.evm-row.log > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evm-row.log b { font-family: var(--font-head); font-size: 15px; line-height: 1.6; }
.evm-open { text-decoration: none; font-weight: 700; }
.cx-why { margin: 0; font-size: 13px; color: var(--muted); }

/* ——— عرض أخبار الواجهة (يختاره المدير من «الإعدادات»؛ data-shape على الشبكة) ——— */
.grid[data-shape="three"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.grid[data-shape="three"] .ncard-title { font-size: 15.5px; }
.grid[data-shape="three"] .ncard-title-text { min-height: 0; }
.grid[data-shape="list"] { grid-template-columns: minmax(0, 1fr); gap: 0; }
.grid[data-shape="front"] { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 18px; }
.grid[data-shape="front"] > .ncard:nth-child(1) { grid-row: span 4; margin-bottom: 18px; }
.grid[data-shape="front"] > .ncard:nth-child(1) .ncard-title { font-size: 23px; }
.grid[data-shape="front"] > .ncard:nth-child(1) .ncard-title-text { min-height: 0; }
.grid[data-shape="front"] > .ncard:nth-child(n+2):nth-child(-n+5) { grid-column: 2; }
.grid[data-shape="front"] > .ncard:nth-child(n+6) { grid-column: 1 / -1; }
.grid[data-shape="topics"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.grid[data-shape="cols"] { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.feed-sec { display: flex; flex-direction: column; min-width: 0; }
.feed-h { margin: 0 0 8px; padding-bottom: 3px; border-bottom: 2px solid var(--accent); color: var(--accent); font-family: var(--font-head); font-size: 18px; }
/* السطر المضغوط: صورة صغيرة بجوار العنوان */
.grid[data-shape="list"] > .ncard, .grid[data-shape="front"] > .ncard:nth-child(n+6) { flex-flow: row wrap; align-items: center; border-radius: 0; border-width: 0 0 1px; background: none; }
.grid[data-shape="list"] > .ncard .ncard-media, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media { flex: none; width: 128px; margin-block: 10px; border-radius: 10px; aspect-ratio: 3 / 2; }
.grid[data-shape="list"] > .ncard .ncard-tag, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-tag, .grid[data-shape="list"] > .ncard .ncard-video, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-video { display: none; }
.grid[data-shape="list"] > .ncard .ncard-body, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-body { flex: 1 1 200px; min-width: 0; }
.grid[data-shape="list"] > .ncard .ncard-tools, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-tools { flex-basis: 100%; }
/* السطر النصي: عنوان ومصدر بلا صورة */
.grid[data-shape="front"] > .ncard:nth-child(n+2):nth-child(-n+5), .feed-sec > .ncard ~ .ncard, .grid[data-shape="cols"] .ncard { border-radius: 0; border-width: 0 0 1px; background: none; }
.grid[data-shape="front"] > .ncard:nth-child(n+2):nth-child(-n+5) .ncard-media, .feed-sec > .ncard ~ .ncard .ncard-media, .grid[data-shape="cols"] .ncard-media { display: none; }
.grid[data-shape="front"] > .ncard:nth-child(n+2):nth-child(-n+5) .ncard-body, .feed-sec > .ncard ~ .ncard .ncard-body, .grid[data-shape="cols"] .ncard-body { padding: 8px 4px; }
.grid[data-shape="list"] .ncard-title, .grid[data-shape="front"] > .ncard:nth-child(n+2) .ncard-title, .feed-sec > .ncard ~ .ncard .ncard-title, .grid[data-shape="cols"] .ncard-title { font-size: 15.5px; line-height: 1.55; }
.grid[data-shape="list"] .ncard-title-text, .grid[data-shape="front"] > .ncard:nth-child(n+2) .ncard-title-text, .grid[data-shape="topics"] .ncard-title-text, .grid[data-shape="cols"] .ncard-title-text { min-height: 0; }
.grid[data-shape="list"] > .ncard:hover, .grid[data-shape="front"] > .ncard:nth-child(n+2):hover, .feed-sec > .ncard ~ .ncard:hover, .grid[data-shape="cols"] .ncard:hover { transform: none; box-shadow: none; }
.feed-cols #textlist, .feed-cols #more-text { display: none; }
@media (max-width: 720px) {
  .grid[data-shape="front"] { grid-template-columns: minmax(0, 1fr); }
  .grid[data-shape="front"] > .ncard:nth-child(n+2):nth-child(-n+5) { grid-column: 1; }
  .grid[data-shape="cols"] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .grid[data-shape="cols"] .feed-sec { scroll-snap-align: start; }
  .grid[data-shape="list"] > .ncard .ncard-media, .grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media { width: 96px; }
}
/* مفتاح وأقسام في سطر (الشكل d) */
.nav-d .svc-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 8px; }
.nav-d .svc-gates { display: inline-flex; gap: 6px; }
.nav-d .svc-gate { display: flex; padding: 5px 14px; border-radius: 9px; }
.nav-d .svc-gate b { font-size: 15px; }
.nav-d .svc-gate small, .nav-d .gate-num { display: none; }
.nav-d .svc-gate[aria-pressed="true"] { box-shadow: none; }
/* معاينات خيارات العرض في «الإعدادات» */
.fp { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--bg); min-height: 128px; align-content: start; }
.fp i { display: block; background: var(--line); border-radius: 5px; min-height: 14px; }
.fp-cards { grid-template-columns: 1fr 1fr; } .fp-cards i { min-height: 46px; }
.fp-front { grid-template-columns: 3fr 2fr; } .fp-front i:nth-child(1) { grid-row: span 4; background: var(--pk-green); } .fp-front i:nth-child(n+6) { grid-column: 1 / -1; }
.fp-list { grid-template-columns: 1fr; }
.fp-three { grid-template-columns: repeat(3, 1fr); } .fp-three i { min-height: 40px; }
.fp-topics { grid-template-columns: repeat(2, 1fr); } .fp-topics i:nth-child(-n+2) { min-height: 34px; background: var(--pk-green); }
.fp-cols { grid-template-columns: repeat(3, 1fr); } .fp-cols i { min-height: 28px; }

/* ——— اللمس والأجهزة القديمة (الأساس في AGENTS.md) ——— */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* اللمس فوري في كل عنصر لا في الأزرار وحدها: بلا انتظار «النقر المزدوج للتكبير» (التكبير بإصبعين باق)، وبلا الوميض الرمادي */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, a, summary, label, input, select, textarea, [role="button"], [tabindex] { touch-action: manipulation; }
/* شاشات اللمس: رد بصري لحظي عند الضغط بدل الوميض، ولا «رفع» للبطاقة يعلق بعد اللمس (تأثيرات :hover للفأرة)،
   ولا تمويه خلفية الشريط المصغر (ثقيل على الجوالات المتوسطة أثناء التمرير) */
@media (hover: none) {
  button:active, a:active, summary:active, [role="button"]:active, .chip:active { opacity: .7; transition: none; }
  .card:hover, .bcard:hover, .ncard:hover, .so-card:hover, .evh-js .evh-tile:hover, .slide-count:hover, button.stat.go:hover,
  .grid[data-shape] > .ncard:hover, .feed-sec > .ncard:hover { transform: none; }
  .fmini { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}
dialog:not([open]) { display: none; }
/* نافذة <dialog> حيث لا يدعمها المتصفح (compat.js) */
.no-dialog dialog[open] { display: block; position: fixed; z-index: 1001; }
.no-dialog dialog[open]:not(.story) { top: 50%; left: 50%; right: auto; bottom: auto; margin: 0; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.dialog-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 20, 15, .5); }
.dialog-on, .dialog-on body { overflow: hidden; }
.legacy-note { margin: 0; padding: 12px 16px; background: #FFF1CC; color: #6B4A00; text-align: center; font-size: 16px; }
.legacy-note a { color: #0B5D33; font-weight: 700; }
/* مساحة محجوزة حتى لا تقفز الصفحة حين تصل الأقسام على شبكة بطيئة */
.ticker.loading { min-height: 44px; }
.featured.loading { min-height: 360px; }
.grid-wait { min-height: 120vh; }
#tabs:empty { min-height: 120px; }
#tabs[data-nav="c"] ~ #panel #topics:empty { min-height: 90px; }
@media (max-width: 640px) { .featured.loading { min-height: 335px; } #tabs[data-nav="c"] ~ #panel #topics:empty { min-height: 270px; } }
/* مناطق لمس لا تقل عن ٤٠ بكسل، ومن دون تغيير الشكل بالفأرة */
@media (pointer: coarse) {
  .icon-btn { width: 42px; height: 42px; }
  .svc-order .icon-btn, .cat-row .icon-btn { width: 40px; height: 40px; }
  .sheet-close { width: 42px; height: 42px; }
  .acct-btn, .acct-cta { display: inline-flex; align-items: center; min-height: 40px; }
  .ins-more, .ins-top-count { display: inline-flex; align-items: center; min-height: 40px; }
  .slide-count::after { content: ''; position: absolute; top: -8px; right: -6px; bottom: -8px; left: -6px; }
  .btn { min-height: 40px; }
  .footer-col a, .footer-link { display: inline-block; padding-block: 9px; }
  .featured-dots .dot { position: relative; }
  .featured-dots .dot::after { content: ''; position: absolute; top: -16px; right: -6px; bottom: -16px; left: -6px; }
  /* أصغر من ١٦ بكسل يكبر آيفون الصفحة عند التركيز في الحقل */
  input, select, textarea { font-size: 16px; }
}

/* شريط أفقي بسطرين (الشكل h): البوابتان والأقسام بأعدادها ثم الموضوعات والمصدر والعرض */
.nav-h .svc-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.nav-h .svc-gates { flex: none; gap: 2px; padding: 3px; border-radius: 10px; background: var(--chip); }
.nav-h .svc-gate { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.nav-h .svc-gate b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-h .svc-gate[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--line); }
.nav-h .svc-group { flex: 1 1 auto; width: auto; min-width: 0; }
.nav-h .svc-group-label { display: none; }
.nav-h .svc-row { gap: 4px; }
.nav-h .svc-nav .tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; color: var(--fg); font-size: 15px; }
.nav-h .svc-nav .tab:hover { background: var(--chip); }
.nav-h .svc-nav .tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.nav-h .tab-n { display: inline; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-h .tab[aria-selected="true"] .tab-n { color: var(--accent); }
.nav-h .svc-nav .cmp-btn { flex: none; }
@media (min-width: 1180px) {
  .nav-h .svc-nav { position: sticky; top: 64px; z-index: 5; flex-wrap: nowrap; }
  .nav-h .fmini { display: none !important; }
  .nav-h .fbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
  .nav-h .fbar > .saved-bar, .nav-h .fbar > .fbar-active { flex-basis: 100%; }
  .nav-h .fbar > .fbar-row:nth-of-type(2) { flex: 1 1 0; }
  .nav-h .fbar > .fbar-row { flex-wrap: nowrap; }
  .nav-h .fbar .fbar-scroll { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .nav-h .fbar .chip.topic { font-size: 13.5px; padding: 4px 10px; gap: 5px; }
  .nav-h .fbar .fbar-lbl, .nav-h .fbar .fbar-gap { display: none; }
}

/* ——— التعريف بالمصدر (app.js frameStrip/titleInto، server.js framing) ———
   العنوان ترجمة لما نشره المصدر بلا إضافة. معيار واحد لكل إعلام غير باكستاني: البطاقة شريط الوسيلة بلون واحد
   ثم العنوان والشارات كبطاقة الصحافة الباكستانية؛ وعلامتا النقل والعنوان الأصلي و«عن الوسيلة» في لوحة الخبر */
:root { --fr-in-bg: #FBEFD9; --fr-in-fg: #7A4206; --fr-wd-bg: #E3EDF7; --fr-wd-fg: #1F4E79; }
@media (prefers-color-scheme: dark) { :root { --fr-in-bg: #33270F; --fr-in-fg: #F0C27A; --fr-wd-bg: #172633; --fr-wd-fg: #9CC3EA; } }
.frame-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 13px; line-height: 1.7; border-inline-start: 3px solid var(--fr-in-fg); }
/* شريط الإعلام غير الباكستاني (الخيار ب في docs/outlet-strip-options.html): القطاع في شارة ملونة أول السطر،
   و«نقلا عن» والوسيلة نصا خافتا بلا خلفية في الجهة الأخرى. الاسم الطويل يقص بنقاط، وكاملا في title ولوحة الخبر */
.ncard-frame { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font-size: 11.5px; line-height: 1.6; white-space: nowrap; }
.ncard-frame-sec { flex: none; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--fr-wd-bg); color: var(--fr-wd-fg); }
.ncard-frame-from { display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; color: var(--muted); }
.ncard-frame-as { flex: none; }
.ncard-frame-from b { font-weight: 600; color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.as-quoted::before { content: '«'; color: var(--fr-wd-fg); margin-inline-end: 1px; }
.as-quoted::after { content: '»'; color: var(--fr-wd-fg); margin-inline-start: 1px; }
.term-mark { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--fr-in-fg); }
.narr-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 0 8px; border-radius: 999px; white-space: nowrap;
  background: var(--fr-in-bg); color: var(--fr-in-fg); border: 1px solid color-mix(in oklab, var(--fr-in-fg) 30%, transparent); }
.slide-meta .narr-pill { font-size: 11.5px; padding: 1px 9px; }
#story-body > .ncard-frame { align-self: stretch; font-size: 12.5px; }
.story-terms, .story-outlet { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.story-terms h3, .story-outlet h3 { margin: 0 0 6px; font-size: 14px; color: var(--muted); font-weight: 700; }
.story-term + .story-term { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.story-term-h { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.story-term-h b { color: var(--fr-in-fg); }
.story-term-h span { color: var(--muted); font-size: 12.5px; }
.story-terms dl, .story-outlet dl { margin: 0; display: grid; gap: 3px; }
.story-terms dl > div, .story-outlet dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.story-terms dt, .story-outlet dt { color: var(--muted); }
.story-terms dd, .story-outlet dd { margin: 0; }
.story-term-more { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.story-outlet-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .story-terms dl > div, .story-outlet dl > div { grid-template-columns: 1fr; gap: 0; } }
/* صفحة الخبر (/story): الشريط بعرض محتواه فوق العنوان، والعلامات بلون العنوان على الخلفية الداكنة */
p.ncard-frame { max-width: 900px; margin: 6px 0; }
/* على خلفية الصفحة الداكنة: النقل بلون العنوان */
p.ncard-frame .ncard-frame-from, p.ncard-frame .ncard-frame-from b { color: inherit; }
p.ncard-frame .ncard-frame-as { opacity: .8; }
.arc-story-h .term-mark { text-decoration-color: currentColor; }
.arc-story-h .as-quoted::before, .arc-story-h .as-quoted::after { color: inherit; opacity: .75; }
/* صفحات «المصطلحات» (/terms) */
.term-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.term-card { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; }
.term-card:hover { border-color: var(--accent); }
.term-card b { font-size: 16px; }
.term-card small { color: var(--muted); font-size: 12px; }
.term-card em { font-style: normal; color: var(--accent); font-size: 12.5px; font-weight: 600; margin-top: auto; }
.term-facts { margin: 0; display: grid; gap: 6px; }
.term-facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 10px; }
.term-facts dt { color: var(--muted); }
.term-facts dd { margin: 0; }
@media (max-width: 560px) { .term-facts > div { grid-template-columns: 1fr; gap: 0; } }
.term-weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 140px; }
.term-weeks li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; font-size: 12px; }
.term-weeks small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.term-bar { display: block; width: 70%; max-height: 90px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.term-bar.w0 { height: calc(0.9px * 3); }
.term-bar.w5 { height: calc(0.9px * 5); }
.term-bar.w10 { height: calc(0.9px * 10); }
.term-bar.w15 { height: calc(0.9px * 15); }
.term-bar.w20 { height: calc(0.9px * 20); }
.term-bar.w25 { height: calc(0.9px * 25); }
.term-bar.w30 { height: calc(0.9px * 30); }
.term-bar.w35 { height: calc(0.9px * 35); }
.term-bar.w40 { height: calc(0.9px * 40); }
.term-bar.w45 { height: calc(0.9px * 45); }
.term-bar.w50 { height: calc(0.9px * 50); }
.term-bar.w55 { height: calc(0.9px * 55); }
.term-bar.w60 { height: calc(0.9px * 60); }
.term-bar.w65 { height: calc(0.9px * 65); }
.term-bar.w70 { height: calc(0.9px * 70); }
.term-bar.w75 { height: calc(0.9px * 75); }
.term-bar.w80 { height: calc(0.9px * 80); }
.term-bar.w85 { height: calc(0.9px * 85); }
.term-bar.w90 { height: calc(0.9px * 90); }
.term-bar.w95 { height: calc(0.9px * 95); }
.term-bar.w100 { height: calc(0.9px * 100); }

/* لوحة التحكم: «رصد المصطلحات» (public/admin/media-terms.js) */
.mt-h { font-size: 16px; margin: 18px 0 8px; }
.mt-label { font-size: 15px; }
.mt-forms { margin: 0; font-size: 12.5px; }
.mt-stats { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.mt-stats p { margin: 0; }
.mt-weeks { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: flex-end; height: 58px; }
.mt-weeks li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; width: 22px; }
.mt-weeks small { font-size: 10.5px; color: var(--muted); }
.mt-bar { display: block; width: 14px; background: var(--accent); border-radius: 3px 3px 0 0; }
.mt-outlets { margin: 0; font-size: 13px; }
.mt-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px 14px; padding-top: 8px; }
.mt-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; }
.mt-bar-top { margin-bottom: 4px; align-items: center; }

/* ——— «أيام باكستان» (src/days-pages.js، public/days.js) ——— */
.dy-kind { align-self: flex-start; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--chip); color: var(--fg); }
.arc-hero .dy-kind { background: rgba(255,255,255,.16); color: #fff; }
.dy-k-national { background: var(--accent-soft); color: var(--accent); }
.dy-k-person { background: var(--lang-en-bg); color: var(--lang-en); }
.dy-k-religious { background: var(--lang-ur-bg); color: var(--lang-ur); }
.dy-k-sensitive { background: var(--bad-bg); color: var(--bad-fg); }
.dy-k-observed { background: var(--chip); color: var(--muted); }
.dy-ur { margin: 0; font-size: 1.15em; }
.dy-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; font-size: 14px; }
.dy-away { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.arc-hero .dy-away { background: #fff; color: var(--pk-green); }
.dy-away.now { background: #F4C430; color: #1D1600; }
.dy-hijri { opacity: .85; }
.dy-tag { display: inline-flex; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: rgba(255,255,255,.16); }
.dy-tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.dy-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 7; border-radius: 14px;
  background: radial-gradient(circle at 70% 30%, var(--ph-a), var(--ph-b)); color: var(--ph-ink); font-size: 64px; }
.dy-hero-fig { margin: 0; }
.dy-hero-fig img { display: block; width: 100%; height: auto; max-height: 520px; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 16px; background: var(--chip); }
.dy-hero-fig figcaption, .dy-gallery figcaption { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 0; font-size: 13px; color: var(--muted); }
.dy-hero-fig figcaption small, .dy-gallery figcaption small { font-size: 12px; }
.dy-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dy-link { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.dy-text p { margin: 0 0 10px; line-height: 2; }
.dy-text p:last-child { margin-bottom: 0; }
.dy-tl { list-style: none; margin: 0; padding: 0 14px 0 0; border-right: 2px solid var(--accent-soft); display: flex; flex-direction: column; gap: 12px; }
.dy-tl li { position: relative; display: flex; flex-direction: column; gap: 2px; line-height: 1.9; }
.dy-tl li::before { content: ''; position: absolute; right: -21px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.dy-tl b { color: var(--accent); font-size: 14px; }
.dy-quote { margin: 0; padding: 22px 24px; border-radius: 16px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 8px; }
.dy-quote p { margin: 0; font-size: 20px; }
.dy-quote p[lang="ur"] { font-size: 22px; line-height: 2.3; }
.dy-quote .dy-quote-ar { font-size: 16px; color: var(--muted); }
.dy-quote cite { font-style: normal; font-size: 13px; color: var(--muted); }
.dy-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dy-gallery figure { margin: 0; }
.dy-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--chip); }
.dy-harvest, .dy-sources { margin: 0; padding: 0 18px 0 0; display: flex; flex-direction: column; gap: 8px; line-height: 1.9; }
.dy-harvest small a { margin-inline-start: 2px; }
.dy-preview { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; }
/* /days */
.dy-next { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.dy-next-img, .dy-card-img { display: block; min-width: 0; }
.dy-next-img img, .dy-next-img .dy-ph { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.dy-next-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; line-height: 1.9; }
.dy-next-body > b { font-family: var(--font-head); font-size: 28px; line-height: 1.5; }
.dy-next-k { color: var(--accent); font-weight: 700; font-size: 13px; }
.dy-next .dy-tag { background: var(--chip); }
.dy-next:hover b { color: var(--accent); }
.dy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dy-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); }
.dy-card-img img, .dy-card-img .dy-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; font-size: 34px; }
.dy-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.dy-card-body b { font-size: 16px; line-height: 1.6; }
.dy-card-body small { color: var(--muted); font-size: 13px; }
.dy-card-body .dy-away { padding: 0 8px; font-size: 12px; }
.dy-card:hover b { color: var(--accent); }
.dy-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dy-cal > li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dy-cal h3 { margin: 0 0 8px; font-size: 16px; }
.dy-cal h3 small { color: var(--muted); font-weight: 400; }
.dy-cal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dy-cal a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: 1.6; }
.dy-cal a:hover span { color: var(--accent); }
.dy-cal time { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dy-cal a span { flex: 1; min-width: 0; }
.dy-cal .dy-kind { flex: none; font-size: 11px; padding: 1px 8px; }
/* القصة المصورة: ملء الشاشة فوق الصفحة */
.dy-story-page .site-footer, .dy-story-page .topbar, .dy-story-page .arc-hero { display: none; }
.dy-story-page .arc-wrap { max-width: none; padding: 0; min-height: 0; }
.dy-story { position: fixed; inset: 0; z-index: 50; background: #04140C; color: #fff; overflow: hidden; }
.dy-slide { position: absolute; inset: 0; }
.dy-slide > img, .dy-slide > .dy-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; animation: dy-zoom 7s linear both; }
.dy-story.still .dy-slide > img, .dy-story.paused .dy-slide > img { animation-play-state: paused; }
.dy-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,12,.55) 0, rgba(4,20,12,0) 30%, rgba(4,20,12,.25) 55%, rgba(4,20,12,.92) 100%); }
.dy-slide-in { position: absolute; z-index: 4; pointer-events: none; inset: auto 0 0; max-width: 680px; margin: 0 auto; padding: 0 24px 56px; display: flex; flex-direction: column; gap: 10px; line-height: 1.9; font-size: 18px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.dy-slide-in h2 { margin: 0; font-family: var(--font-head); font-size: 38px; line-height: 1.4; }
.dy-slide-in h3 { margin: 0; font-size: 15px; color: #F4C430; letter-spacing: 0; }
.dy-slide-in p, .dy-slide-in blockquote { margin: 0; }
.dy-slide-in ol { margin: 0; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.dy-slide-in ol b { color: #CFE8D9; margin-inline-end: 6px; }
.dy-slide-in blockquote p[lang="ur"] { font-size: 24px; line-height: 2.3; }
.dy-slide-in cite { font-style: normal; font-size: 14px; opacity: .8; }
.dy-slide-in .btn, .dy-slide-in a { pointer-events: auto; align-self: flex-start; }
.dy-bars { position: absolute; z-index: 4; top: 12px; inset-inline: 12px; display: flex; gap: 4px; }
.dy-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.dy-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.dy-bars i.done b { width: 100%; }
.dy-bars i.now b { animation: dy-bar 7s linear both; }
.dy-story.paused .dy-bars i.now b { animation-play-state: paused; }
.dy-story.still .dy-bars i.now b { animation: none; width: 100%; }
.dy-close { position: absolute; z-index: 5; top: 24px; left: 14px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; text-decoration: none; font-size: 18px; }
.dy-prev, .dy-nextbtn { position: absolute; z-index: 3; top: 0; bottom: 0; width: 40%; border: 0; background: transparent; cursor: pointer; }
.dy-prev { right: 0; }
.dy-nextbtn { left: 0; }
.dy-prev:focus-visible, .dy-nextbtn:focus-visible { outline: 3px solid #F4C430; outline-offset: -6px; }
@keyframes dy-bar { from { width: 0; } to { width: 100%; } }
@keyframes dy-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .dy-slide > img { animation: none; } }
/* كبسولة الصفحة الرئيسية */
.day-capsule { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, var(--pk-green), #0B5D33); color: #fff; text-decoration: none; }
.day-capsule[hidden] { display: none; }
.day-capsule img { flex: none; width: 96px; height: 60px; object-fit: cover; border-radius: 10px; }
.day-capsule .dc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.7; }
.day-capsule small { color: #F4C430; font-weight: 700; font-size: 12px; }
.day-capsule b { font-size: 17px; }
.day-capsule .dc-s { font-size: 13px; opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-capsule .dc-go { flex: none; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--pk-green); font-weight: 700; font-size: 13px; }
.day-capsule.is-eve { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.day-capsule.is-eve small { color: var(--accent); }
.day-capsule.is-eve .dc-go { background: var(--accent-soft); color: var(--accent); }
.day-capsule:hover .dc-go { text-decoration: underline; }
@media (max-width: 640px) {
  .dy-next { grid-template-columns: 1fr; }
  .dy-next-img img, .dy-next-img .dy-ph { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .dy-next-body { padding: 16px; }
  .dy-next-body > b { font-size: 23px; }
  .dy-hero-fig img { aspect-ratio: 4 / 3; border-radius: 12px; }
  .dy-quote { padding: 16px; }
  .dy-quote p { font-size: 18px; }
  .dy-slide-in { padding: 0 18px 40px; font-size: 16px; }
  .dy-slide-in h2 { font-size: 30px; }
  .day-capsule { gap: 10px; padding: 8px 10px; }
  .day-capsule img { width: 64px; height: 48px; }
  .day-capsule .dc-s { display: none; }
  .day-capsule .dc-go { padding: 4px 10px; font-size: 12px; }
}

/* ——— «شخصيات باكستان» (src/people-pages.js، public/people.js) ——— */
.pp-cat { align-self: flex-start; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--chip); color: var(--fg); }
.arc-hero .pp-cat { background: rgba(255,255,255,.16); color: #fff; }
.pp-c-founders, .pp-c-nishan { background: var(--accent-soft); color: var(--accent); }
.pp-c-politics { background: var(--lang-en-bg); color: var(--lang-en); }
.pp-c-lit, .pp-c-art { background: var(--lang-ur-bg); color: var(--lang-ur); }
.pp-en { margin: 0; font-family: var(--font-en); opacity: .85; }
.pp-ai { margin: 10px 0 0; font-size: 13px; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 10px; }
.pp-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px;
  background: radial-gradient(circle at 70% 30%, var(--ph-a), var(--ph-b)); color: var(--ph-ink); font-size: 64px; font-family: var(--font-head); }
.pp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pp-filters .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pp-filters .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pp-filters small { opacity: .75; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); }
.pp-card-img { display: block; }
.pp-card-img img, .pp-card-img .pp-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 0; font-size: 44px; }
.pp-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pp-card-body b { font-size: 16px; line-height: 1.6; }
.pp-card-body small { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.pp-card-body .pp-hot { color: var(--accent); font-weight: 700; }
.pp-card:hover b { color: var(--accent); }
.pp-offices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-offices a { display: inline-flex; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; }
.pp-offices a:hover { color: var(--accent); border-color: var(--accent); }
.pp-top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 8px; }
.pp-fig { margin: 0; }
.pp-fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 16px; background: var(--chip); }
.pp-fig figcaption { padding: 6px 2px 0; font-size: 12px; color: var(--muted); }
.pp-facts { display: flex; flex-direction: column; gap: 16px; }
.pp-kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; line-height: 1.9; }
.pp-kv dt { color: var(--muted); font-size: 14px; }
.pp-kv dd { margin: 0; }
.pp-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin: 10px 0 16px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.pp-bars i { flex: 1; min-width: 0; background: var(--accent); border-radius: 3px 3px 0 0; }
.pp-bars.small { height: 34px; margin: 0; min-width: 140px; }
.pp-bars i.h0 { height: 2%; }
.pp-bars i.h1 { height: 10%; }
.pp-bars i.h2 { height: 20%; }
.pp-bars i.h3 { height: 30%; }
.pp-bars i.h4 { height: 40%; }
.pp-bars i.h5 { height: 50%; }
.pp-bars i.h6 { height: 60%; }
.pp-bars i.h7 { height: 70%; }
.pp-bars i.h8 { height: 80%; }
.pp-bars i.h9 { height: 90%; }
.pp-bars i.h10 { height: 100%; }
.pp-mix { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--chip); }
.pp-mix i { display: block; height: 100%; }
.pp-mix i.w5 { width: 5%; }
.pp-mix i.w10 { width: 10%; }
.pp-mix i.w15 { width: 15%; }
.pp-mix i.w20 { width: 20%; }
.pp-mix i.w25 { width: 25%; }
.pp-mix i.w30 { width: 30%; }
.pp-mix i.w35 { width: 35%; }
.pp-mix i.w40 { width: 40%; }
.pp-mix i.w45 { width: 45%; }
.pp-mix i.w50 { width: 50%; }
.pp-mix i.w55 { width: 55%; }
.pp-mix i.w60 { width: 60%; }
.pp-mix i.w65 { width: 65%; }
.pp-mix i.w70 { width: 70%; }
.pp-mix i.w75 { width: 75%; }
.pp-mix i.w80 { width: 80%; }
.pp-mix i.w85 { width: 85%; }
.pp-mix i.w90 { width: 90%; }
.pp-mix i.w95 { width: 95%; }
.pp-mix i.w100 { width: 100%; }
.pp-mix i.s-pk, .pp-legend i.s-pk { background: var(--s-en); }
.pp-mix i.s-world, .pp-legend i.s-world { background: var(--s-wd); }
.pp-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.pp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.pp-legend small { color: var(--muted); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pp-chips .chip small { opacity: .7; }
.pp-wb { color: var(--muted); font-size: 12px; }
.pp-report { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.pp-report summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.pp-report-form { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; max-width: 640px; }
.pp-report-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pp-report-form select, .pp-report-form textarea, .pp-report-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.pp-report-form .btn { align-self: flex-start; }
.pp-updated { margin-top: 14px; }
.pp-holders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-holders li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.pp-holder-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.pp-holder { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.pp-holder:hover b { color: var(--accent); }
.pp-holder-img { flex: none; width: 48px; }
.pp-holder-img img, .pp-holder-img .pp-ph { display: block; width: 48px; height: 48px; object-fit: cover; object-position: center 20%; border-radius: 50%; font-size: 20px; aspect-ratio: 1; }
.pp-holder-t { color: var(--muted); font-size: 13.5px; }
.pp-compare-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 18px; }
.pp-compare-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; flex: 1 1 200px; }
.pp-compare-form select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.pp-compare td .chip { margin: 2px; display: inline-flex; }
.pp-story-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; font-size: 13px; min-height: 30px; }
.pp-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pp-chip:hover { background: rgba(255,255,255,.26); }
.pp-suggest { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.pp-suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--accent-soft); border-radius: 12px; background: var(--accent-soft); color: inherit; text-decoration: none; }
.pp-suggest-item img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pp-suggest-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.7; }
.pp-suggest-item small { color: var(--muted); }
.pp-suggest-item em { flex: none; font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
.arc-person-filter { margin: 0; font-size: 14px; }
.pp-capsule { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.pp-capsule img { width: 60px; height: 60px; border-radius: 50%; object-position: center 20%; }
.pp-capsule small { color: var(--accent); }
.pp-capsule .dc-go { background: var(--accent-soft); color: var(--accent); }
/* لوحة التحكم */
.pp-log { margin: 0; padding: 0 18px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.8; }
.pp-report-text { margin: 0; max-width: 420px; white-space: pre-line; font-size: 13.5px; line-height: 1.8; }
@media (max-width: 640px) {
  .pp-top { grid-template-columns: 1fr; }
  .pp-fig { max-width: 260px; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pp-holders li { grid-template-columns: 28px minmax(0, 1fr); }
  .pp-holder-t { grid-column: 2; }
  .pp-suggest-item em { display: none; }
  .pp-capsule img { width: 48px; height: 48px; }
}

/* ——— الإعلانات (ads.js) ———
   كل إعلان معنون «إعلان»، بمساحة محجوزة بنسبة صورته فلا تقفز الصفحة، وبعيد عن الأزرار بهامش واضح.
   العريض شريط بعرض المحتوى كله بأقل ارتفاع: 1200×90 من عرض 640، و320×50 على الهاتف، ووسم «إعلان» فوق زاويته.
   البطاقة: 300×250 بين بطاقات الأخبار */
.ad-slot[hidden] { display: none; }
.ad-slot { margin: 20px 0; }
.ad-home-top { margin: 12px 0 18px; }
.ad { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-tag { align-self: flex-start; font-size: 11.5px; color: var(--muted); letter-spacing: 0; line-height: 1; }
.ad-link { display: block; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--chip); }
.ad-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-wide { display: block; }
.ad-wide .ad-tag { position: absolute; top: 4px; inset-inline-start: 6px; z-index: 1; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .9); color: #3a4540; font-size: 10.5px; }
.ad-wide .ad-link { border-radius: 8px; aspect-ratio: 320 / 50; }
@media (min-width: 640px) { .ad-wide .ad-link { aspect-ratio: 1200 / 90; } }
.ad-card { height: 100%; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.ad-card .ad-link { max-width: 336px; aspect-ratio: 300 / 250; }
.ad-by { align-self: flex-end; font-size: 12px; color: var(--muted); }
.ad-google.ad-card { min-height: 280px; }
.ad-google .adsbygoogle { width: 100%; }
/* شريط Google: ارتفاع محدد فتختار Google إعلانا أفقيا بقدره في وسطه */
.adsbygoogle.ad-g-strip { width: 100%; height: 50px; }
@media (min-width: 640px) { .adsbygoogle.ad-g-strip { height: 90px; } }
.ad-in-grid { margin: 0; }
.ad-in-list { list-style: none; }
/* المتصفحات بلا aspect-ratio: كتلة compat تحجز النسبة بـ::before، والصورة داخل <picture> فتثبت الصورة نفسها */
@supports not (aspect-ratio: 1) { .ad-link > picture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
/* معاينة المدير بأمثلة وهمية (?ads=demo) */
.ad-demo-g { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; border: 2px dashed #8ab4f8; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--chip) 12px, var(--chip) 24px); color: var(--fg); }
.ad-demo-logo { font-family: Arial, sans-serif; font-size: 20px; color: #1a73e8; }
.ad-demo-g small { color: var(--muted); font-size: 12px; }
.ad-wide .ad-demo-g { flex-direction: row; gap: 12px; padding: 0 12px; }
.ad-wide .ad-demo-logo { font-size: 15px; }
@media (max-width: 639px) { .ad-wide .ad-demo-g small { display: none; } .ad-wide .ad-demo-g { font-size: 12px; gap: 8px; } }
.ad-demo-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 14px; border-radius: 12px; background: #17201B; color: #fff; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.ad-demo-bar a { color: #cfe8d8; text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.ad-demo-bar a.on { background: #fff; color: #17201B; }

/* قائمة آخر الأخبار التي يكتبها الخادم في الرئيسية لمحركات البحث وزواحف الذكاء الاصطناعي؛ يستبدلها app.js بالبطاقات */
.ssr-home { grid-column: 1 / -1; padding: 8px 4px; }
.ssr-home h2 { font-size: 1.15rem; margin: 0 0 10px; }
.ssr-home ol { margin: 0; padding: 0 20px 0 0; display: grid; gap: 8px; }
.ssr-home li { line-height: 1.7; }
.ssr-home a { color: inherit; font-weight: 600; text-decoration: none; }
.ssr-home a:hover { text-decoration: underline; }
.ssr-home small { color: var(--muted, #667); font-weight: 400; }
.ssr-home .ssr-topics { margin: 16px 0 6px; line-height: 2; font-size: .92rem; }

/* نبذة القصة في رأس صفحتها: من بيانات التغطية، أو من الذكاء الاصطناعي مع التنبيه على ذلك */
.sp-lead { margin: 12px 0 0; max-width: 72ch; line-height: 1.85; font-size: 1rem; opacity: .95; }
.sp-lead-ai { display: block; margin-top: 4px; font-size: .8rem; opacity: .75; }

/* «موجز الخبر» في لوحة الخبر: بشكل صندوق العنوان الأصلي فوقه (الأخضر الفاتح)، وبلون ذهبي فاتح جدا يميزه عنه.
   المزج مع --surface يجعله فاتحا في الوضع الفاتح وخافتا في الداكن، والعنوان ذهبي يميل إلى لون النص فيقرأ في الوضعين */
.story-brief { background: color-mix(in srgb, #C9962E 10%, var(--surface)); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.story-brief small { color: color-mix(in srgb, #B07A12 72%, var(--fg)); font-size: 12px; font-weight: 600; }
.story-brief p { margin: 0; font-size: 14.5px; line-height: 1.75; font-weight: 500; }
/* «كيف غطته الدول»: القصة نفسها في إعلام كل دولة */
.story-countries { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.story-countries h3 { margin: 0; font-size: 14px; color: var(--accent); }
.sc-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; }
.sc-row ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-row a { color: var(--fg); }
.sc-row small { color: var(--muted); }

/* سطر المصدر والوقت الموحد (src/when.js وpublic/when.js): الاسم معزول، والفاصل والوقت عنصران مستقلان */
.src-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.src-line .src-sep { color: var(--muted); }
.src-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* نص بلا ترجمة عربية: وسم لغته، والنص معزول فلا يقلب محاذاة السطر */
.lang-tag { font-size: 11px; line-height: 1.6; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.covg-foreign bdi { font-family: var(--font-en, inherit); }

/* «مكتب التقارير» (public/office-ui.js): في لوحة التحكم وفي «مساحتي» */
.of-job:empty { display: none; }
.of-job { padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 8px; font-size: 14px; }
.of-box { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.of-box h2 { margin: 0; font-size: 19px; }
.of-box h3 { margin: 6px 0 0; font-size: 15.5px; color: var(--accent); }
.of-muted { color: var(--muted); font-size: 13.5px; margin: 0; }
.of-bad { color: var(--bad-fg); font-size: 13.5px; margin: 0; }
.of-warn { margin: 0; padding: 4px 10px; border-inline-start: 3px solid var(--sp-warn, #9a5b00); font-size: 13.5px; }
.of-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.of-root .btn.danger, .of-box .btn.danger { border-color: var(--bad-fg); color: var(--bad-fg); background: none; }
.of-access-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.of-access-row > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.of-access-row small { display: block; }
.of-limits summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.of-limits .btn { margin-top: 8px; }
.of-grid2, .of-grid3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.of-field { display: grid; gap: 4px; min-width: 0; }
.of-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.of-hint { color: var(--muted); font-size: 12.5px; }
.of-field input[type="text"], .of-field input[type="search"], .of-field input[type="number"], .of-field input[type="date"], .of-field select, .of-actions select, .of-actions input[type="search"], .of-text, .of-guide, .of-title-input {
  font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; min-width: 0; max-width: 100%; }
.of-title-input { font-size: 19px; font-weight: 700; width: 100%; }
.of-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.of-chip { appearance: none; font: inherit; font-size: 13px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: inherit; cursor: pointer; }
.of-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.of-chip.on.seed { background: var(--accent-soft); color: var(--accent); }
.of-dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.of-dir { appearance: none; font: inherit; font-weight: 600; text-align: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; cursor: pointer; }
.of-dir.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.of-fields { display: grid; gap: 12px; }
.of-mains { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.of-main { appearance: none; font: inherit; text-align: start; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; cursor: pointer; }
.of-main b { font-size: 16px; color: var(--accent); }
.of-main small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.of-main:hover, .of-main:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.of-fine { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.of-fine > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.of-fine[open] { display: grid; gap: 12px; }
.of-brand { display: grid; gap: 10px; margin: 10px 0; }
.of-brand-co { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.of-brand-co[hidden] { display: none; }
.of-logo { display: flex; align-items: center; gap: 10px; }
.of-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.of-talk-list { display: grid; gap: 8px; margin-bottom: 12px; }
.of-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.of-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.of-list { display: grid; gap: 12px; }
.of-card { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; align-content: start; }
.of-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.of-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.of-tag { font-size: 12px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.of-tag.ok { border-color: var(--ok, #1b7a3d); color: var(--ok, #1b7a3d); }
.of-tag.warn { border-color: var(--sp-warn, #9a5b00); color: var(--sp-warn, #9a5b00); }
.of-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; }
.of-meta span + span { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.of-pulse { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.of-spark { display: inline-block; width: 140px; height: 24px; }
.of-spark svg { display: block; width: 100%; height: 100%; }
.of-spark rect { fill: var(--accent); opacity: .75; }
.of-preview:empty { display: none; }
.of-preview { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.of-cert { display: grid; gap: 6px; }
.of-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.of-tiles div { padding: 8px 12px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; }
.of-tiles b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.of-tiles span { color: var(--muted); font-size: 12.5px; }
.of-sample { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 14px; }
.of-sample { list-style: none; padding: 0; }
.of-sample li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.of-sample-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.of-sample li.out a { text-decoration: line-through; color: var(--muted); }
.of-sample .btn { flex: none; }
.of-ed-head { display: grid; gap: 6px; }
.of-err summary { cursor: pointer; color: var(--bad-fg); font-size: 13.5px; }
.of-err pre { white-space: pre-wrap; font-size: 12px; color: var(--muted); direction: ltr; text-align: left; }
.of-status { display: flex; flex-wrap: wrap; gap: 6px; }
.of-secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.of-sec { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.of-sec.k-text { border-inline-start: 3px solid var(--accent); }
.of-sec.off { opacity: .55; }
.of-sec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.of-move { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.of-text { width: 100%; resize: vertical; line-height: 1.8; }
.of-text-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.of-guide { flex: 1 1 240px; }
.of-sticky { position: sticky; bottom: 0; padding: 10px 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 2; }
.of-outlets { display: grid; gap: 4px; }
.of-out-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.of-out-name { font-weight: 600; min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.of-tiers { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.of-cc { width: 4.5em; text-align: center; direction: ltr; font: inherit; font-size: 13px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; }
.of-cc.set { border-color: var(--accent); }
.acct-toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 16px; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--surface); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.acct-toast.show { opacity: 1; }
.acct-toast.bad { background: var(--bad-fg); }

/* ——— «خاص باكستان بالعربية»: شريط الصفحة الرئيسية وصفحات القسم (src/exclusive-pages.js) ——— */
.ex-strip { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ex-strip[hidden] { display: none; }
.ex-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ex-strip-head h2 { margin: 0; font-size: 17px; color: var(--pk-green); }
.ex-strip-head h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #B7893A; vertical-align: middle; }
.ex-strip-all { font-size: 13px; color: var(--muted); text-decoration: none; }
.ex-strip-head .ex-strip-all { margin-inline-start: auto; }
.ex-strip-head { align-items: center; }
.ex-t { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.6; text-wrap: balance; }
.ex-meta { font-size: 12px; color: var(--muted); }
.ex-new { display: inline-block; margin-inline-end: 6px; padding: 0 7px; border-radius: 6px; background: #C0392B; color: #fff; font-family: var(--font-ui); font-size: 11px; font-weight: 700; line-height: 1.8; vertical-align: 2px; }
.ex-noimg { display: grid; align-content: center; padding: 6%; background: linear-gradient(135deg, #013D1C, #0B5D33); color: #fff; font-family: var(--font-head); font-size: 17px; line-height: 1.6; }
.ex-noimg b { font-weight: 700; }
/* البارز والقائمة: القائمة بطول الصورة وتتمرر داخلها */
.ex-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.ex-hero-main { position: relative; display: block; min-height: 320px; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: var(--chip); }
.ex-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ex-in .5s ease-out; }
.ex-hero-cap { position: absolute; inset: auto 0 0 0; padding: 48px 16px 12px; display: grid; gap: 2px; background: linear-gradient(to top, rgba(1, 25, 12, .88), rgba(1, 25, 12, .55) 55%, transparent); }
.ex-hero-cap .ex-t { color: #fff; font-size: 21px; }
.ex-hero-cap .ex-meta { color: #D6E2DA; }
.ex-hero-main .ex-noimg { position: absolute; inset: 0; font-size: 0; }
/* سبعة أخبار في القائمة، والصورة تمتد بطولها فيتساويان بلا تمرير */
.ex-hero-side { min-height: 0; }
.ex-hero-list { margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 2px; }
.ex-hero-list .ex-pad { visibility: hidden; }
.ex-hero-list.ex-page-in { animation: ex-in .5s ease-out; }
.ex-hero-list button { width: 100%; text-align: start; border: 0; border-inline-start: 3px solid transparent; background: none; color: var(--fg); font: inherit; padding: 7px 10px; border-radius: 8px; display: grid; gap: 1px; cursor: pointer; }
.ex-hero-list button:hover { background: var(--chip); }
.ex-hero-list button[aria-current="true"] { background: var(--accent-soft); border-inline-start-color: var(--pk-green); border-start-start-radius: 0; border-end-start-radius: 0; }
.ex-hero-list .ex-t { font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.ex-prog { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ex-prog i { display: block; height: 100%; background: var(--pk-green); animation: ex-prog 6s linear forwards; transform-origin: right; }
@keyframes ex-prog { from { width: 0; } to { width: 100%; } }
@keyframes ex-in { from { opacity: .3; } to { opacity: 1; } }
/* البطاقات المتحركة */
.ex-arrows { display: inline-flex; gap: 6px; }
.ex-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 17px; line-height: 1; cursor: pointer; }
.ex-arrow:hover { border-color: var(--pk-green); color: var(--pk-green); }
.ex-car { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.ex-car::-webkit-scrollbar { display: none; }
/* أربع بطاقات كاملة في العرض، بلا جزء من الخامسة */
.ex-car-card { flex: 0 0 calc((100% - 42px) / 4); min-width: 0; scroll-snap-align: start; display: grid; gap: 6px; align-content: start; color: var(--fg); text-decoration: none; }
.ex-car-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--chip); }
.ex-car-card .ex-t { font-size: 15px; }
.ex-car-card:hover .ex-t { color: var(--pk-green); }
.ex-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ex-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .3s; }
.ex-dots button[aria-current="true"] { width: 22px; background: var(--pk-green); }
/* الفسيفساء */
.ex-mos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.ex-mos-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: var(--chip); transition: opacity .35s ease; }
.ex-mos-tile.ex-out, .ex-mos-box.ex-out { opacity: 0; }
.ex-mos-tile.big { grid-column: span 2; grid-row: span 2; }
.ex-mos-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ex-mos-tile .ex-noimg { font-size: 0; }
.ex-mos-tile:hover .ex-mos-img { transform: scale(1.04); }
.ex-mos-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; display: grid; gap: 1px; background: linear-gradient(to top, rgba(1, 25, 12, .9), transparent); }
.ex-mos-cap .ex-t { color: #fff; font-size: 14px; }
.ex-mos-tile.big .ex-mos-cap .ex-t { font-size: 22px; }
.ex-mos-cap .ex-meta { color: #D6E2DA; }
.ex-mos-rest { margin-top: 12px; overflow: hidden; }
.ex-belt { display: flex; gap: 12px; will-change: transform; }
/* ثلاث بطاقات لا أربع، ليظهر العنوان كاملا (2026-11-14) */
.ex-belt .ex-mos-box { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; min-height: 0; }
.ex-mos-box.ex-leave { opacity: .35; transition: opacity .9s ease; }
.ex-mos-box { display: grid; gap: 4px; align-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; min-height: 92px; transition: opacity .35s ease, border-color .2s; }
.ex-mos-box:hover { border-color: var(--pk-green); }
.ex-mos-layer { position: absolute; inset: 0; display: block; transition: opacity 1.4s ease, transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.ex-mos-layer.ex-in-fade { opacity: 0; }
.ex-mos-layer.ex-in-slide { transform: translateX(-100%); }
.ex-mos-layer.ex-gone-slide { transform: translateX(100%); }
.ex-m-zoom .ex-mos-img, .ex-m-mix .ex-mos-img { animation: ex-kb 18s ease-in-out infinite alternate; }
@keyframes ex-kb { from { transform: scale(1); } to { transform: scale(1.12); } }
.ex-belt .ex-mos-box { grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; }
/* العنوان كاملا بلا قطع، ويملأ السطر الأول حتى نهاية البطاقة ثم يكمل في الثاني (لا توازن بين السطرين) */
.ex-belt .ex-t { line-height: 1.6; text-wrap: wrap; }
.ex-mos-thumb { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--chip); }
.ex-mos-thumb.ex-noimg { padding: 0; font-size: 0; }
.ex-mos-txt { display: grid; gap: 4px; min-width: 0; }
.ex-mos-rest .ex-t { font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; }
.ex-mos-box:hover .ex-t { color: var(--pk-green); }
@media (max-width: 760px) {
  .ex-hero { grid-template-columns: 1fr; }
  .ex-hero-main { min-height: 0; aspect-ratio: 16 / 9; }
  .ex-hero-cap .ex-t { font-size: 18px; }
  .ex-mos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .ex-mos-tile.big .ex-mos-cap .ex-t { font-size: 18px; }
  .ex-belt .ex-mos-box { flex-basis: 100%; }
  .ex-car-card { flex-basis: calc((100% - 14px) / 2); }
}
@media (prefers-reduced-motion: reduce) { .ex-hero-img, .ex-hero-list, .ex-prog i, .ex-mos-img, .ex-dots button, .ex-mos-tile, .ex-mos-box, .ex-mos-layer { animation: none; transition: none; } }
/* صفحة خبر «خاص»: سطر المعلومات قطعا مسماة، وأدوات المشاركة والنسخ والتحليل، و«أهم ما في الخبر» قبل النص */
.ex-kicker { margin: 0; color: #E3C77E; font-weight: 700; font-size: 14px; }
.arc-hero .ex-kicker { color: #E3C77E; }
.ex-meta-bar { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ex-meta-bar li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13.5px; line-height: 1.7; }
.ex-meta-k { color: #E3C77E; font-size: 12px; font-weight: 700; }
.ex-meta-bar small { color: rgba(255, 255, 255, .7); font-size: 11.5px; }
.arc-hero .ex-upd { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.ex-article { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 2; }
.ex-article p { margin: 0 0 1em; }
.ex-preview { padding: 8px 12px; border-radius: 8px; background: #FFF4D6; color: #6b4d00; font-size: 14px; }
.ex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.ex-article > .ex-tools:last-child { margin: 26px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
.ex-tools-l { color: var(--muted); font-weight: 600; margin-inline-end: 2px; }
.ex-net, .ex-tool { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ex-net:hover, .ex-tool:hover { border-color: var(--pk-green); color: var(--pk-green); }
.ex-tool.done { background: var(--accent-soft); border-color: var(--pk-green); color: var(--pk-green); }
.ex-analyze { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; border: 0; background: var(--pk-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ex-analyze:hover { background: var(--brand-hover); }
.ex-analyze[disabled] { opacity: .6; cursor: wait; }
.ex-analyze small { padding: 1px 8px; border-radius: 999px; background: #C9A961; color: #2b2208; font-size: 11px; font-weight: 700; }
.ex-keys, .ex-corr, .ex-sources, .ex-an { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; line-height: 1.9; }
.ex-keys h2, .ex-corr h2, .ex-sources h2, .ex-an h2 { margin: 0 0 8px; font-family: var(--font-ui); font-size: 16px; color: var(--pk-green); }
.ex-corr ul { margin: 0; padding-inline-start: 20px; }
/* «أهم ما في الخبر» تحت الصورة مباشرة: لون مؤسسي هادئ، والنقاط داخل الإطار لا على حافته */
.ex-keys { margin: 0 0 22px; padding: 16px 20px; border: 1px solid color-mix(in oklab, var(--pk-green) 14%, var(--line)); border-radius: 12px; background: color-mix(in oklab, var(--pk-green) 4%, var(--surface)); }
.ex-keys h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ex-keys h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #C9A961; }
.ex-keys ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-keys li { position: relative; padding-inline-start: 18px; text-align: start; line-height: 1.85; }
.ex-keys li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--pk-green); }
.ex-corr { border-color: #E8C98A; background: #FFFBF0; }
.ex-fig { margin: 0 0 16px; }
.ex-fig img { width: 100%; height: auto; border-radius: 12px; }
.ex-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* الفقرة الأولى (ملخص الخبر): إطار هادئ بلون الموقع الخفيف وحشو داخلي، والنص بحجم القراءة نفسه تقريبا */
.ex-text .ex-lead { margin: 0 0 22px; padding: 16px 20px; border-radius: 12px; background: color-mix(in oklab, var(--pk-green) 5%, var(--surface)); border: 1px solid color-mix(in oklab, var(--pk-green) 12%, var(--line)); border-inline-start: 3px solid #C9A961; font-weight: 600; font-size: 17.5px; line-height: 1.95; color: var(--fg); }
/* زر «بطاقة الملخص» أسفل صندوق الملخص، ولوحتها (public/summary-card.js): البطاقة عمودية ٩:١٦ فتعرض بارتفاع محدود وسط اللوحة */
.ex-text .ex-lead .ex-lead-tools { display: flex; justify-content: flex-end; margin-top: 10px; }
.ex-card-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; font: 600 13.5px/1.4 var(--font-ui); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pk-green, var(--accent)); color: var(--pk-green, var(--accent)); background: var(--surface); cursor: pointer; }
.ex-card-btn svg { width: 15px; height: 15px; flex: none; }
.ex-card-btn:hover { background: color-mix(in oklab, var(--pk-green, var(--accent)) 8%, var(--surface)); }
.smc .smc-box { padding: 4px 18px 18px; }
.smc .smc-tpls { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
.smc .smc-canvas { width: auto; max-width: 100%; height: min(58vh, 560px); aspect-ratio: 9 / 16; margin: 4px auto 0; }
.smc .shr-tpl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.smc .shr-acts .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.smc .smc-more { margin-top: 8px; }
.smc .smc-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.smc .smc-source { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13.5px; cursor: pointer; }
.smc .smc-source input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.smc .smc-pub { padding: 10px 0 0; }
.smc .smc-pub .shr-lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
/* نص الخبر والتحليل مضبوط من الطرفين */
.ex-text p, .ex-an p { text-align: justify; text-justify: inter-word; }
.ex-outlets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.ex-outlets a { padding: 4px 14px; border-radius: 999px; background: var(--chip); color: var(--pk-green); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.ex-outlets a:hover { background: var(--pk-green); color: #fff; }
.ex-story { margin: 10px 0 0 !important; font-size: 14px; }
.ex-story a { color: var(--muted); }
.ex-an { border-color: var(--brand-line); }
.ex-an-sec h3, .ex-an-watch h3, .ex-an-src h3 { margin: 16px 0 4px; font-family: var(--font-ui); font-size: 15.5px; font-weight: 700; color: var(--fg); }
.ex-an-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 8px; border-bottom: 2px solid #C9A961; }
.ex-an-head h2 { margin: 0 !important; }
.ex-an-unit { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ex-an-sum { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); }
.ex-an-sum b { display: block; color: var(--pk-green); font-size: 14px; }
.ex-an-sum p { margin: 2px 0 0; font-weight: 600; }
.ex-an-refs { margin-inline-start: 4px; font-size: 12px; white-space: nowrap; }
.ex-an-refs a { display: inline-block; min-width: 18px; margin-inline-start: 2px; padding: 0 4px; border-radius: 4px; background: #F5EEDF; color: #6B4E16; text-align: center; text-decoration: none; line-height: 1.6; }
.ex-an-watch ul { margin: 0; padding-inline-start: 20px; }
.ex-an-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ex-an-table { width: 100%; min-width: 560px; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; line-height: 1.7; }
.ex-an-table th { padding: 7px 10px; background: var(--pk-green); color: #fff; font-weight: 700; text-align: start; white-space: nowrap; }
.ex-an-table td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.ex-an-table .ex-an-g td { background: var(--accent-soft); color: var(--pk-green); font-weight: 700; font-size: 12.5px; padding: 5px 10px; }
.ex-an-table a { color: var(--fg); font-weight: 600; text-decoration: none; }
.ex-an-table a:hover { color: var(--pk-green); text-decoration: underline; }
.ex-an-table small { display: block; color: var(--muted); font-size: 11.5px; unicode-bidi: plaintext; text-align: start; }
.ex-an-n { text-align: center; color: #A9822F; font-weight: 700; }
.ex-an-o { font-weight: 700; color: var(--pk-green); }
.ex-an-d { color: var(--muted); font-size: 12.5px; }
.ex-an-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.ex-tool-main { background: var(--pk-green); border-color: var(--pk-green); color: #fff; }
.ex-tool-main:hover { background: var(--brand-hover); color: #fff; }
.ex-an-sec p { margin: 0; }
.ex-an-note { color: var(--muted); margin: 0 0 10px !important; }
.ex-an-wait { animation: ex-in 1.2s ease-in-out infinite alternate; }
.ex-an-err { color: var(--bad-fg); }
.ex-an-foot { margin: 12px 0 0 !important; color: var(--muted); font-size: 13px; }
.ex-an-go { display: inline-block; padding: 7px 18px; border-radius: 999px; background: var(--pk-green); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-tags span { padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
/* إعلان X1 فوق صورة الخبر وبحجمها (src/ads.js) */
.ad-slot.ad-hero { margin: 0 0 16px; }
.ad-hero { display: block; }
.ad-hero .ad-tag { position: absolute; top: 6px; inset-inline-start: 8px; z-index: 1; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .9); color: #3a4540; font-size: 11px; }
.ad-hero .ad-link { aspect-ratio: 1200 / 675; border-radius: 12px; }
.adsbygoogle.ad-g-hero { width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 640px) {
  .ex-analyze { margin-inline-start: 0; }
  .ex-meta-bar li { font-size: 12.5px; }
}
.sp-ex a { font-weight: 700; }


/* ——— صفحات القراءة الطويلة بعرض الرئيسية: النص بعرض قراءة مريح، وفهرس جانبي ثابت (src/doc-frame.js) ——— */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.doc-grid.doc-solo { grid-template-columns: minmax(0, 1fr); }
.doc-body { min-width: 0; max-width: 820px; }
.doc-side { position: sticky; top: 16px; border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.doc-side nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.7; }
.doc-side b { font-family: var(--font-head); font-size: 15px; color: var(--accent); margin-bottom: 6px; }
.doc-side a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 8px; }
.doc-side a:hover, .doc-side a:focus-visible { color: var(--accent); background: var(--chip); outline: none; }
.doc-wrap h2[id] { scroll-margin-top: 16px; }
@media (min-width: 981px) { .doc-grid:not(.doc-solo) .doc-toc { display: none; } }
@media (max-width: 980px) { .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .doc-side { display: none; } }
/* تصميم صفحات القراءة الطويلة: رأس واحد، وأقسام مرقمة، وفهرس يبرز القسم المقروء */
.doc-hero { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: 30px; line-height: 1.45; color: var(--accent); }
.doc-hero .doc-updated { display: inline-block; margin: 10px 0 0 !important; padding: 2px 12px; border-radius: 999px; background: var(--chip); font-size: 12.5px; }
.doc-hero .doc-lead { margin: 18px 0 0; padding-block: 4px; padding-inline: 18px 0; background: none; border-radius: 0; border-inline-start: 3px solid var(--pk-green); font-size: 17.5px; line-height: 2.05; color: var(--fg); }
.doc-body { text-align: justify; text-justify: inter-word; }
.doc-body h1, .doc-body h2, .doc-body h3, .doc-side, .doc-mtoc { text-align: start; }
.doc-sec { padding: 26px 0 24px; border-bottom: 1px solid var(--line); }
.doc-sec:last-child { border-bottom: 0; padding-bottom: 4px; }
.doc-wrap .doc-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; border: 0; font-size: 21px; line-height: 1.5; }
.doc-n, .doc-tn { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--pk-green); color: #fff; font-family: var(--font-head); font-weight: 700; line-height: 1; }
.doc-n { width: 34px; height: 34px; font-size: 16px; }
.doc-wrap .doc-sec h3 { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; font-family: var(--font-head); font-size: 17px; color: var(--accent); }
.doc-sec h3 .doc-n { width: 26px; height: 26px; font-size: 13px; background: var(--chip); color: var(--accent); border: 1px solid var(--line); }
.doc-wrap .doc-sec h2.doc-part { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 24px; color: var(--accent); }
.doc-kicker { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.doc-sec-part { padding-top: 34px; }
.doc-wrap .doc-sec p { margin: 8px 0; }
.doc-wrap .doc-sec ul { list-style: none; margin: 8px 0; padding: 0; }
.doc-wrap .doc-sec li { position: relative; margin: 8px 0; padding-inline-start: 22px; }
.doc-wrap .doc-sec li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .95em; width: 7px; height: 7px; border-radius: 2px; background: var(--pk-green); transform: rotate(45deg); }
.doc-side { top: 20px; }
.doc-side nav { gap: 1px; }
.doc-side a, .doc-mtoc a { display: flex; align-items: center; gap: 9px; }
.doc-tn { width: 22px; height: 22px; font-size: 11.5px; background: var(--chip); color: var(--muted); }
.doc-side a.on { color: var(--accent); background: var(--chip); font-weight: 600; }
.doc-side a.on .doc-tn { background: var(--pk-green); color: #fff; }
.doc-side a.doc-tpart, .doc-mtoc a.doc-tpart { font-weight: 700; color: var(--fg); margin-top: 6px; }
.doc-side a.doc-tsub, .doc-mtoc a.doc-tsub { padding-inline-start: 18px; font-size: 13.5px; }
.doc-mtoc { display: none; margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--chip); }
.doc-mtoc summary { cursor: pointer; padding: 10px 14px; font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.doc-mtoc nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 10px; font-size: 14.5px; }
.doc-mtoc a { color: var(--fg); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.doc-wrap .doc-sec h2[id], .doc-wrap .doc-sec h3[id] { scroll-margin-top: 20px; }
@media (max-width: 980px) { .doc-mtoc { display: block; } }
/* عنوان القسم (الخيار أ): شريط أخضر فاتح بعرض العمود، فيه الرقم في دائرة خضراء والعنوان عريضا،
   وعناوين أقسام الشروط المرقمة (h3 تحت أولا وثانيا) بالشريط نفسه. والنص يبدأ تحت العنوان لا تحت الدائرة:
   حشوة الشريط ١٢ + الدائرة ٢٨ + المسافة ١٢ = ٥٢ (شريط نحيف بطلب المستخدم) */
.doc-wrap .doc-sec h2:not(.doc-part), .doc-wrap .doc-sec-part h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 5px 12px; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.5; }
.doc-wrap .doc-sec-part h3 { margin-top: 24px; font-size: 18px; }
.doc-wrap .doc-credit { font-size: 13px; color: var(--muted); }
.doc-wrap .doc-sec h2 .doc-n, .doc-wrap .doc-sec-part h3 .doc-n { width: 28px; height: 28px; font-size: 14px; background: var(--pk-green); color: #fff; border: 0; }
.doc-wrap .doc-sec.doc-sec-num > :not(h2), .doc-wrap .doc-sec.doc-sec-part > :not(h2):not(h3) { margin-inline-start: 52px; }
@media (max-width: 560px) {
  .doc-wrap .doc-sec h2:not(.doc-part), .doc-wrap .doc-sec-part h3 { gap: 10px; padding: 4px 10px; font-size: 17px; }
  .doc-wrap .doc-sec h2 .doc-n, .doc-wrap .doc-sec-part h3 .doc-n { width: 26px; height: 26px; font-size: 13px; }
  .doc-wrap .doc-sec.doc-sec-num > :not(h2), .doc-wrap .doc-sec.doc-sec-part > :not(h2):not(h3) { margin-inline-start: 46px; }
}
@media (max-width: 560px) { .doc-hero h1 { font-size: 25px; } .doc-wrap .doc-sec h2 { font-size: 19px; } .doc-n { width: 30px; height: 30px; font-size: 14px; } .doc-body { text-align: start; } }


/* ——— صفحة «خاص» ‎/exclusive: «الافتتاحية المنقسمة» ثم شبكة بطاقات بأدوات الواجهة (src/exclusive-pages.js: indexPage) ——— */
.ex-front { display: flex; flex-direction: column; gap: 34px; }
.ex-index h2 a, .ex-index h3 a { color: inherit; text-decoration: none; }
.ex-index h2 a:hover, .ex-index h3 a:hover { color: var(--accent); }
.ex-card-m, .ex-lead-m { position: relative; display: block; overflow: hidden; background: var(--chip); }
.ex-card-m img, .ex-lead-m img, .ex-card-m .ex-img-none, .ex-lead-m .ex-img-none { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.ex-card-m { aspect-ratio: 16 / 9; }
.ex-img-none { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ph-a), var(--ph-b)); }
.ex-img-none .logo-mask { width: 46%; background: var(--ph-ink); opacity: .55; }
/* الافتتاحية: أبرز الأخبار تتبدل في إطار واحد؛ الصورة في جهة والخبر في الأخرى (public/exclusive.js) */
.ex-top { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ex-slides { display: grid; }
.ex-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); visibility: hidden; opacity: 0; }
.ex-slide.is-on { visibility: visible; opacity: 1; z-index: 1; }
.ex-lead-m { min-height: 400px; }
.ex-lead-m img, .ex-lead-m .ex-img-none { position: absolute; inset: 0; }
.ex-lead-b { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px 30px 56px; min-width: 0; }
.ex-lead-k { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.ex-lead-k b { color: var(--pro, #A9822F); font-weight: 700; }
.ex-top h2 { margin: 0; font-family: var(--font-head); font-size: 31px; line-height: 1.45; text-wrap: balance; }
.ex-lead-p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.ex-top .ncard-tools { padding: 10px 0 0; }
/* أرقام التبديل أسفل جهة النص: شريط يمتلئ بمدة بقاء الخبر */
.ex-lead-nav { position: absolute; z-index: 2; inset-block-end: 16px; inset-inline-end: 30px; width: calc(5 / 12 * 100% - 60px); display: flex; gap: 6px; align-items: center; }
.ex-dot { flex: 1; appearance: none; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.ex-dot i { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.ex-dot i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.ex-dot.is-on i::after { transform: scaleX(1); }
.ex-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ex-pause { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; font-size: 10px; width: 26px; height: 22px; cursor: pointer; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ex-rot .ex-slide { transition: opacity .9s ease, visibility 0s linear .9s; }
  .ex-rot .ex-slide.is-on { transition: opacity .9s ease, visibility 0s; }
  .ex-rot .ex-slide .ex-lead-m img { transition: transform 7.5s ease-out; transform: scale(1.06); }
  .ex-rot .ex-slide.is-on .ex-lead-m img { transform: scale(1); }
  .ex-rot.is-run .ex-dot.is-on i::after { animation: ex-fill var(--ex-every, 7s) linear forwards; }
}
@keyframes ex-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* الشبكة: ثلاث بطاقات في الصف، بطاقة الواجهة نفسها */
.ex-band-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-head); font-size: 22px; }
.ex-band-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ex-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ex-card-b { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 0; flex: 1; }
.ex-card h3 { margin: 0; font-family: var(--font-head); font-size: 17.5px; line-height: 1.6; }
.ex-card-meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.ex-card .ncard-tools { margin: auto -14px 0; padding: 3px 8px; }
.ex-tools-c .ncard-icon.active { color: var(--pk-green); }
.ex-tools-c .ncard-icon:disabled { opacity: .5; cursor: progress; }
.ex-pager { display: flex; justify-content: center; margin-top: 24px; }
.ex-more-btn { padding: 8px 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ex-more-btn:hover, .ex-more-btn:focus-visible { border-color: var(--accent); outline: none; }
.ex-more-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.ex-copy-tmp { position: fixed; opacity: 0; inset-block-start: 0; }
@media (max-width: 900px) {
  .ex-slide { grid-template-columns: minmax(0, 1fr); }
  .ex-lead-m { min-height: 0; aspect-ratio: 16 / 9; }
  .ex-lead-nav { inset-inline: 16px; width: auto; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ex-lead-b { padding: 18px 16px 52px; gap: 10px; }
  .ex-top h2 { font-size: 23px; }
  .ex-lead-p { font-size: 15px; }
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
}


/* صفحة خبر «خاص» بعرض الإطار: النص ٧٦٠ وعمود «المزيد من خاص» بجانبه */
/* العمود الجانبي ٢٨٠ على الأقل: كان يضيق بين ٩٨٠ و١١٤٠ إلى ١٧٦ فتنزل كلمات العنوان كلمة في كل سطر بجانب الصورة (2026-11-12) */
.ex-art-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(280px, 1fr); gap: 48px; align-items: start; }
.ex-art-grid .ex-article { max-width: none; margin: 0; min-width: 0; }
.ex-art-grid.ex-art-solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.ex-art-side { min-width: 0; }
.ex-art-side .ex-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ex-art-side h2 { margin: 0; font-family: var(--font-head); font-size: 16px; color: var(--accent); }
.ex-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ex-side-list li { border-bottom: 1px solid var(--line); }
.ex-side-list li:last-child { border-bottom: 0; }
.ex-side-list a { display: flex; gap: 12px; padding: 10px 0; color: var(--fg); text-decoration: none; }
.ex-side-list img { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--chip); }
.ex-side-list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-side-list b { font-family: var(--font-head); font-size: 14.5px; line-height: 1.6; font-weight: 600; }
.ex-side-list a:hover b { color: var(--accent); }
.ex-side-list small { font-size: 12px; color: var(--muted); }
.ex-side-all { font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
@media (max-width: 1140px) { .ex-art-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .ex-art-grid .ex-article { max-width: 760px; margin: 0 auto; width: 100%; } .ex-art-side { position: static; max-width: 760px; margin: 0 auto; width: 100%; } }

/* الأعلام في نصوص الأخبار (src/mentions.js): صفحة الشخصية بخط متصل هادئ، والبحث في Google بخط منقط وسهم صغير */
a.mention { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.mention:hover, a.mention:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
a.mention-w { text-decoration-style: dotted; }
a.mention-w::after { content: "↗"; font-size: .7em; margin-inline-start: 2px; color: var(--muted); vertical-align: super; }
.sp-ent a { color: inherit; text-decoration: none; }
.sp-ent a:hover, .sp-ent a:focus-visible { text-decoration: underline; }
.sp-ent-name.mention-w::after { content: "↗"; font-size: .75em; margin-inline-start: 2px; opacity: .7; }

/* ——— «مؤشر العمل الجاري» (public/jobs.js): شارة أسفل يسار الصفحة لما يعد بعد إغلاق نافذة الانتظار ——— */
.jobs { position: fixed; z-index: 49; inset-inline-end: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 10px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--font-ui); }
.jobs[hidden] { display: none; }
.jobs-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding-block: 6px; padding-inline: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font: 600 13.5px/1.4 var(--font-ui); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); cursor: pointer; animation: jobs-in .35s ease-out; }
.jobs-pill:hover { border-color: var(--accent); }
.jobs-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jobs-pill.jobs-done { border-color: var(--accent); color: var(--accent); }
.jobs-pill.jobs-failed { border-color: var(--bad-fg); color: var(--bad-fg); }
.jobs-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; text-align: center; }
.jobs-ring { flex: none; display: block; }
.jobs-track { fill: none; stroke: var(--chip); stroke-width: 3; }
.jobs-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.jobs-spin { transform-origin: 13px 13px; animation: jobs-rot 1.1s linear infinite; }
.jobs-ok { fill: var(--accent); }
.jobs-tick { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jobs-bad { fill: var(--bad-bg); }
.jobs-bang { stroke: var(--bad-fg); stroke-width: 2.2; stroke-linecap: round; }
.jobs-dot { fill: var(--bad-fg); }
.jobs-panel { width: min(320px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); animation: jobs-in .25s ease-out; }
.jobs-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 6px; font-size: 13px; color: var(--muted); }
.jobs-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.jobs-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); }
.jobs-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.jobs-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.jobs-row.jobs-failed small { color: var(--bad-fg); white-space: normal; }
.jobs-go { padding: 2px 10px; border: 1px solid var(--accent); border-radius: 8px; background: none; color: var(--accent); font: 600 12.5px/1.6 var(--font-ui); cursor: pointer; }
.jobs-go:hover { background: var(--accent); color: var(--accent-ink); }
.jobs-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.jobs-x:hover { background: var(--chip); color: var(--fg); }
.jobs-foot { margin: 0; padding: 8px 6px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.jobs-foot a { color: var(--accent); }
.jobs-toast { position: fixed; z-index: 50; bottom: max(70px, calc(env(safe-area-inset-bottom, 0px) + 64px)); inset-inline-end: max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 12px; background: var(--fg); color: var(--bg); font: 600 13.5px/1.5 var(--font-ui); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: jobs-in .3s ease-out; }
.jobs-toast-go { border: 0; background: none; padding: 0; color: var(--bg); font: 700 13.5px/1.5 var(--font-ui); text-decoration: underline; cursor: pointer; }
.jobs-live { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes jobs-rot { to { transform: rotate(360deg); } }
@keyframes jobs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jobs-spin, .jobs-pill, .jobs-panel, .jobs-toast { animation: none; } }
@media print { .jobs, .jobs-toast { display: none; } }

/* ——— «موسوعة باكستان» (src/encyclopedia-pages.js) ——— */
.enc-l[lang="en"] { font-family: var(--font-en); }
.enc-l[lang="ur"] { font-family: var(--font-urdu); line-height: 2.2; }
.enc-hero { display: flex; flex-direction: column; gap: 8px; }
.enc-brand { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 700; text-decoration: none; }
.enc-brand:hover { color: #fff; }
.enc-hero .enc-type { color: var(--count-edge, #E9C46A); font-size: 13px; font-weight: 700; }
.enc-names { display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; }
.enc-names span[lang="en"] { font-family: var(--font-en); }
.enc-names span[lang="ur"] { font-family: var(--font-urdu); }
.enc-meta { font-size: 13px; color: rgba(255, 255, 255, .75) !important; }
.enc-search { display: flex; gap: 8px; max-width: 560px; margin-top: 4px; }
.enc-search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: #17201B; }
.enc-search button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.enc-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.enc-langs a, .enc-langs span { font-size: 13px; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; }
.enc-langs span { background: rgba(255, 255, 255, .18); font-weight: 700; }
.enc-langs a:hover { background: rgba(255, 255, 255, .12); }
.enc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.enc-cat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); background: var(--surface); color: inherit; text-decoration: none; }
.enc-cat b { font-size: 16px; }
.enc-cat small { color: var(--muted); font-size: 12.5px; }
.enc-cat:hover b { color: var(--accent); }
.enc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.enc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.enc-card-img img, .enc-card-img .enc-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--chip); }
.enc-ph { background: linear-gradient(135deg, var(--ph-a), var(--ph-b)) !important; }
.enc-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; }
.enc-card-body b { font-size: 17px; line-height: 1.6; }
.enc-card-lede { color: var(--muted); font-size: 13.5px; line-height: 1.8; text-align: justify; }
.enc-card:hover b { color: var(--accent); }
.enc-type { color: var(--accent); font-size: 12px; font-weight: 700; }
.enc-more { color: var(--accent); font-size: 14px; font-weight: 600; }
.enc-otd { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.enc-otd b { color: var(--accent); margin-inline-end: 8px; }
.enc-otd a { color: inherit; }
.enc-quiz { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; }
.enc-quiz h2 { margin: 0 0 6px; font-size: 18px; }
.enc-quiz-q { margin: 0 0 6px; font-weight: 700; }
.enc-quiz ol { margin: 0 0 8px; padding-inline-start: 22px; line-height: 2; }
.enc-quiz summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.enc-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.enc-col, .enc-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.enc-col small, .enc-link small { color: var(--muted); font-size: 12.5px; }
.enc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; margin: 18px 0; }
.enc-link { background: var(--accent-soft); border-color: transparent; }
.enc-link b { color: var(--accent); font-size: 17px; }
.enc-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 28px; align-items: start; margin: 6px 0 18px; }
.enc-main { min-width: 0; }
.enc-side { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
.enc-fig { margin: 0 0 14px; }
.enc-fig img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 14px; background: var(--chip); }
.enc-fig figcaption { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 0; font-size: 13px; color: var(--muted); }
.enc-fig figcaption a { color: var(--muted); }
.enc-lede { font-size: 19px; line-height: 2; font-weight: 500; text-align: justify; margin: 0 0 16px; }
.enc-toc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; background: var(--surface); display: inline-block; min-width: min(100%, 280px); }
.enc-toc ol { margin: 4px 0 0; padding-inline-start: 22px; line-height: 2; }
.enc-toc a { color: inherit; }
.enc-sec h2 { font-family: var(--font-head); font-size: 23px; margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.enc-sec p { font-size: 17px; line-height: 2.05; text-align: justify; margin: 0 0 10px; }
.enc-l[lang="en"] .enc-sec h2 { font-family: var(--font-en); }
.enc-ref { font-size: 11px; margin-inline-start: 2px; }
.enc-ref a { color: var(--accent); text-decoration: none; }
.enc-info { width: 100%; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; background: var(--surface); overflow: hidden; }
.enc-info caption { text-align: start; font-weight: 700; padding: 0 2px 6px; }
.enc-info th, .enc-info td { white-space: normal; font-size: 14px; line-height: 1.8; padding: 8px 12px; vertical-align: top; }
.enc-info th { width: 38%; background: var(--chip); color: var(--muted); }
.enc-info tr:last-child th, .enc-info tr:last-child td { border-bottom: 0; }
.enc-hl { border-radius: 12px; padding: 12px 16px; background: var(--accent-soft); }
.enc-hl ul { margin: 6px 0 0; padding-inline-start: 18px; line-height: 1.9; font-size: 14.5px; }
.enc-rows { list-style: none; margin: 12px 0; padding: 0; border-inline-start: 2px solid var(--line); }
.enc-rows li { position: relative; display: flex; flex-direction: column; padding: 4px 18px 12px; line-height: 1.9; }
.enc-rows li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.enc-rows b { color: var(--accent); font-size: 14px; }
.enc-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.enc-news a { color: inherit; font-weight: 600; }
.enc-news small { color: var(--muted); }
.enc-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.enc-tags a { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--chip); color: inherit; text-decoration: none; }
.enc-srcs h2 { font-size: 19px; margin: 18px 0 6px; }
.enc-srcs ol { margin: 0; padding-inline-start: 24px; line-height: 2; font-size: 14px; }
.enc-srcs a { color: var(--accent); overflow-wrap: anywhere; }
.enc-srcs small { color: var(--muted); }
.enc-cite, .enc-report { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; background: var(--surface); }
.enc-cite summary, .enc-report summary { cursor: pointer; font-weight: 700; }
.enc-cite p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; }
.enc-cite span { overflow-wrap: anywhere; }
.enc-report-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-width: 560px; }
.enc-report-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; }
.enc-report-form select, .enc-report-form textarea, .enc-report-form input { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.enc-report-form button { align-self: flex-start; font: inherit; font-weight: 700; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.enc-report-msg { margin: 0; font-size: 13.5px; color: var(--muted); }
.enc-ai { font-size: 13px; color: var(--muted); }
.enc-preview { background: var(--warn-bg); color: var(--warn-fg); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.enc-fallback { background: var(--chip); padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.enc-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.enc-subs a { font-size: 13.5px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: inherit; text-decoration: none; background: var(--surface); }
.enc-subs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.enc-index { columns: 3 260px; column-gap: 28px; }
.enc-index section { break-inside: avoid; margin-bottom: 14px; }
.enc-index h2 { font-size: 20px; color: var(--accent); margin: 0 0 4px; }
.enc-index ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.enc-index a { color: inherit; }
.enc-index small { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) {
  .enc-art { grid-template-columns: minmax(0, 1fr); }
  .enc-side { position: static; order: -1; }
  .enc-lede { font-size: 17.5px; }
}
@media print { .enc-report, .enc-search, .enc-langs { display: none; } .enc-side { position: static; } }

.enc-srcs .enc-tier { display: inline-block; font-size: .72rem; line-height: 1.5; padding: 0 .45em; border-radius: 4px; background: var(--line); color: var(--muted); vertical-align: middle; }
.enc-srcs .enc-tier-official { background: var(--lang-ar-bg); color: var(--lang-ar); }
.enc-srcs .enc-tier-reference { background: var(--lang-en-bg); color: var(--lang-en); }
.enc-srcs .enc-tier-press { background: var(--lang-ur-bg); color: var(--lang-ur); }

/* ——— فضاء «كشمير» (/kashmir، src/kashmir-space.js): الصفحة نفسها بتدرج كشمير العنابي وشعاره ——— */
body.space-kashmir, html[data-space="kashmir"] body.admin {
  --pk-green: #6d2c42; --accent: #a34263; --accent-ink: #FFFFFF; --count-bg: #a34263; --lang-ar: #a34263;
  --accent-soft: #fbf1f5; --ph-a: #833650; --ph-b: #4d1f2f; --ph-ink: #f4e5ea;
  --brand-hover: #b54b6f; --brand-light: #e9c9d4; --brand-line: #c46d8b;
}
@media (prefers-color-scheme: dark) {
  body.space-kashmir, html[data-space="kashmir"] body.admin { --accent: #d498ac; --accent-ink: #2a1219; --accent-soft: #3a1a26; --ph-a: #3a1a26; --ph-b: #2e111b; --lang-ar: #d498ac; }
}
.logo.ks-logo img { width: auto; height: clamp(86px, 22vw, 124px); margin: 0 auto; }
.ncard-tag.ks-in-tag { background: #e9c9d4; color: #4d1f2f; }
.ncard-media .ncard-tag.ks-camp { inset-inline-start: auto; inset-inline-end: 10px; background: #e9c9d4; color: #4d1f2f; border-color: transparent; }
.ncard-tag[class*="tp-ks-"] { background: rgba(109, 44, 66, .92); }
.ks-orig { margin: 2px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.55; unicode-bidi: plaintext; text-align: right; }
/* «الحدث الواحد بروايتين»: قصة غطاها المعسكران، العنوانان متقابلان (public/kashmir.js) */
.ks-vs { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ks-vs > header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; padding: 10px 16px; background: var(--accent-soft); }
.ks-vs h2 { margin: 0; font-size: 17px; color: var(--accent); }
.ks-vs > header span { font-size: 13px; color: var(--muted); }
.ks-vs-nav { display: flex; gap: 6px; }
.ks-vs-nav button { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 2px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.ks-vs-nav button:disabled { opacity: .45; cursor: default; }
.ks-vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ks-vs-grid > div { padding: 12px 16px; display: grid; gap: 4px; align-content: start; border-top: 3px solid #6d2c42; }
.ks-vs-grid > .ks-in { border-top-color: #d498ac; border-inline-start: 1px solid var(--line); }
.ks-vs-grid b { font-size: 13px; color: var(--muted); }
.ks-vs-grid a { font-weight: 600; font-size: 16px; line-height: 1.6; color: var(--fg); text-decoration: none; }
.ks-vs-grid a:hover { text-decoration: underline; }
.ks-vs-grid small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
/* المحتوى المرجعي تحت الأخبار: كشمير في سطور، والخط الزمني، والوثائق، والأيام والأعلام */
.ks-ref { margin: 22px 0 8px; display: grid; gap: 14px; }
.ks-ref > header h2 { margin: 0; font-size: 20px; }
.ks-ref > header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ks-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.ks-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.ks-card h3 { margin: 0; font-size: 16px; color: var(--accent); }
.ks-card p { margin: 0; font-size: 14.5px; line-height: 1.8; text-align: justify; }
.ks-card ul, .ks-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ks-card li { font-size: 14px; line-height: 1.7; }
.ks-card li b { color: var(--accent); margin-inline-end: 6px; }
.ks-card li small, .ks-card .ks-src { display: block; color: var(--muted); font-size: 12.5px; }
.ks-card a { color: inherit; }
.ks-card li > a { text-decoration: none; font-weight: 600; }
.ks-card li > a:hover { text-decoration: underline; }
.ks-tl li { border-inline-start: 2px solid var(--brand-light, #e9c9d4); padding-inline-start: 10px; }
.ks-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ks-facts div { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }
.ks-facts b { display: block; font-size: 17px; color: var(--accent); }
.ks-facts span { font-size: 12.5px; color: var(--muted); }
.ks-more { justify-self: start; font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* «مرصد كشمير» في لوحة التحكم (public/admin/kashmir.js) */
.ksx-h { margin: 18px 0 8px; font-size: 15px; }
.ksx-alert { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ksx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 24px; }
.ksx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ksx-bars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.ksx-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksx-track { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ksx-track i { display: block; height: 100%; background: #a34263; border-radius: 6px; }
.ksx-bars li.ksx-r-in .ksx-track i { background: #d498ac; }
.ksx-days { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ksx-day { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; min-width: 4px; }
.ksx-day i { display: block; }
.ksx-pk { background: #6d2c42; }
.ksx-in { background: #d498ac; }
.ksx-intl { background: #9aa3ad; }
.ksx-key { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ksx-k { background: none; }
.ksx-k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
.ksx-k.ksx-pk::before { background: #6d2c42; }
.ksx-k.ksx-in::before { background: #d498ac; }
.ksx-k.ksx-intl::before { background: #9aa3ad; }
.ksx-edit { display: grid; gap: 8px; padding: 10px 0; max-width: 760px; }
.ksx-edit input, .ksx-edit textarea { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.ksx-add { cursor: pointer; font-weight: 700; color: var(--accent); margin: 8px 0; }
.ksx-list { margin: 0 0 10px; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.8; }

/* الرواية الباكستانية تحت الادعاء الهندي في البطاقة (src/india-claims.js) */
.pk-reply { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.pk-reply b { color: var(--pk-green, #01411c); }
.pk-reply a { color: var(--fg); text-decoration: none; font-weight: 600; position: relative; z-index: 2; }
.pk-reply a:hover { text-decoration: underline; }

/* ——— الشريط العلوي والتذييل الموحدان (src/site-chrome.js، الخيار «أ»، 2026-11-20) ——— */
.tb-a .topbar-inner { min-height: 62px; gap: 18px; }
.tb-a .topbar-links { flex: 1 1 auto; }
.tb-a .topbar-links a { font-size: 15px; font-weight: 500; padding: 8px 11px; }
.tb-a .topbar-links a[aria-current="page"] { font-weight: 600; }
.tb-a .topbar-links a.tb-enc { color: #fff; border-radius: 0; }
.tb-a .topbar-links a.tb-enc:hover { border-radius: 0; }
.tb-a .account { gap: 14px; }
.tb-a .account .acct-btn { background: none; border: 0; padding: 0; border-radius: 0; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.tb-a .account .acct-btn:hover { background: none; color: #fff; text-decoration: underline; }
.tb-a .account .acct-cta, .tb-a .account .acct-cta.pro-cta { order: 2; background: var(--count-edge); color: #1d1606; border: 0; font-size: 14px; font-weight: 700; padding: 7px 17px; }
.tb-a .account .acct-cta:hover { background: var(--count-edge); filter: brightness(1.08); }
.tb-a .acct-cta .long { display: none; }
/* المشترك: الشريط يتسع للأقسام الخمسة في سطر واحد؛ الاسم وشارة ملف الدولة في «مساحتي»، ويبقى الجرس و«مساحتي» و«خروج» */
.tb-a .account .acct-name, .tb-a .acct-strip .acct-chip { display: none; }
.tb-a .acct-strip { display: inline-flex; align-items: center; gap: 0; margin: 0; }
.tb-a .topbar-admin { font-size: 12.5px; padding: 4px 12px; }
.tb-a .acct-cta .short { display: inline; }
/* القائمة المنسدلة للهاتف: details بلا سكربت */
.tb-menu { display: none; }
.tb-menu summary { list-style: none; cursor: pointer; display: grid; place-content: center; gap: 4px; width: 36px; height: 36px; border-radius: 8px; }
.tb-menu summary::-webkit-details-marker { display: none; }
.tb-menu summary i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.tb-menu[open] summary { background: rgba(255, 255, 255, .14); }
.tb-drawer { position: absolute; inset-inline: 0; top: 100%; display: grid; gap: 14px; padding: 12px 18px 18px; background: var(--surface); color: var(--fg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(0, 0, 0, .18); }
.tb-group { display: grid; }
.tb-group b { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.tb-group a { color: var(--fg); text-decoration: none; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tb-group a[aria-current="page"] { color: var(--accent); font-weight: 700; }
@media (max-width: 1080px) {
  .tb-a .topbar-links a { padding: 8px 8px; font-size: 14px; }
  .tb-a .topbar-inner { gap: 12px; }
}
@media (max-width: 900px) {
  .tb-menu { display: block; }
  .tb-a .topbar-links { display: none; }
  .tb-a .topbar-inner { flex-wrap: wrap; row-gap: 6px; padding: 6px 14px 10px; min-height: 0; }
  .tb-a .account .acct-btn, .tb-a .acct-name { display: none; }
  .tb-a .account .acct-cta { font-size: 13px; padding: 5px 13px; }
}
.ft-a .footer-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.ft-a .footer-col h2 { color: var(--count-edge); border-bottom: 0; padding-bottom: 0; }
.ft-a .footer-col a.ft-pro { color: var(--count-edge); font-weight: 700; }
.ft-a .footer-brand p:empty { display: none; }
.ft-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ft-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.ft-social a:hover { background: rgba(255, 255, 255, .12); }
.ft-social svg { width: 16px; height: 16px; }
.ft-note { max-width: var(--page-w); margin: 0 auto; padding: 0 20px 16px; font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .66); }
.ft-a .footer-bottom { align-items: center; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-legal a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 13px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); }
.ft-legal a:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
body.space-kashmir .ft-a .footer-brand img { width: 150px; }
@media (max-width: 760px) {
  .ft-a .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-a .footer-brand { grid-column: 1 / -1; }
}

/* ——— «موسوعة باكستان» الجامعة: بطاقات اليوم والأبواب والأقاليم والخط الزمني (src/encyclopedia-doors.js) ——— */
.hub-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.hub-card h2 { margin: 0; font-size: 15px; color: var(--accent); }
.hub-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.hub-go { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.hub-go::after { content: ' ←'; }
.hub-go:hover { text-decoration: underline; }
.hub-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.7; }
.hub-events b { color: var(--accent); margin-inline-end: 4px; }
.hub-events a, .hub-feat, .hub-person { color: var(--fg); text-decoration: none; }
.hub-person { display: flex; align-items: center; gap: 12px; }
.hub-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.hub-person span, .hub-feat { display: grid; gap: 4px; }
.hub-person b, .hub-feat b { font-size: 17px; font-family: var(--font-head); }
.hub-person small, .hub-feat small { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.hub-person:hover b, .hub-feat:hover b, .hub-events a:hover { color: var(--accent); }
.hub-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-door { position: relative; display: grid; gap: 4px; padding: 16px 18px; padding-inline-end: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; }
a.hub-door:hover { border-color: var(--accent); }
.hub-door b { font-size: 16px; }
.hub-door small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hub-n { position: absolute; inset-inline-end: 16px; top: 16px; font-weight: 700; font-size: 15px; color: var(--accent); }
.hub-door.soon { border-style: dashed; opacity: .78; }
.hub-soon { position: absolute; inset-inline-end: 14px; top: 15px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.hub-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-regions a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.hub-regions a:hover { border-color: var(--accent); color: var(--accent); }
.hub-regions small { color: var(--muted); font-weight: 500; }
.enc-ment { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.enc-more-line { margin: 18px 0 0; }
.tl-jump { margin-bottom: 18px; }
.tl, .tl ol { list-style: none; margin: 0; padding: 0; }
.tl-dec { margin-bottom: 22px; }
.tl-dec h2 { font-size: 17px; margin: 0 0 10px; color: var(--accent); }
.tl-i { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.tl-i b { font-size: 14px; color: var(--muted); }
.tl-i a.tl-self { font-size: inherit; color: var(--fg); font-weight: 600; white-space: normal; }
.tl-i small { color: var(--muted); font-size: 12.5px; }
.tl-i a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) {
  .hub-today { grid-template-columns: 1fr; }
  .hub-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hub-doors { grid-template-columns: 1fr; }
  .tl-i { grid-template-columns: 1fr; gap: 2px; }
}

/* ——— «لسان الأدوات» (public/side-drawer.js): لسان على الحافة يفتح درج «أدواتي». لونه من لون الفضاء (--pk-green) ——— */
.sd-root { position: fixed; inset: 0; z-index: 70; pointer-events: none; font-family: var(--font-ui); }
.sd-root[hidden] { display: none; }
.sd-root > * { pointer-events: auto; }
.sd-ear { position: fixed; left: 0; top: 46%; width: 30px; height: 104px; margin-top: -52px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; z-index: 3; transition: left .32s cubic-bezier(.2, .8, .2, 1), right .32s cubic-bezier(.2, .8, .2, 1); }
.sd-ear-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: #c9a24f; filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, .25)); }
.sd-root[data-ear="space"] .sd-ear-shape { fill: var(--pk-green); }
.sd-ear-chev { position: absolute; left: 5px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; transition: transform .3s ease; }
.sd-root.open .sd-ear-chev { transform: rotate(180deg); }
.sd-dot { position: absolute; left: 14px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: #e2563f; box-shadow: 0 0 0 2px #fff; }
.sd-ear:focus-visible { outline: 2px solid #c9a24f; outline-offset: 2px; }
.sd-root[data-edge="right"] .sd-ear { left: auto; right: 0; }
.sd-root[data-edge="right"] .sd-ear-shape { transform: scaleX(-1); }
.sd-root[data-edge="right"] .sd-ear-chev { left: auto; right: 5px; transform: rotate(180deg); }
.sd-root[data-edge="right"].open .sd-ear-chev { transform: none; }
.sd-root[data-edge="right"] .sd-dot { left: auto; right: 14px; }
.sd-scrim { position: fixed; inset: 0; background: rgba(6, 20, 17, .36); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; z-index: 1; }
.sd-root.open .sd-scrim { opacity: 1; visibility: visible; }
.sd-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 320px; max-width: 86vw; z-index: 2; display: flex; flex-direction: column; color: #fff; direction: rtl;
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .3)), var(--pk-green); border-radius: 0 22px 22px 0; box-shadow: 10px 0 30px rgba(0, 0, 0, .25);
  transform: translateX(-104%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s; }
.sd-root[data-edge="right"] .sd-drawer { left: auto; right: 0; border-radius: 22px 0 0 22px; box-shadow: -10px 0 30px rgba(0, 0, 0, .25); transform: translateX(104%); }
.sd-root.open .sd-drawer { transform: none; visibility: visible; }
.sd-root.open .sd-ear { left: min(320px, 86vw); }
.sd-root[data-edge="right"].open .sd-ear { left: auto; right: min(320px, 86vw); }
html.sd-lock, html.sd-lock body { overflow: hidden; }
.sd-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 6px; }
.sd-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; color: #fff; }
.sd-hbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09); color: #fff; cursor: pointer; }
.sd-hbtn[aria-pressed="true"] { background: #c9a24f; border-color: #c9a24f; color: #1d1606; }
.sd-ic { display: inline-flex; flex: none; width: 18px; height: 18px; color: #e3c77d; }
.sd-ic svg { width: 100%; height: 100%; }
.sd-hbtn .sd-ic { color: inherit; width: 16px; height: 16px; }
.sd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 22px; display: flex; flex-direction: column; gap: 16px; }
.sd-sec { display: flex; flex-direction: column; gap: 8px; }
.sd-sec h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; color: #e3c77d; }
.sd-sec h3 small { color: rgba(255, 255, 255, .65); font-weight: 500; font-size: 12px; }
.sd-list { display: flex; flex-direction: column; gap: 6px; }
.sd-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .09); color: #fff; font: inherit; font-size: 14px; text-align: start; text-decoration: none; cursor: pointer; }
.sd-row:hover, .sd-tile:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.sd-row .sd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-row .sd-t small { font-size: 12px; color: rgba(255, 255, 255, .72); }
.sd-n { flex: none; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: #c9a24f; color: #1d1606; }
.sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .09); color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: center; text-decoration: none; cursor: pointer; }
.sd-tile .sd-ic { width: 26px; height: 26px; }
.sd-tile.add { border-style: dashed; }
.sd-x { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e2563f; color: #fff; font-size: 13px; line-height: 1; border: 2px solid var(--pk-green); }
.sd-lock { position: absolute; top: 5px; left: 8px; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.sd-grid.editing .sd-tile:not(.add):not(.locked) { animation: sd-wob .5s ease-in-out infinite alternate; }
@keyframes sd-wob { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.sd-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.sd-link { align-self: flex-start; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .09); color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.sd-chip b { font-size: 11px; padding: 0 6px; border-radius: 999px; background: #c9a24f; color: #1d1606; }
.sd-notices { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.sd-notices ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sd-notices li { display: flex; flex-direction: column; font-size: 13px; line-height: 1.6; }
.sd-notices li a { color: #fff; text-decoration: none; }
.sd-notices li.unread a { font-weight: 700; }
.sd-notices li small { font-size: 11.5px; color: rgba(255, 255, 255, .65); }
.sd-acts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sd-toc { list-style: none; margin: 0 0 4px; padding: 0 12px 0 0; display: flex; flex-direction: column; gap: 2px; border-right: 2px solid rgba(255, 255, 255, .2); }
.sd-toc button { width: 100%; padding: 4px 6px; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; text-align: start; cursor: pointer; border-radius: 6px; }
.sd-toc button:hover { background: rgba(255, 255, 255, .1); }
.sd-read { display: flex; gap: 8px; }
.sd-read button { flex: 1; padding: 6px 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .09); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sd-read button:disabled { opacity: .4; cursor: default; }
.sd-invite .sd-row { border-color: rgba(227, 199, 125, .5); }
.sd-hint { position: fixed; left: 38px; top: 46%; margin-top: -18px; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); z-index: 3; }
.sd-hint button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: inherit; cursor: pointer; line-height: 1; }
.sd-root[data-edge="right"] .sd-hint { left: auto; right: 38px; }
.sd-root.open .sd-hint { display: none; }
.sd-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: calc(100vw - 32px); padding: 7px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 13px; }
.sd-toast[hidden] { display: none; }
/* حجم النص من قسم «القراءة»: نص المقالات والأخبار وحده */
html[data-sd-fs="0"] main :is(p, dd, .enc-art li) { font-size: .93em; }
html[data-sd-fs="2"] main :is(p, dd, .enc-art li) { font-size: 1.1em; }
html[data-sd-fs="3"] main :is(p, dd, .enc-art li) { font-size: 1.2em; }
@media (prefers-reduced-motion: reduce) { .sd-ear, .sd-drawer, .sd-scrim, .sd-ear-chev { transition: none; } .sd-grid.editing .sd-tile { animation: none; } }
@media print { .sd-root { display: none; } }
.sd-row:disabled { opacity: .55; cursor: default; }
.sd-sub { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); margin-top: 4px; }
/* المرحلة الثانية: اشتراكي وحصتي وقنوات التنبيه للمشترك */
.sd-plan { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .14); color: #fff; }
.sd-plan.soon { border-color: rgba(227, 199, 125, .6); }
.sd-plan .sd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sd-plan .sd-t small { font-size: 12px; color: rgba(255, 255, 255, .75); }
.sd-btn { flex: none; display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; border: 0; background: #e3c77d; color: #1d1606; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sd-btn:disabled { opacity: .55; cursor: default; }
.sd-btn.danger { background: #e2563f; color: #fff; }
.sd-quota { display: flex; flex-direction: column; gap: 5px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .14); color: #fff; }
.sd-quota-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.sd-quota small { font-size: 12px; color: rgba(255, 255, 255, .75); }
.sd-meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.sd-meter span { display: block; height: 100%; border-radius: inherit; background: #e3c77d; }
.sd-meter.full span { background: #e2563f; }
.sd-chan { display: flex; flex-direction: column; gap: 6px; }
.sd-toggle small { flex: none; font-size: 12px; color: rgba(255, 255, 255, .75); }
.sd-sw { flex: none; position: relative; width: 30px; height: 17px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.sd-sw::after { content: ''; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: right .15s; }
.sd-toggle[aria-checked="true"] .sd-sw { background: #e3c77d; }
.sd-toggle[aria-checked="true"] .sd-sw::after { right: 15px; }
.sd-quiet { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.sd-quiet label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.sd-quiet select { height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #fff; color: #1a1a1a; font: inherit; font-size: 13px; }
.sd-quiet .sd-acts { align-items: center; width: 100%; }
/* للمدير: الإجراءات السريعة وحالة الموقع */
.sd-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); color: #fff; font-size: 13px; }
.sd-form.warn { border: 1px solid rgba(226, 86, 63, .7); }
.sd-form p { margin: 0; line-height: 1.7; }
.sd-form textarea, .sd-form input { width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #fff; color: #1a1a1a; font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; }
.sd-form .sd-acts { align-items: center; }
.sd-orig { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.sd-pulse { display: flex; flex-direction: column; gap: 6px; }
.sd-health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-health a { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; color: #fff; font-size: 13.5px; text-decoration: none; }
.sd-health a:hover { background: rgba(255, 255, 255, .1); }
.sd-health .sd-t { flex: 1; }
.sd-health small { font-size: 12px; color: rgba(255, 255, 255, .75); }
.sd-led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 3px rgba(76, 195, 138, .2); }
.sd-health .warn .sd-led { background: #f2b544; box-shadow: 0 0 0 3px rgba(242, 181, 68, .22); }
/* شريط المعاينة كزائر */
.sd-preview { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 7px 8px 7px 16px; border-radius: 999px; background: #1d1606; color: #f4ebd0; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.sd-preview button { padding: 4px 14px; border-radius: 999px; border: 0; background: #e3c77d; color: #1d1606; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sd-root.open .sd-preview { display: none; }


/* ——— صفحة الرواية الواحدة (/contested/249): الخلاصة في الرأس، والروايات بألوان ثابتة (v0 ذهبي، v1 أخضر، v2 أزرق، v3 أحمر)،
   و«من نشر أولاً» بأعمدة ثابتة فتصطف شارات الروايات في عمود واحد ——— */
.cxp-preview { margin: 0 0 10px; display: block; width: fit-content; font-size: 12.5px; font-weight: 700; color: #3D2C05; background: #F6E3A8; padding: 2px 12px; border-radius: 8px; }
.cxp-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.cxp-open { font-size: 12px; font-weight: 700; background: #E9C46A; color: #3D2C05; padding: 0 10px; border-radius: 999px; line-height: 1.9; }
.cxp-tldr { margin: 14px 0 4px; max-width: 980px; padding: 14px 18px; border-inline-start: 4px solid #E9C46A; background: rgba(255, 255, 255, .07); border-start-end-radius: 12px; border-end-end-radius: 12px; }
.cxp-tldr-k { display: block; font-size: 12.5px; font-weight: 700; color: #E9C46A; margin-bottom: 4px; }
.cxp-tldr p { margin: 0; color: #fff; font-size: 1.08rem; line-height: 1.95; font-weight: 500; }
.cxp-cardbtn { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; padding: 6px 14px; cursor: pointer; }
.cxp-cardbtn span { color: #E9C46A; }
.cxp-cardbtn:hover { background: rgba(255, 255, 255, .1); }
.cxp-cardbtn:focus-visible { outline: 2px solid #E9C46A; outline-offset: 2px; }
.sp { --cxv0: var(--sp-gold); --cxv0-bg: var(--sp-gold-soft); --cxv1: var(--accent); --cxv1-bg: var(--sp-green-soft); --cxv2: var(--sp-blue); --cxv2-bg: var(--sp-blue-soft); --cxv3: var(--sp-warn); --cxv3-bg: var(--sp-warn-soft); }
.cxp-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.cxp-side { --c: var(--cxv0); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cxp-side.v1 { --c: var(--cxv1); } .cxp-side.v2 { --c: var(--cxv2); } .cxp-side.v3 { --c: var(--cxv3); }
.cxp-side-k { font-size: 12.5px; font-weight: 700; color: var(--c); }
.cxp-side-c { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.75; }
.cxp-side-m { font-size: 13px; color: var(--muted); line-height: 1.75; }
.sp-card > .sp-verdict + .sp-verdict { margin-top: 8px; }
.cxp-grp { flex-wrap: wrap; border-inline-start: 4px solid var(--cxv0); }
.cxp-grp.v1 { border-inline-start-color: var(--cxv1); } .cxp-grp.v2 { border-inline-start-color: var(--cxv2); } .cxp-grp.v3 { border-inline-start-color: var(--cxv3); }
.cxp-grp-c { font-size: 13px; font-weight: 600; color: var(--fg); flex: 1 1 260px; min-width: 0; }
.cxp-out { text-decoration: none; }
.cxp-out:hover { text-decoration: underline; text-underline-offset: 4px; }
.cxp-go { color: var(--accent); font-weight: 700; }
.cxp-race-cols, .cxp-race li:not(.cxp-day) { display: grid; grid-template-columns: 80px minmax(0, 1fr) 96px 150px; gap: 12px; align-items: center; }
.cxp-race-cols, .cxp-race { max-width: 820px; }
.cxp-race-cols { margin-top: 14px; padding: 0 10px 6px; border-bottom: 2px solid var(--accent); font-size: 12px; font-weight: 700; color: var(--muted); }
.cxp-race { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 14px; }
.cxp-race li:not(.cxp-day) { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.cxp-race li.first { background: var(--sp-gold-soft); border-radius: 8px; font-weight: 600; }
.cxp-race time { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.cxp-o { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.cxp-race small { color: var(--muted); font-size: 12.5px; }
.cxp-day { padding: 12px 10px 4px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.cxp-v { justify-self: center; display: inline-flex; justify-content: center; min-width: 76px; font-size: 12px; font-weight: 700; line-height: 1.9; padding: 0 10px; border-radius: 999px; color: var(--cxv0); background: var(--cxv0-bg); border: 1px solid color-mix(in oklab, var(--cxv0) 30%, transparent); }
.cxp-v.v1 { color: var(--cxv1); background: var(--cxv1-bg); border-color: color-mix(in oklab, var(--cxv1) 30%, transparent); }
.cxp-v.v2 { color: var(--cxv2); background: var(--cxv2-bg); border-color: color-mix(in oklab, var(--cxv2) 30%, transparent); }
.cxp-v.v3 { color: var(--cxv3); background: var(--cxv3-bg); border-color: color-mix(in oklab, var(--cxv3) 30%, transparent); }
.cxp-gone { display: block; font-size: 12px; color: var(--muted); }
.cxp-more summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 4px 0 8px; }
.cxp-p { margin: 0 0 12px; font-size: .95rem; line-height: 1.85; }
@media (max-width: 640px) {
  .cxp-tldr p { font-size: 1rem; }
  .cxp-race-cols { display: none; }
  .cxp-race li:not(.cxp-day) { grid-template-columns: 64px minmax(0, 1fr) auto; row-gap: 2px; }
  .cxp-race small { grid-column: 2 / 4; }
}

/* «سجل الروايات المتعارضة» (/contested): حالات مرقمة بوضع واحد، مفتوحة في الأعلى، والسجل في ملفاته بسطر لكل حالة */
.cr-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 999px; line-height: 1.9; white-space: nowrap; }
.cr-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cr-st.open { color: var(--cx1); background: var(--cx1-bg); }
.cr-st.denied { color: var(--cx2); background: var(--cx2-bg); }
.cr-st.retitled, .cr-st.closed { color: var(--cx3); background: var(--cx3-bg); }
.cr-st.agreed { color: var(--accent); background: var(--accent-soft); }
.cr-st.wrong { color: var(--cx4); background: var(--cx4-bg); }
.cr-no { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.cr-meta { font-size: 13px; color: var(--muted); }
.cr-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-btns .btn { display: inline-flex; align-items: center; text-decoration: none; }
.cr-open { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.cr-oc { border: 1px solid var(--line); border-inline-start: 4px solid var(--cx1); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cr-oc-top { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cr-oc h3 { margin: 0; font-family: var(--font-head); font-size: 20px; line-height: 1.6; text-wrap: balance; }
.cr-oc p { margin: 0; line-height: 1.9; }
.cr-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cr-tools[hidden] { display: none; }
.cr-row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cr-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-seg button { appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 2px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cr-seg button span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.cr-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cr-seg button[aria-pressed="true"] span { color: inherit; opacity: .8; }
.cr-seg button:focus-visible, .cr-sum:focus-visible, .cr-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-q { margin-inline-start: auto; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); padding: 6px 12px; min-width: min(100%, 260px); }
.cr-file[hidden], .cr-case[hidden] { display: none; }
.cr-file + .cr-file { margin-top: 18px; }
.cr-file-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 16px; }
.cr-file-h span { font-size: 13px; color: var(--muted); font-weight: 500; }
.cr-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cr-case + .cr-case { border-top: 1px solid var(--line); }
.cr-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: 92px minmax(0, 1fr) 170px 18px; gap: 4px 16px; padding: 12px 16px; align-items: start; }
.cr-sum::-webkit-details-marker { display: none; }
.cr-sum.cr-locked { cursor: default; }
.cr-sum.cr-locked:hover { background: none; }
.cr-sum:hover, .cr-case details[open] > .cr-sum { background: var(--chip); }
.cr-sum .cr-no { padding-top: 4px; }
.cr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-kind { font-size: 12px; color: var(--muted); font-weight: 700; }
.cr-main b { font-size: 16px; line-height: 1.7; }
.cr-line { font-size: 14px; color: var(--muted); line-height: 1.8; }
.cr-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.cr-chev { color: var(--muted); padding-top: 4px; transition: transform .15s; }
.cr-case details[open] .cr-chev { transform: rotate(-90deg); }
.cr-detail { padding: 4px 16px 16px; padding-inline-start: 124px; background: var(--chip); display: flex; flex-direction: column; gap: 10px; }
.cr-src { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cr-src li { display: grid; grid-template-columns: 116px 150px 104px minmax(0, 1fr); gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.cr-src .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-src .o { font-weight: 700; }
.cr-src .r { font-size: 12px; font-weight: 700; color: var(--accent); }
.cr-src .t { color: var(--fg); text-decoration: none; }
.cr-src .t:hover { color: var(--accent); text-decoration: underline; }
.cr-more { margin: 0; font-size: 13px; color: var(--muted); }
.cr-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cr-legend { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cr-legend div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.cr-legend dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.cr-rules { margin: 14px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.8; }
.cr-log { list-style: none; margin: 0; padding: 0; }
.cr-log li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; display: flex; flex-direction: column; gap: 2px; }
.cr-log li:first-child { padding-top: 0; }
.cr-log-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.cr-log-h b { color: var(--fg); }
.cxp-kick .cr-no, .cxp-kick .cr-meta { color: inherit; opacity: .85; }
@media (max-width: 860px) {
  .cr-sum { grid-template-columns: minmax(0, 1fr) 18px; }
  .cr-sum .cr-no, .cr-main, .cr-side { grid-column: 1; }
  .cr-sum .cr-no { padding: 0; }
  .cr-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .cr-chev { grid-column: 2; grid-row: 1; }
  .cr-detail { padding-inline-start: 16px; }
  .cr-src li { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-src .d, .cr-src .t { grid-column: 1 / -1; }
  .cr-src .d { order: -1; }
  .cr-two { grid-template-columns: 1fr; }
  .cr-legend div { grid-template-columns: 1fr; gap: 2px; }
  .cr-q { margin-inline-start: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cr-chev { transition: none; } }

/* الشريط العلوي 2026-11-21 (الخيار «أ»): الأقسام في كبسولة داكنة واحدة (خط 13 ووزن 600 وحشوة 4×10)،
   والنشط كبسولة بيضاء، بلا أيقونات؛ و«مساحتي» و«خروج» في «لسان الأدوات» لا في الشريط */
.tb-a .topbar-links { flex: 0 1 auto; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.tb-a .topbar-links a, .tb-a .topbar-links a.tb-enc { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: rgba(255, 255, 255, .74); }
.tb-a .topbar-links a:hover, .tb-a .topbar-links a.tb-enc:hover { background: none; color: #fff; border-radius: 999px; }
/* القسم النشط أبيض حتى عند المرور عليه، والموسوعة كغيرها (كان صنف tb-enc يغلبه عند المرور فيختفي البياض) */
.tb-a .topbar-links a[aria-current="page"], .tb-a .topbar-links a.tb-enc[aria-current="page"], .tb-a .topbar-links a[aria-current="page"]:hover { background: #fff; color: var(--pk-green); }
/* كبسولة زجاجية خفيفة تضم كبسولات الشريط كلها: الأقسام والحساب والفضاءات (على الشاشات الواسعة؛ الهاتف يلتف فلا كبسولة) */
@media (min-width: 901px) {
  /* المسافة حشوة في الشريط لا هامش للكبسولة: الهامش كان يعبر الشريط في صفحات الأرشيف فيظهر شريط فاتح فوقه */
  .topbar.tb-a { padding-block: 9px; }
  .tb-a .topbar-inner { min-height: 0; padding: 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 16px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .tb-a .topbar-inner .acct-cta { padding-block: 5px; }
  .topbar.nav-row.tb-a .topbar-inner { border-radius: 22px; padding: 6px; row-gap: 6px; }
}
.tb-a .topbar-inner { gap: 14px; }
.tb-a .account .acct-btn .long { display: none; } /* «دخول» وحدها بجانب «اشترك»، فيتسع الشريط للأقسام والفضاءات في سطر واحد */
.tb-a .account[data-drawer="on"] .acct-mine { display: none; }
/* «خروج» للمشترك أحمر ظاهر آخر الشريط، و«دخول» للزائر أخضر (2026-11-21) */
.tb-a .account .acct-btn.acct-out { order: 3; background: #b3402f; color: #fff; border: 0; border-radius: 999px; padding: 5px 15px; font-size: 13.5px; font-weight: 700; }
.tb-a .account .acct-btn.acct-out:hover { background: #c94a37; color: #fff; text-decoration: none; }
.tb-a .account .acct-btn:not(.acct-out):not(.acct-mine) { background: #2e8b57; color: #fff; border: 0; border-radius: 999px; padding: 5px 15px; font-size: 13.5px; font-weight: 700; }
.tb-a .account .acct-btn:not(.acct-out):not(.acct-mine):hover { background: #36a065; color: #fff; text-decoration: none; }
@media (max-width: 900px) { .tb-a .account .acct-btn.acct-out { display: inline-flex; padding: 4px 11px; font-size: 12.5px; } } /* الخروج ظاهر على الهاتف أيضا */
/* الروابط القانونية في التذييل: فواصل «|» بدل الكبسولات */
.ft-legal { align-items: center; gap: 10px; }
.ft-legal a { padding: 0; border: 0; border-radius: 0; }
.ft-legal a:hover { background: none; text-decoration: underline; }
.ft-legal span { color: rgba(255, 255, 255, .35); }
/* شريط «تابعنا» فوق التذييل: يظهره المدير ويخفيه من الإعدادات */
.ft-follow { background: rgba(0, 0, 0, .14); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft-follow-in { max-width: var(--page-w); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ft-follow b { font-size: 15px; font-weight: 700; color: var(--count-edge); }
.ft-follow-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ft-follow-links a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14px; }
.ft-follow-links a:hover { text-decoration: underline; }
.ft-follow-links svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ft-follow-links a:hover svg { background: rgba(255, 255, 255, .22); }
@media (max-width: 600px) {
  .ft-follow-in { padding: 12px 16px; gap: 12px; }
  .ft-follow-links { gap: 14px; }
  .ft-legal { column-gap: 16px; }
  .ft-legal span { display: none; } /* على الهاتف تلتف الروابط، فلا فاصل يبقى وحده أول السطر */
}

/* زر الفضاء أول الشريط (الخيار «ب»، 2026-11-21): كبسولة بيضاء باسم الفضاء الحالي ونقطة بلونه، تفتح قائمة الفضاءات الثلاثة */
.tb-space { position: relative; flex: none; }
.tb-space summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pk-green); font-size: 13px; font-weight: 700; padding: 5px 12px 5px 11px; border-radius: 999px; white-space: nowrap; }
.tb-space summary::-webkit-details-marker { display: none; }
.tb-space summary::after { content: ""; width: 6px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); transition: transform .15s; }
.tb-space[open] summary::after { transform: translateY(1px) rotate(135deg); }
.tb-space summary:focus-visible { outline: 2px solid var(--count-edge); outline-offset: 2px; }
.sp-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #0c4f47; }
.sp-kashmir { background: #6d2c42; }
.sp-ai { background: #1F3A8A; }
.tb-space-menu { position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-start: 0; min-width: 200px; display: grid; gap: 2px; padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.tb-space-menu a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 600; }
.tb-space-menu a:hover { background: var(--line); }
.tb-space-menu a[aria-current] { background: rgba(12, 79, 71, .1); background: color-mix(in srgb, var(--pk-green) 10%, transparent); }
.tb-space-menu a[aria-current]::after { content: "✓"; margin-inline-start: auto; color: var(--pk-green); font-weight: 700; }
@media (max-width: 900px) { .tb-a .tb-space { order: 0; } .tb-a .tb-space summary { font-size: 12.5px; padding: 4px 10px; } }

/* زر «الاشتراك» مطفأ (src/sales.js، علامة data-sell على الصفحة): لا قفل ولا سعر ولا دعوة للاشتراك ولا زر دخول.
   رسالة الأرشيف والمرصد وحدها تبقى (sell-keep)، وما يختفي معه علامته sell-lock */
html[data-sell="0"] .pro-cta, html[data-sell="0"] .ft-pro, html[data-sell="0"] .acct-login, html[data-sell="0"] #footer-login,
html[data-sell="0"] a[href="/subscribe"]:not(.sell-keep), html[data-sell="0"] .pro-teaser, html[data-sell="0"] .pro-btn, html[data-sell="0"] .pro-more,
html[data-sell="0"] .ncard-icon.locked, html[data-sell="0"] .sum-btn.locked, html[data-sell="0"] .sd-tile.locked, html[data-sell="0"] .ex-analyze.locked,
html[data-sell="0"] .cf-upgrade, html[data-sell="0"] .sell-lock, html[data-sell="0"] .sp-card:has(.sell-lock) { display: none !important; }

/* «غرفة الأخبار» مطفأة على الموقع (علامة data-newsroom من الخادم للقارئ وحده): يختفي رابطها من الشريط والقوائم وشريطها في الرئيسة */
/* «الروايات المتعارضة» مطفأة (علامة data-contested من الخادم): تختفي روابطها من الشريط والقائمة والصفحات */
html[data-contested="0"] a[href="/contested"], html[data-contested="0"] a[href^="/contested/"], html[data-contested="0"] a[href^="/contested?"] { display: none !important; }
/* «المرصد الإعلامي» مطفأ (علامة data-observatory من الخادم): تختفي روابطه من الشريط والقائمة والصفحات */
html[data-observatory="0"] a[href="/observatory"], html[data-observatory="0"] a[href^="/observatory/"], html[data-observatory="0"] a[href^="/observatory#"], html[data-observatory="0"] a[href^="/observatory?"] { display: none !important; }
html[data-newsroom="0"] a[href="/newsroom"], html[data-newsroom="0"] a[href^="/newsroom/"], html[data-newsroom="0"] .ex-strip { display: none !important; }
html[data-events="0"] a[href="/events"], html[data-events="0"] a[href^="/events?"], html[data-events="0"] a[href^="/events/"] { display: none !important; }
/* فضاء مطفأ («غرفة التحكم»): رابطه يختفي عن القارئ (زر الفضاءات وروابط الصفحات) */
html[data-space-ai="0"] a[href="/ai"], html[data-space-ai="0"] a[href^="/ai/"], html[data-space-ai="0"] a[href^="/ai?"],
html[data-space-kashmir="0"] a[href="/kashmir"], html[data-space-kashmir="0"] a[href^="/kashmir?"], html[data-space-kashmir="0"] a[href^="/kashmir#"],
html[data-space-pk="0"] .tb-space-menu a[href="/"] { display: none !important; }
html[data-space-menu="0"] .tb-space { display: none !important; }
/* الاشتراك مطفأ: مجموعة «الحساب» في القائمة (مساحتي ودخول المشتركين) تختفي، وتبقى ‎/account برابطها المباشر للمختارين */
html[data-sell="0"] .tb-menu .tb-group:has(a[href="/account"]) { display: none !important; }
html[data-sell="0"] #footer-subs { display: none !important; }
/* صفحة الاشتراك مطفأة قبل إطلاقه: لا رابط إليها، وقفل الأرشيف يقول «يفتح الاشتراك قريبا» */
.sell-soon { display: none; }
html[data-subscribe-page="0"] .sell-keep { display: none !important; }
html[data-subscribe-page="0"] .sell-soon { display: block; margin: 0; font-weight: 700; }
html[data-drawer-public="0"] .sd-root, html[data-drawer-public="0"] .sd-scrim, html[data-drawer-public="0"] .sd-drawer { display: none !important; }

/* «موسوعة باكستان» مطفأة على الموقع (علامة data-encyclopedia من الخادم للقارئ وحده): تختفي روابطها وروابط بابيها
   (الشخصيات والأيام) من الشريط والقائمة والتذييل، ومجموعة «المرجع» في القائمة، واقتراحات الشخصيات في البحث وشاراتها في الأخبار */
html[data-encyclopedia="0"] a[href="/encyclopedia"], html[data-encyclopedia="0"] a[href^="/encyclopedia/"],
html[data-encyclopedia="0"] a[href^="/en/encyclopedia"], html[data-encyclopedia="0"] a[href^="/ur/encyclopedia"],
html[data-encyclopedia="0"] .tb-group:has(a[href="/encyclopedia"]), html[data-encyclopedia="0"] .pp-suggest, html[data-encyclopedia="0"] .pp-story-chips,
html[data-encyclopedia="0"] #day-capsule, html[data-encyclopedia="0"] #people-capsule { display: none !important; }

/* ——— «مرصد التحقق» (/verify): الأحكام الستة بألوان ثابتة، وبطاقات الأحكام، وشجرة الانتشار ——— */
:root {
  --v-false: #9B2C1F; --v-false-bg: #FBE3DF; --v-fab: #6E1F3A; --v-fab-bg: #F6E0E8; --v-mis: #8A5A00; --v-mis-bg: #FFF1CC;
  --v-old: #26405C; --v-old-bg: #E3EBF4; --v-unp: #4F5A54; --v-unp-bg: #ECEFEC; --v-true: #1E7A45; --v-true-bg: #E1F2E7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --v-false: #F2A99D; --v-false-bg: #3B1C17; --v-fab: #E9A9C0; --v-fab-bg: #3A1A26; --v-mis: #F3D78A; --v-mis-bg: #3A2F12;
    --v-old: #A9C2E0; --v-old-bg: #1B2633; --v-unp: #B8C4BD; --v-unp-bg: #232D28; --v-true: #6CC795; --v-true-bg: #1C3127;
  }
}
.vf-v { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.9; padding: 0 10px; border-radius: 999px; white-space: nowrap; text-decoration: none; }
.vf-v::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vf-v.false { color: var(--v-false); background: var(--v-false-bg); }
.vf-v.fab { color: var(--v-fab); background: var(--v-fab-bg); }
.vf-v.mis { color: var(--v-mis); background: var(--v-mis-bg); }
.vf-v.old { color: var(--v-old); background: var(--v-old-bg); }
.vf-v.unp { color: var(--v-unp); background: var(--v-unp-bg); }
.vf-v.true { color: var(--v-true); background: var(--v-true-bg); }
a.vf-bdg { font-size: 11.5px; line-height: 1.6; padding: 1px 9px; position: relative; z-index: 2; }
a.vf-bdg:hover { text-decoration: underline; }
.vf-code { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; text-decoration: none; }
.vf-scope { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--chip); padding: 0 9px; border-radius: 999px; line-height: 1.9; white-space: nowrap; }
.arc-hero .vf-code { color: rgba(255, 255, 255, .78); }
.arc-hero .vf-scope { color: #fff; background: rgba(255, 255, 255, .14); }
.vf-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.vf-filter::-webkit-scrollbar { display: none; }
.vf-filter a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg); text-decoration: none; background: var(--surface); }
.vf-filter a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.vf-filter a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vf-filter a[aria-current="true"] span { color: inherit; opacity: .8; }
.vf-countries { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.vf-countries::-webkit-scrollbar { display: none; }
.vf-countries a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: 14.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.vf-countries a span { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.vf-countries a:hover { color: var(--fg); }
.vf-countries a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.vf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vf-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); border-top: 4px solid var(--v-unp); min-width: 0; }
.vf-card.false { border-top-color: var(--v-false); } .vf-card.fab { border-top-color: var(--v-fab); } .vf-card.mis { border-top-color: var(--v-mis); }
.vf-card.old { border-top-color: var(--v-old); } .vf-card.true { border-top-color: var(--v-true); }
.vf-card-top { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vf-card h3 { margin: 0; font-family: var(--font-head); font-size: 17px; line-height: 1.65; }
.vf-card h3 a { color: inherit; text-decoration: none; }
.vf-card h3 a:hover { color: var(--accent); }
.vf-truth { margin: 0; font-size: 14px; line-height: 1.8; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vf-card-meta { margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.vf-pending { display: flex; flex-direction: column; gap: 8px; }
.vf-pending p { margin: 0; }
.vf-pending-n { font-size: 22px; font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.vf-pending-s { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.vf-pending-t { font-size: 13.5px; color: var(--muted); }
.vf-queue, .vf-log { list-style: none; margin: 0; padding: 0; }
.vf-queue li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vf-queue li:last-child, .vf-log li:last-child { border-bottom: 0; }
.vf-queue p { margin: 0; flex-basis: 100%; font-size: 15px; line-height: 1.8; }
.vf-queue time { font-size: 12.5px; color: var(--muted); }
.vf-log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.vf-log time { font-size: 12.5px; color: var(--muted); }
.vf-narr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vf-narr-c { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.vf-narr-c h3 { margin: 0; font-family: var(--font-head); font-size: 18px; }
.vf-narr-c p { margin: 0; font-size: 14px; line-height: 1.8; }
.vf-narr-c ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vf-narr-c li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.7; }
.vf-narr-c li a { color: var(--fg); }
.vf-legend { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.vf-legend div { display: flex; flex-direction: column; gap: 6px; }
.vf-legend dt { margin: 0; } .vf-legend dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.vf-steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.85; }
.vf-form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.vf-kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.vf-kind legend { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.vf-kind label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.vf-f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; flex: 1; min-width: 0; }
.vf-f textarea, .vf-f input { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); min-height: 44px; }
.vf-f textarea { resize: vertical; line-height: 1.8; }
.vf-row { display: flex; gap: 14px; align-items: flex-end; }
.vf-row.end { justify-content: space-between; align-items: center; }
.vf-hint { margin: 0; font-size: 13px; color: var(--muted); }
.vf-msg, .vf-ok { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.arc-hero .vf-claim-k { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.arc-hero .vf-kick { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vf-tldr { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .1); border-inline-start: 4px solid #fff; border-radius: 12px; padding: 12px 16px; margin-top: 4px; }
.vf-tldr.false { border-inline-start-color: #F2A99D; } .vf-tldr.fab { border-inline-start-color: #E9A9C0; } .vf-tldr.mis { border-inline-start-color: #F3D78A; }
.vf-tldr.old { border-inline-start-color: #A9C2E0; } .vf-tldr.unp { border-inline-start-color: #D3DBD6; } .vf-tldr.true { border-inline-start-color: #6CC795; }
.vf-tldr-k { flex: none; font-size: 13px; font-weight: 700; color: #fff; padding-top: 3px; }
.arc-hero .vf-tldr p { color: #fff; font-size: 16px; line-height: 1.9; }
.arc-hero .vf-sign { font-size: 13px; color: rgba(255, 255, 255, .75); }
.vf-one { display: flex; flex-direction: column; gap: 18px; }
.vf-reasons { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.9; }
.vf-variants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vf-variants li { border-inline-start: 3px solid var(--line, #ddd); padding-inline-start: 12px; }
.vf-variants p { margin: 0; font-size: 15px; line-height: 1.8; }
.vf-variants span { font-size: 13px; color: var(--muted, #666); }
.vf-ref { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--chip); color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; vertical-align: 1px; margin-inline-start: 2px; }
.vf-vnote { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.vf-timeline { list-style: none; margin: 0; padding: 0; }
.vf-day:first-child { padding-top: 0; }
.vf-tl { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 12px 8px 14px; border-radius: 10px; scroll-margin-top: 90px; }
.vf-tl:target { background: var(--accent-soft); }
/* الخط العمودي يصل الأرقام، وينقطع عند آخر مادة في اليوم */
.vf-tl-rail { position: relative; display: flex; justify-content: center; }
.vf-tl-rail::before { content: ''; position: absolute; top: 30px; bottom: -14px; width: 2px; background: var(--line); }
.vf-tl:last-child .vf-tl-rail::before, .vf-tl:has(+ .vf-day) .vf-tl-rail::before { display: none; }
.vf-tl-n { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.vf-tl.origin .vf-tl-n { border-color: var(--v-old); color: var(--v-old); }
.vf-tl.shift .vf-tl-n { border-color: var(--v-false); color: var(--v-false); }
.vf-tl.denial .vf-tl-n { border-color: var(--v-true); color: var(--v-true); }
.vf-tl-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.vf-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 28px; }
.vf-tl-who { color: var(--fg); font-size: 15px; font-weight: 700; }
.vf-tl-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vf-tl-kind { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 9px; line-height: 1.9; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.vf-tl-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.vf-tl-facts i { font-style: normal; color: var(--muted); margin-inline-end: 4px; }
.vf-tl-texts { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vf-tl-ar, .vf-tl-src { padding: 10px 14px; }
.vf-tl-src { background: var(--bg); border-top: 1px dashed var(--line); }
.vf-tl-texts > .vf-tl-src:first-child { border-top: 0; }
.vf-tl-lbl { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.vf-tl-title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.8; }
.vf-tl-title a, .vf-tl-dup a, .vf-tl-orig a { color: var(--fg); text-decoration: none; }
.vf-tl-title a:hover, .vf-tl-dup a:hover, .vf-tl-orig a:hover { color: var(--accent); text-decoration: underline; }
.vf-tl-ext { font-size: 12px; color: var(--muted); margin-inline-start: 6px; }
.vf-tl-orig { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); text-align: right; }
.vf-tl-orig.only { color: var(--fg); font-size: 15px; font-weight: 600; }
.vf-tl-dup { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.vf-day { font-size: 13px; font-weight: 700; color: var(--fg); padding: 14px 0 6px; margin: 0 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .vf-tl { gap: 10px; padding-inline: 2px; } .vf-tl-title { font-size: 15px; } .vf-tl-ar, .vf-tl-src { padding: 9px 11px; } }
.vf-role { justify-self: start; font-size: 12px; font-weight: 700; padding: 0 9px; border-radius: 999px; line-height: 1.9; white-space: nowrap; color: var(--v-unp); background: var(--v-unp-bg); }
.vf-role.origin { color: var(--v-old); background: var(--v-old-bg); }
.vf-role.shift { color: var(--v-false); background: var(--v-false-bg); }
.vf-role.repeat { color: var(--v-mis); background: var(--v-mis-bg); }
.vf-role.denial { color: var(--v-true); background: var(--v-true-bg); }
.vf-cor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vf-cor-c { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.vf-cor-c figcaption { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.vf-cor-c blockquote { margin: 0; font-size: 15px; line-height: 1.9; flex: 1; }
.vf-cor-c[lang="en"] blockquote { font-family: var(--font-en); }
.vf-cor-c .chip { align-self: flex-start; font-family: var(--font-ui); line-height: 1.5; }
.vf-narr-link, .vf-reply { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) {
  .vf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vf-grid, .vf-narr, .vf-legend, .vf-cor { grid-template-columns: minmax(0, 1fr); }
  .vf-row { flex-direction: column; align-items: stretch; }
  .vf-tldr { flex-direction: column; gap: 4px; }
}

/* «عداد الزيارات» في التذييل بعد سطر الحقوق (src/site-chrome.js، 2026-11-24) */
.ft-sep { margin: 0 6px; opacity: .6; }
.ft-visits b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* compat:start — مولد؛ لا تعدله يدويا (npm run compat) */
@supports not (color:color-mix(in oklab,red 50%,blue)){.searchbar .btn.primary:hover{background:var(--count-edge, #C9A961)}
.gl-add .gl-ar input{border-color:var(--line)}
.gl-add .gl-en input{border-color:var(--line)}
.gl-add .gl-ur input{border-color:var(--line)}
table.gl-table td.gl-ar{background:transparent}
.gl-en .gl-chip{border-color:transparent}
.gl-ur .gl-chip{border-color:transparent}
:root{--brand-hover:var(--pk-green);--brand-light:white;--brand-line:var(--pk-green)}
body.home{background:linear-gradient(to bottom,
    var(--pk-green) 0,
    var(--pk-green) 190px,
    var(--pk-green) calc(190px + (100% - 190px) * 0.083),
    var(--pk-green) calc(190px + (100% - 190px) * 0.167),
    var(--pk-green) calc(190px + (100% - 190px) * 0.250),
    var(--pk-green) calc(190px + (100% - 190px) * 0.333),
    var(--pk-green) calc(190px + (100% - 190px) * 0.417),
    var(--pk-green) calc(190px + (100% - 190px) * 0.500),
    var(--bg) calc(190px + (100% - 190px) * 0.583),
    var(--bg) calc(190px + (100% - 190px) * 0.667),
    var(--bg) calc(190px + (100% - 190px) * 0.750),
    var(--bg) calc(190px + (100% - 190px) * 0.833),
    var(--bg) calc(190px + (100% - 190px) * 0.917),
    var(--bg) 100%) no-repeat,
    var(--bg)}
.textlist-head{background:linear-gradient(to left, var(--surface), var(--surface) 70%)}
.tday-rows::before{background:var(--line)}
.trow.same-time::before{background:var(--line)}
.topic-pill{border:1px solid transparent;background:transparent}
.btr:nth-child(odd):not(.bth){background:var(--chip)}
.bcard:hover{border-color:var(--line)}
.bnum-n{color:var(--pk-green)}
.layout-opt:hover{border-color:var(--line)}
.layout-opt.on{box-shadow:0 0 0 3px transparent}
.cd-canvas{background:var(--surface)}
.card-pv{background:var(--surface)}
.lp-l{background:transparent}
.lp-time{background:transparent}
.lp-line{background:transparent}
.lp-tr.z{background:transparent}
.lp-th .lp-l{background:transparent}
.lp-num b{color:var(--pk-green)}
.btopic-toggle{background:var(--surface)}
.btopic-toggle:hover{background:var(--surface)}
.btopic.open{border-color:var(--line)}
.paywall{border:1px solid var(--count-edge);background:linear-gradient(to bottom, var(--surface), var(--surface) 60%)}
.sum-btn.locked:hover{background:transparent}
.insights{background:linear-gradient(160deg, var(--surface), var(--surface) 55%);border:1px solid var(--line)}
.ins-bar i{background:linear-gradient(to left, var(--pk-green), var(--pk-green))}
.ins-seg.sd,.ins-dot.sd{background:var(--count-edge)}
.ins-seg.ps,.ins-dot.ps{background:var(--pk-green)}
.ins-seg.ar,.ins-dot.ar{background:white}
.ins-more{border:1px solid var(--line)}
.obs-rank-bar i{background:linear-gradient(to left, var(--pk-green), var(--pk-green))}
.s2{background:var(--pk-green)}
.s4{background:#8899aa}
.obs-locked{border:1px solid var(--count-edge);background:linear-gradient(to bottom, var(--surface), var(--surface))}
.obs-press-bar.sd i{background:var(--count-edge)}
.obs-press-bar.ps i{background:var(--pk-green)}
.obs-pro{border-color:var(--count-edge)}
.obs-spark i{background:var(--pk-green)}
.ncard:hover{border-color:var(--pk-green)}
.story-orig{background:var(--surface)}
.cf-peers-bar{background:transparent}
.cf-peers-bar span{background:var(--surface)}
.arc-day.lvl1{background:var(--surface)}
.arc-day.lvl2{background:var(--surface)}
.arc-day.lvl3{background:var(--surface)}
.acct-tile-new{border-color:var(--count-edge, #E9C46A)}
button.stat.go:hover{box-shadow:0 2px 10px transparent}
.cnt-pill{border:1px solid transparent}
.ncard-tag{background:var(--pk-green)}
.so-card:hover{box-shadow:0 4px 18px transparent}
.so-card.soon{background:var(--chip)}
.sb-table td.pro{background:var(--pro-soft)}
.wr-card:hover{border-color:var(--pk-green)}
.tone-0,.tone-1,.tone-2,.tone-3,.tone-4,.tone-5,.tone-6,.tone-7,.tone-8,.tone-9{border:1px solid transparent}
.meta-pills .time-pill::before{background:var(--muted)}
.cnt-pill{background:var(--surface);color:var(--count-edge);border:1px solid var(--count-edge)}
@media (prefers-color-scheme: dark){.cnt-pill{background:var(--surface)}}
@media (prefers-color-scheme: dark){.off-pill{background:var(--pk-green)}}
@media (prefers-color-scheme: dark){.trow-kicker[class*="tpk-"],.arc-kicker[class*="tpk-"]{color:white}}
.rep-stat{background:var(--surface);border:1px solid var(--line)}
.rep-lead{background:var(--surface)}
.rep-refs a{background:var(--surface);color:var(--count-edge);border:1px solid var(--count-edge)}
.rep-table tr:nth-child(even) td{background:var(--surface)}
.st-q.pending{background:var(--surface)}
.sp-tools{background:var(--sp-gold-soft)}
.fmini{background:var(--surface)}
.svc-gate[aria-pressed="true"] .gate-num{border-color:transparent}
.np-gates i.on{background:var(--surface)}
.np-grid i.on{background:var(--surface)}
.sq-kind.source{background:var(--surface);color:#8A6D1F}
body.space-ai{--accent-soft:white;--brand-hover:#1F3A8A;--brand-light:white;--brand-line:#1F3A8A}
.opd-box.ed{background:var(--surface)}
.evr-tool:hover{background:var(--surface)}
a.evg-none:hover{background:var(--chip)}
.narr-pill{border:1px solid transparent}
.story-brief{background:var(--surface)}
.story-brief small{color:#B07A12}
.ex-keys{border:1px solid var(--line);background:var(--surface)}
.ex-text .ex-lead{background:var(--surface);border:1px solid var(--line)}
.ex-card-btn:hover{background:var(--surface)}
a.mention{text-decoration-color:var(--accent)}
.cxp-v{border:1px solid transparent}
.cxp-v.v1{border-color:transparent}
.cxp-v.v2{border-color:transparent}
.cxp-v.v3{border-color:transparent}
.tb-space-menu a[aria-current]{background:transparent}}
@supports not (inset:0){.src-pill[data-ur],.time-pill[data-ur],.chip[data-ur],.st[data-ur]{padding-top:0;padding-bottom:0}
.wrap{padding-right:20px;padding-left:20px;padding-top:24px;padding-bottom:64px}
.ph{top:0;right:0;bottom:0;left:0}
.credit{bottom:8px;left:8px}
tr.grp th b{margin-left:10px}
.result ul{padding-right:18px}
.btn.bad.ghost{padding-right:4px;padding-left:4px}
.media .play{top:0;right:0;bottom:0;left:0;padding-right:5px}
.media .vtag{bottom:8px;right:8px}
.side{border-left:1px solid var(--line)}
.toast{bottom:20px;right:50%}
@media (max-width: 860px){.side{border-left:0}.main{padding-right:16px;padding-left:16px}}
.ticker-track{padding-right:18px;padding-left:18px}
.lang-tag{margin-left:8px}
table.gl-table td.gl-cell + td.gl-cell{border-right:1px solid var(--line)}
.gl-ur .gl-chip{padding-top:0;padding-bottom:0}
html.splash-on .splash{top:0;right:0;bottom:0;left:0}
html.splash-on .splash::after{top:0;right:0;bottom:0;left:0}
.time-pill::before{margin-left:6px}
.badges{top:10px;right:10px;left:10px}
.textlist-head{border-right:4px solid var(--pk-green)}
.tday-n{margin-right:auto}
.tday-rows::before{top:0;bottom:0;right:84px;margin-right:-1px}
.trow::before{right:79px}
.trow.same-time::before{right:82px}
.trow-topic{padding-right:12px}
.trow-topic::before{right:0}
@media (max-width: 560px){.textlist-head{padding-right:16px;padding-left:16px}.tdays{padding-right:14px;padding-left:14px}.tday-rows::before{right:60px}.trow::before{right:55px}.trow.same-time::before{right:58px}.trow-main{padding-right:8px;padding-left:8px}}
@media (prefers-color-scheme: dark){.textlist-head{border-right-color:var(--brand-line)}}
.bth{padding-top:8px;padding-bottom:8px}
.card-cb{left:16px}
.layout-check{left:16px}
.lp-line{right:46px}
.tsheet{top:0;bottom:0}
@media (max-width: 640px){.tsheet{top:auto}}
.pw-sources .muted{margin-left:4px}
.account{margin-left:12px}
.svc{border-right:5px solid var(--line)}
.svc-free{border-right-color:#1F7A4A}
.svc-paid{border-right-color:#B08A3E}
.svc-hidden{border-right-color:var(--muted)}
.svc-meta{padding-right:8px}
.sum-points li{padding-right:38px}
.sum-points li::before{right:0}
.sum-quota{margin-left:auto}
.doc-wrap ul{padding-right:22px}
@media (max-width: 560px){.doc-wrap{border-right:0;border-left:0}}
.topbar-end{margin-right:auto}
.topbar.nav-row .topbar-inner{padding-top:6px;padding-bottom:4px}
.ft-credit a{margin-right:3px}
@media (max-width: 760px){.footer-bottom{padding-right:16px;padding-left:16px}}
.ins-tile::before{top:0;right:0;bottom:auto;left:0}
.obs-legend-item b{margin-right:auto}
.obs-col small{right:50%}
.obs-news-chip b{margin-right:2px}
@media (max-width: 640px){.obs-news-topics{margin-right:-14px;margin-left:-14px}}
.obs-soon b{margin-left:6px}
.obs-cite{border-right:3px solid var(--pk-green)}
.doc-cite{border-right:3px solid var(--pk-green)}
.ncard-video{bottom:10px;right:10px}
.ncard-title::after{top:0;right:0;bottom:0;left:0}
.ncard-icon.locked::before{left:7px}
.ncard-icon:hover::after,.ncard-icon[data-done]::after{right:0}
.ncard-go{margin-right:auto}
.story{top:0;bottom:0;right:auto;left:0}
.story-play{top:0;right:0;bottom:0;left:0}
.story-play svg{margin-right:-3px}
.story-tools{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-top:6px;padding-bottom:6px}
.story-go{margin-right:auto}
@media (max-width: 700px){.story{top:auto;right:0;left:0}}
.sx-track i{margin-right:0}
.sx-bar .seg{margin-right:auto}
@media (max-width: 760px){.sx-bar .seg{margin-right:0}}
.acct-hero > *{margin-right:auto;margin-left:auto}
@media (max-width: 640px){.cf-tools .seg button{padding-right:6px;padding-left:6px}}
.obs-file ol{padding-right:20px}
.arc-hero > *{margin-right:auto;margin-left:auto}
.arc-more{margin-right:auto}
.arc-timeline::before{top:6px;bottom:6px;right:88px}
.arc-timeline li::before{right:84px}
.arc-digest-list{padding-right:22px}
.arc-ref{margin-right:3px}
.sr-copy{right:-9999px}
@media (max-width: 700px){.arc-timeline::before{right:66px}.arc-timeline li::before{right:62px}}
.acct-badge{margin-right:4px}
.acct-brief-list{padding-right:20px}
.topbar .acct-badge{margin-right:0}
.acct-chip.more{padding-right:9px;padding-left:9px}
.acct-bell-pop{left:0}
.vis-insights{padding-right:20px}
.lock-foot{right:0;left:0}
.lock-bar a{margin-right:6px}
.pk-table small.tag{margin-right:6px}
.pk-sample{padding-right:18px}
.pk-edit-btn{margin-right:8px}
.pk-table .tag{margin-right:6px}
button.stat.go::after{left:12px}
.ncard-meta.meta-pills .time-pill{padding-right:0;padding-left:0}
.ncard-tag{top:10px;right:10px}
.xl-steps{padding-right:20px}
.xl-post.pk{border-right:3px solid var(--accent);padding-right:12px}
.xl-dot{margin-left:6px}
.xl-point{border-right:3px solid var(--accent)}
.xl-arch{padding-right:18px}
.story-lock{margin-right:4px}
.pro-example{padding-right:18px}
.pro-quote{border-right:3px solid var(--pro);padding-right:10px}
.pro-more{margin-right:auto}
.sb-method{padding-right:18px}
.wav.paper{padding-right:8px;padding-left:8px}
.ocard-q.ar .ncard-title-text::before{margin-left:2px}
.ocard-q.ar .ncard-title-text::after{margin-right:2px}
.wr-chip b,.wr-jump b{margin-right:2px}
.meta-pills .time-pill{padding-right:2px;padding-left:2px}
.rep-lead{border-right:4px solid var(--count-edge)}
.rep-facts,.rep-sources{padding-right:22px}
.rep-refs{margin-right:6px}
.rep-list{padding-right:20px}
.sr-copy{right:-9999px}
.sp{margin-right:auto;margin-left:auto}
.sp-quote{border-right:4px solid var(--sp-gold)}
.sp-cov-h small{margin-right:auto}
.sp-cov-cols .sp-cov-par > span + span{padding-right:21px}
.sp-cov-row.self{padding-right:12px;padding-left:12px}
.sp-cov-o{border-right:1px solid var(--line);padding-right:20px}
@media (max-width: 640px){.sp-cov-o{border-right:0;padding-right:0}}
.sp-bg{padding-right:18px}
.shr-hold{top:0;right:0;bottom:0;left:0}
.shr-hold .shr-x{right:10px}
.shr-seg button[data-v="wide"]{margin-right:auto}
.shr-lang .shr-dg.first{margin-right:auto}
.shr-lbl{margin-left:4px}
.ft-spec-side{padding-right:16px;border-right:1px solid var(--line)}
@media (max-width: 760px){.ft-spec-side{padding-right:0;border-right:0}}
.svc-group-label{padding-right:16px;padding-left:16px}
.dd-menu{right:0}
.dd-menu.end{right:auto;left:0}
.dd-item .fcount{margin-right:auto}
.dd-opts button{padding-top:6px;padding-bottom:6px}
.dd-opts button small{padding-right:22px}
@media (max-width: 640px){.svc-group-label{padding-right:10px;padding-left:10px}.dd-menu.end{right:auto;left:0}}
.fmini{right:0;left:0}
.gate-num{padding-right:14px;border-right:1px solid var(--line)}
.ttile[aria-pressed="true"]::after{right:7px}
@media (max-width: 640px){.ttile{padding-right:2px;padding-left:2px}}
.nav-p .svc-gate + .svc-gate{border-right:1px solid var(--line)}
.cp-seg-l{padding-right:8px;padding-left:4px}
.cp-foot .freshness{margin-right:auto}
@media (max-width: 640px){.cp-foot .freshness{margin-right:0}}
.sq-box{padding-right:8px;padding-left:8px}
#sf-cat .sq-tok{padding-top:5px;padding-bottom:5px}
.sq-sugg{right:0;left:0}
.sq-opt small{margin-right:auto}
.preset-x{border-right:1px solid var(--line)}
.rail-on .svc-group-label{padding-right:10px;padding-left:10px}
.rail-on .svc-nav .tab{border-right:3px solid transparent}
.rail-on .svc-nav .tab[aria-selected="true"]{border-right-color:var(--accent)}
.rail-on .fbar .fcount{margin-right:auto}
.rail-on .dd-menu,.rail-on .dd-menu.end{right:0;left:0}
.opd-who .wav.paper{padding-right:6px;padding-left:6px}
.cx-side blockquote{padding-right:10px;border-right:3px solid var(--line)}
.cx-side ul,.cx-ev ul{padding-right:18px}
.cx-ev blockquote{padding-right:10px;border-right:3px solid var(--line)}
.ncard-bdgs.p-media-top{top:10px;right:10px}
.ncard-bdgs.p-media-bottom{bottom:10px;right:10px}
.ncard-bdgs.p-media-end{bottom:10px;left:10px}
.bdg-btn::after{top:-9px;right:-4px;bottom:-9px;left:-4px}
@media (max-width: 640px){html:not(.nav-p) .fbar-tools #src-btn::after{margin-right:auto}}
.evr-views a + a{border-right:1px solid var(--line)}
.evg > :not(.evg-media){margin-right:14px;margin-left:14px}
.evg-rank{left:10px}
.evg-cap{right:10px}
.evg .evr-cov{margin-right:8px;margin-left:8px}
.evh-auto .evh-tile[aria-selected="true"]::after{right:0}
.featured-ctrl{margin-right:auto}
.slide-why{top:10px;right:10px}
.slide-count{bottom:10px;left:10px}
.grid[data-shape="list"] > .ncard .ncard-media,.grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media{margin-top:10px;margin-bottom:10px}
@media (pointer: coarse){.footer-col a,.footer-link{padding-top:9px;padding-bottom:9px}}
.frame-note{border-right:3px solid var(--fr-in-fg)}
.as-quoted::before{margin-left:1px}
.as-quoted::after{margin-right:1px}
.dy-harvest small a{margin-right:2px}
.dy-story{top:0;right:0;bottom:0;left:0}
.dy-slide{top:0;right:0;bottom:0;left:0}
.dy-slide > img,.dy-slide > .dy-ph{top:0;right:0;bottom:0;left:0}
.dy-slide::after{top:0;right:0;bottom:0;left:0}
.dy-slide-in{top:auto;right:0;bottom:0;left:0}
.dy-slide-in ol b{margin-left:6px}
.dy-bars{right:12px;left:12px}
.pp-ai{border-right:3px solid var(--line);padding-right:10px}
.ad-wide .ad-tag{right:6px}
.ad-demo-bar{right:12px;left:12px}
.of-job{border-right:3px solid var(--accent)}
.of-warn{border-right:3px solid var(--sp-warn, #9a5b00)}
.of-meta span + span{padding-right:12px;border-right:1px solid var(--line)}
.of-sample{padding-right:22px}
.of-sec.k-text{border-right:3px solid var(--accent)}
.of-move{margin-right:auto}
.acct-toast{right:16px}
.ex-strip-head h2::before{margin-left:8px}
.ex-strip-head .ex-strip-all{margin-right:auto}
.ex-new{margin-left:6px}
.ex-hero-img{top:0;right:0;bottom:0;left:0}
.ex-hero-cap{top:auto;right:0;bottom:0;left:0}
.ex-hero-main .ex-noimg{top:0;right:0;bottom:0;left:0}
.ex-hero-list button{border-right:3px solid transparent}
.ex-hero-list button[aria-current="true"]{border-right-color:var(--pk-green)}
.ex-mos-img{top:0;right:0;bottom:0;left:0}
.ex-mos-cap{top:auto;right:0;bottom:0;left:0}
.ex-mos-layer{top:0;right:0;bottom:0;left:0}
.ex-tools-l{margin-left:2px}
.ex-analyze{margin-right:auto}
.ex-corr ul{padding-right:20px}
.ex-keys li{padding-right:18px}
.ex-keys li::before{right:2px}
.ex-text .ex-lead{border-right:3px solid #C9A961}
.ex-an-refs{margin-right:4px}
.ex-an-refs a{margin-right:2px}
.ex-an-watch ul{padding-right:20px}
.ad-hero .ad-tag{right:8px}
@media (max-width: 640px){.ex-analyze{margin-right:0}}
.doc-side{border-right:1px solid var(--line);padding-right:22px}
.doc-hero .doc-lead{padding-top:4px;padding-bottom:4px;padding-right:18px;padding-left:0;border-right:3px solid var(--pk-green)}
.doc-wrap .doc-sec li{padding-right:22px}
.doc-wrap .doc-sec li::before{right:4px}
.doc-side a.doc-tsub,.doc-mtoc a.doc-tsub{padding-right:18px}
.doc-wrap .doc-sec.doc-sec-num > :not(h2),.doc-wrap .doc-sec.doc-sec-part > :not(h2):not(h3){margin-right:52px}
@media (max-width: 560px){.doc-wrap .doc-sec.doc-sec-num > :not(h2),.doc-wrap .doc-sec.doc-sec-part > :not(h2):not(h3){margin-right:46px}}
.ex-lead-m img,.ex-lead-m .ex-img-none{top:0;right:0;bottom:0;left:0}
.ex-lead-nav{bottom:16px;left:30px}
.ex-dot i::after{top:0;right:0;bottom:0;left:0}
.ex-copy-tmp{top:0}
@media (max-width: 900px){.ex-lead-nav{right:16px;left:16px}}
a.mention-w::after{margin-right:2px}
.sp-ent-name.mention-w::after{margin-right:2px}
.jobs{left:max(16px, env(safe-area-inset-left, 0px))}
.jobs-pill{padding-top:6px;padding-bottom:6px;padding-right:8px;padding-left:14px}
.jobs-toast{left:max(16px, env(safe-area-inset-left, 0px))}
.enc-cat{border-right:4px solid var(--accent)}
.enc-otd b{margin-left:8px}
.enc-quiz ol{padding-right:22px}
.enc-toc ol{padding-right:22px}
.enc-ref{margin-right:2px}
.enc-hl ul{padding-right:18px}
.enc-rows{border-right:2px solid var(--line)}
.enc-rows li::before{right:-6px}
.enc-srcs ol{padding-right:24px}
.ncard-media .ncard-tag.ks-camp{right:auto;left:10px}
.ks-vs-grid > .ks-in{border-right:1px solid var(--line)}
.ks-card li b{margin-left:6px}
.ks-tl li{border-right:2px solid var(--brand-light, #e9c9d4);padding-right:10px}
.ksx-k::before{margin-left:5px}
.ksx-list{padding-right:18px}
.tb-drawer{right:0;left:0}
.hub-events b{margin-left:4px}
.hub-door{padding-left:64px}
.hub-n{left:16px}
.hub-soon{left:14px}
.sd-root{top:0;right:0;bottom:0;left:0}
.sd-ear-shape{top:0;right:0;bottom:0;left:0}
.sd-scrim{top:0;right:0;bottom:0;left:0}
.cxp-tldr{border-right:4px solid #E9C46A}
.cxp-grp{border-right:4px solid var(--cxv0)}
.cxp-grp.v1{border-right-color:var(--cxv1)}
.cxp-grp.v2{border-right-color:var(--cxv2)}
.cxp-grp.v3{border-right-color:var(--cxv3)}
.cr-oc{border-right:4px solid var(--cx1)}
.cr-q{margin-right:auto}
.cr-detail{padding-right:124px}
.cr-rules{padding-right:20px}
@media (max-width: 860px){.cr-detail{padding-right:16px}.cr-q{margin-right:0}}
@media (min-width: 901px){.topbar.tb-a{padding-top:9px;padding-bottom:9px}.tb-a .topbar-inner .acct-cta{padding-top:5px;padding-bottom:5px}}
.tb-space-menu{right:0}
.tb-space-menu a[aria-current]::after{margin-right:auto}
.vf-steps{padding-right:20px}
.vf-tldr{border-right:4px solid #fff}
.vf-tldr.false{border-right-color:#F2A99D}
.vf-tldr.fab{border-right-color:#E9A9C0}
.vf-tldr.mis{border-right-color:#F3D78A}
.vf-tldr.old{border-right-color:#A9C2E0}
.vf-tldr.unp{border-right-color:#D3DBD6}
.vf-tldr.true{border-right-color:#6CC795}
.vf-reasons{padding-right:20px}
.vf-variants li{border-right:3px solid var(--line, #ddd);padding-right:12px}
.vf-ref{margin-right:2px}
.vf-tl-facts i{margin-left:4px}
.vf-tl-ext{margin-right:6px}
@media (max-width: 640px){.vf-tl{padding-right:2px;padding-left:2px}}}
@supports not (aspect-ratio:1){.media::before{content:'';display:block;padding-top:56.25%}
.media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.card-pv::before{content:'';display:block;padding-top:100%}
.card-pv{position:relative}
.card-pv>img{position:absolute;top:0;left:0;width:100%;height:100%}
.logo-mask::before{content:'';display:block;padding-top:31.45%}
.logo-mask{position:relative}
.logo-mask>img{position:absolute;top:0;left:0;width:100%;height:100%}
.obs-news-img::before{content:'';display:block;padding-top:62.5%}
.obs-news-img{position:relative}
.obs-news-img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.ncard-media::before{content:'';display:block;padding-top:56.25%}
.ncard-media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.story-media::before{content:'';display:block;padding-top:56.25%}
.story-media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.arc-lead-img img::before{content:'';display:block;padding-top:56.25%}
.arc-lead-img img{position:relative}
.arc-lead-img img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.sp-photo img::before{content:'';display:block;padding-top:50%}
.sp-photo img{position:relative}
.sp-photo img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.sp-thumb img::before{content:'';display:block;padding-top:62.5%}
.sp-thumb img{position:relative}
.sp-thumb img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.evr-thumb::before{content:'';display:block;padding-top:56.25%}
.evr-thumb{position:relative}
.evr-thumb>img{position:absolute;top:0;left:0;width:100%;height:100%}
.evg-media::before{content:'';display:block;padding-top:56.25%}
.evg-media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.slide-media::before{content:'';display:block;padding-top:56.25%}
.slide-media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.grid[data-shape="list"] > .ncard .ncard-media::before,.grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media::before{content:'';display:block;padding-top:66.67%}
.grid[data-shape="list"] > .ncard .ncard-media,.grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media{position:relative}
.grid[data-shape="list"] > .ncard .ncard-media>img,.grid[data-shape="front"] > .ncard:nth-child(n+6) .ncard-media>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-ph::before{content:'';display:block;padding-top:43.75%}
.dy-ph{position:relative}
.dy-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-hero-fig img::before{content:'';display:block;padding-top:50%}
.dy-hero-fig img{position:relative}
.dy-hero-fig img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-gallery img::before{content:'';display:block;padding-top:75%}
.dy-gallery img{position:relative}
.dy-gallery img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-next-img img::before,.dy-next-img .dy-ph::before{content:'';display:block;padding-top:NaN%}
.dy-next-img img,.dy-next-img .dy-ph{position:relative}
.dy-next-img img>img,.dy-next-img .dy-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-card-img img::before,.dy-card-img .dy-ph::before{content:'';display:block;padding-top:56.25%}
.dy-card-img img,.dy-card-img .dy-ph{position:relative}
.dy-card-img img>img,.dy-card-img .dy-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.dy-slide > img::before,.dy-slide > .dy-ph::before{content:'';display:block;padding-top:NaN%}
.dy-slide > img>img,.dy-slide > .dy-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
@media (max-width: 640px){.dy-next-img img::before,.dy-next-img .dy-ph::before{content:'';display:block;padding-top:56.25%}.dy-next-img img,.dy-next-img .dy-ph{position:relative}.dy-next-img img>img,.dy-next-img .dy-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}.dy-hero-fig img::before{content:'';display:block;padding-top:75%}.dy-hero-fig img{position:relative}.dy-hero-fig img>img{position:absolute;top:0;left:0;width:100%;height:100%}}
.pp-ph::before{content:'';display:block;padding-top:125%}
.pp-ph{position:relative}
.pp-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.pp-card-img img::before,.pp-card-img .pp-ph::before{content:'';display:block;padding-top:125%}
.pp-card-img img,.pp-card-img .pp-ph{position:relative}
.pp-card-img img>img,.pp-card-img .pp-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.pp-fig img::before{content:'';display:block;padding-top:125%}
.pp-fig img{position:relative}
.pp-fig img>img{position:absolute;top:0;left:0;width:100%;height:100%}
.pp-holder-img img::before,.pp-holder-img .pp-ph::before{content:'';display:block;padding-top:100%}
.pp-holder-img img,.pp-holder-img .pp-ph{position:relative}
.pp-holder-img img>img,.pp-holder-img .pp-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}
.ad-wide .ad-link::before{content:'';display:block;padding-top:15.63%}
.ad-wide .ad-link{position:relative}
.ad-wide .ad-link>img{position:absolute;top:0;left:0;width:100%;height:100%}
@media (min-width: 640px){.ad-wide .ad-link::before{content:'';display:block;padding-top:7.5%}.ad-wide .ad-link{position:relative}.ad-wide .ad-link>img{position:absolute;top:0;left:0;width:100%;height:100%}}
.ad-card .ad-link::before{content:'';display:block;padding-top:83.33%}
.ad-card .ad-link{position:relative}
.ad-card .ad-link>img{position:absolute;top:0;left:0;width:100%;height:100%}
.ex-car-img::before{content:'';display:block;padding-top:56.25%}
.ex-car-img{position:relative}
.ex-car-img>img{position:absolute;top:0;left:0;width:100%;height:100%}
@media (max-width: 760px){.ex-hero-main::before{content:'';display:block;padding-top:56.25%}.ex-hero-main{position:relative}.ex-hero-main>img{position:absolute;top:0;left:0;width:100%;height:100%}}
.smc .smc-canvas::before{content:'';display:block;padding-top:177.78%}
.smc .smc-canvas{position:relative}
.smc .smc-canvas>img{position:absolute;top:0;left:0;width:100%;height:100%}
.ad-hero .ad-link::before{content:'';display:block;padding-top:56.25%}
.ad-hero .ad-link{position:relative}
.ad-hero .ad-link>img{position:absolute;top:0;left:0;width:100%;height:100%}
.adsbygoogle.ad-g-hero::before{content:'';display:block;padding-top:56.25%}
.adsbygoogle.ad-g-hero{position:relative}
.adsbygoogle.ad-g-hero>img{position:absolute;top:0;left:0;width:100%;height:100%}
.ex-card-m::before{content:'';display:block;padding-top:56.25%}
.ex-card-m{position:relative}
.ex-card-m>img{position:absolute;top:0;left:0;width:100%;height:100%}
@media (max-width: 900px){.ex-lead-m::before{content:'';display:block;padding-top:56.25%}.ex-lead-m{position:relative}.ex-lead-m>img{position:absolute;top:0;left:0;width:100%;height:100%}}
.enc-card-img img::before,.enc-card-img .enc-ph::before{content:'';display:block;padding-top:62.5%}
.enc-card-img img,.enc-card-img .enc-ph{position:relative}
.enc-card-img img>img,.enc-card-img .enc-ph>img{position:absolute;top:0;left:0;width:100%;height:100%}}
.no-flexgap .wrap>*+*{margin-top:22px}
.no-flexgap .top>*{margin-bottom:12px;margin-left:24px}
.no-flexgap .status>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pill>*+*{margin-right:8px}
.no-flexgap .nav>*+*{margin-right:16px}
.no-flexgap .tabs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .filters>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .seg>*+*{margin-right:4px}
.no-flexgap .col>*+*{margin-top:16px}
.no-flexgap .ph>*+*{margin-top:4px}
.no-flexgap .body>*+*{margin-top:8px}
.no-flexgap .cov-btn>*+*{margin-right:8px}
.no-flexgap .sheet-head>*+*{margin-right:12px}
.no-flexgap .alt-src>*+*{margin-right:8px}
.no-flexgap .foot>*+*{margin-top:10px}
.no-flexgap .read>*+*{margin-right:6px}
.no-flexgap .tools>*+*{margin-top:10px}
.no-flexgap .form>*+*{margin-top:14px}
.no-flexgap .field>*+*{margin-top:6px}
.no-flexgap .inline>*+*{margin-right:8px}
.no-flexgap .check>*+*{margin-right:10px}
.no-flexgap .result>*+*{margin-top:4px}
.no-flexgap .actions>*+*{margin-right:8px}
.no-flexgap .danger>*+*{margin-top:10px}
.no-flexgap .side>*+*{margin-top:18px}
.no-flexgap .side-nav>*+*{margin-top:2px}
.no-flexgap .side-nav a>*+*{margin-right:10px}
.no-flexgap .side-foot>*+*{margin-top:10px}
.no-flexgap .side-status>*+*{margin-right:8px}
.no-flexgap .main>*+*{margin-top:18px}
.no-flexgap .pane>*+*{margin-top:18px}
.no-flexgap .pane-head>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .box>*+*{margin-top:12px}
.no-flexgap .prov-head>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .test-out>*+*{margin-top:8px}
.no-flexgap .pair>*+*{margin-top:2px}
.no-flexgap .fail-list li>*+*{margin-top:2px}
.no-flexgap .gl-list>*+*{margin-top:6px}
.no-flexgap .searchbar>*+*{margin-right:8px}
.no-flexgap .results>*+*{margin-top:12px}
.no-flexgap .results-head>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .hit>*+*{margin-right:14px}
.no-flexgap .hit-body>*+*{margin-top:4px}
.no-flexgap .ticker-track>*+*{margin-right:36px}
.no-flexgap .tick-item>*+*{margin-right:8px}
.no-flexgap .prompt-box>*+*{margin-top:6px}
.no-flexgap .prompt-head>*+*{margin-right:8px}
.no-flexgap .head-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .gl-tools>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .savebar>*+*{margin-right:10px}
.no-flexgap .gl-view>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .masthead>*+*{margin-top:6px}
.no-flexgap .mast-bar>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .badges>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .tday-h>*+*{margin-right:10px}
.no-flexgap .trow-main>*+*{margin-top:6px}
.no-flexgap .trow-meta>*{margin-bottom:6px;margin-left:10px}
.no-flexgap .hit-meta>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .author-pill>*+*,.no-flexgap .kind-pill>*+*{margin-right:5px}
.no-flexgap .btime>*+*{margin-right:4px}
.no-flexgap .bmid>*+*{margin-top:4px}
.no-flexgap .bcard>*+*{margin-top:10px}
.no-flexgap .bcard-top>*+*{margin-right:8px}
.no-flexgap .bcard-time>*+*{margin-right:4px}
.no-flexgap .bcol-h>*+*,.no-flexgap .bpaper-h>*+*{margin-right:8px}
.no-flexgap .bcol-list li>*+*{margin-top:5px}
.no-flexgap .bnum li>*+*{margin-right:14px}
.no-flexgap .bnum-main>*+*{margin-top:5px}
.no-flexgap .layout-opt>*+*{margin-top:10px}
.no-flexgap .layout-cap>*+*{margin-top:3px}
.no-flexgap .cd-main>*+*{margin-top:16px}
.no-flexgap .cd-box>*+*{margin-top:12px}
.no-flexgap .cd-preview>*+*{margin-top:10px}
.no-flexgap .cd-bar>*,.no-flexgap .cd-acts>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cd-checks>*{margin-bottom:6px;margin-left:18px}
.no-flexgap .cd-check>*+*{margin-right:8px}
.no-flexgap .cd-field>*+*{margin-top:6px}
.no-flexgap .cd-sub>*+*{margin-top:8px}
.no-flexgap .cd-bounds>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .cd-lfonts>*+*{margin-top:10px}
.no-flexgap .cd-lfont-h>*{margin-bottom:6px;margin-left:10px}
.no-flexgap .cd-ladd>*+*{margin-top:8px}
.no-flexgap .cd-ladd-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cd-color>*+*{margin-right:10px}
.no-flexgap .lp>*+*{margin-top:6px}
.no-flexgap .lp-row>*+*{margin-right:8px}
.no-flexgap .lp-txt>*+*{margin-top:4px}
.no-flexgap .lp-tr>*+*{margin-right:8px}
.no-flexgap .lp-card>*+*,.no-flexgap .lp-col>*+*{margin-top:5px}
.no-flexgap .lp-numcol>*+*{margin-top:8px}
.no-flexgap .lp-num>*+*{margin-right:6px}
.no-flexgap .tsheet-foot>*{margin-bottom:8px;margin-left:12px}
.no-flexgap .tab.locked>*+*{margin-right:8px}
.no-flexgap .paywall>*+*{margin-top:14px}
.no-flexgap .pw-nums>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .pw-sources>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .pw-note>*+*{margin-top:4px}
.no-flexgap .pw-actions>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .account>*+*{margin-right:8px}
.no-flexgap .acct-name>*+*{margin-right:5px}
.no-flexgap a.acct-btn>*+*{margin-right:6px}
.no-flexgap .code-step>*+*{margin-top:10px}
.no-flexgap .code-devices>*+*{margin-top:8px}
.no-flexgap .code-device>*+*{margin-right:10px}
.no-flexgap .svc-list>*+*{margin-top:10px}
.no-flexgap .svc-order>*+*{margin-top:4px}
.no-flexgap .svc-main>*+*{margin-top:6px}
.no-flexgap .svc-meta>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .svc-side>*+*{margin-top:8px}
.no-flexgap .access-seg>*+*{margin-right:4px}
.no-flexgap .cat-row>*+*{margin-right:8px}
.no-flexgap #sv-langs>*{margin-bottom:6px;margin-left:18px}
.no-flexgap .sum-body>*+*{margin-top:14px}
.no-flexgap .library-list>*+*{margin-top:8px}
.no-flexgap .library-row>*+*{margin-top:4px}
.no-flexgap .sum-head>*+*{margin-top:8px}
.no-flexgap .sum-meta>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .sum-points>*+*{margin-top:12px}
.no-flexgap .sum-foot>*+*{margin-top:10px}
.no-flexgap .sum-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sum-wait>*+*{margin-right:10px}
.no-flexgap .sum-locked>*+*{margin-top:8px}
.no-flexgap .sum-admin-head>*+*{margin-right:12px}
.no-flexgap .sum-area>*+*{margin-top:14px}
.no-flexgap .full-text>*+*{margin-top:14px}
.no-flexgap .full-sources>*+*{margin-top:10px}
.no-flexgap .fs-bar>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .fs-list>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .fs-chip>*+*{margin-top:0}
.no-flexgap .site-foot>*+*{margin-top:10px}
.no-flexgap .foot-links>*{margin-bottom:6px;margin-left:18px}
.no-flexgap .rm-form>*+*{margin-right:8px}
.no-flexgap .rm-log>*+*{margin-top:6px}
.no-flexgap .color-row>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .color-preview>*+*{margin-right:8px}
.no-flexgap .color-presets>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .color-swatch>*+*{margin-right:6px}
.no-flexgap .topbar-inner>*+*{margin-right:22px}
.no-flexgap .topbar-links>*+*{margin-right:4px}
.no-flexgap .topbar-end>*+*{margin-right:10px}
.no-flexgap .footer-col>*+*{margin-top:8px}
.no-flexgap .footer-bottom>*{margin-bottom:16px;margin-left:16px}
.no-flexgap .freshness>*+*{margin-right:8px}
.no-flexgap .insights>*+*{margin-top:20px}
.no-flexgap .ins-tile>*+*{margin-top:2px}
.no-flexgap .ins-bars>*+*{margin-top:12px}
.no-flexgap .ins-legend>*{margin-bottom:6px;margin-left:16px}
.no-flexgap .ins-legend li>*+*{margin-right:6px}
.no-flexgap .ins-cats li>*+*{margin-right:8px}
.no-flexgap .insights-head>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .ins-head-end>*+*{margin-top:6px}
.no-flexgap .obs-hero>*+*{margin-top:8px}
.no-flexgap .obs-wrap>*+*{margin-top:18px}
.no-flexgap #obs-overview>*+*,.no-flexgap #obs-country>*+*{margin-top:18px}
.no-flexgap .obs-rank>*+*{margin-top:4px}
.no-flexgap .obs-rank-name>*+*{margin-right:8px}
.no-flexgap .obs-legend-item>*+*{margin-right:8px}
.no-flexgap .obs-tile>*+*{margin-top:4px}
.no-flexgap .obs-tile-head>*+*{margin-right:8px}
.no-flexgap .obs-chart>*+*{margin-right:3px}
.no-flexgap .obs-locked>*+*{margin-top:10px}
.no-flexgap .obs-locked ul>*+*{margin-top:6px}
.no-flexgap .obs-actions>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .obs-outlets>*+*{margin-top:6px}
.no-flexgap .obs-headlines li>*+*{margin-top:4px}
.no-flexgap .obs-news-head>*+*{margin-right:12px}
.no-flexgap .obs-news-topics>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .obs-news-dayh>*+*{margin-right:10px}
.no-flexgap .obs-news-main>*+*{margin-top:6px}
.no-flexgap .obs-news-meta>*{margin-bottom:6px;margin-left:8px}
.no-flexgap .obs-soon>*+*{margin-top:6px}
.no-flexgap .obs-view>*+*{margin-top:18px}
.no-flexgap .obs-tabs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .obs-topics>*+*{margin-top:4px}
.no-flexgap .obs-spark>*+*{margin-right:2px}
.no-flexgap .obs-foot>*+*{margin-top:6px}
.no-flexgap .obs-region>*+*{margin-top:10px}
.no-flexgap .obs-region-head>*+*{margin-right:8px}
.no-flexgap .obs-region-nums>*+*{margin-right:8px}
.no-flexgap .obs-region-topics>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .obs-region-news>*+*{margin-top:8px}
.no-flexgap .obs-region-news li>*+*{margin-top:2px}
.no-flexgap .view-bar>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .ncard-video>*+*{margin-right:5px}
.no-flexgap .ncard-body>*+*{margin-top:6px}
.no-flexgap .ncard-tools>*+*{margin-right:2px}
.no-flexgap .story-head>*+*{margin-right:10px}
.no-flexgap .story-body>*+*{margin-top:14px}
.no-flexgap .story-orig>*+*{margin-top:2px}
.no-flexgap .story-tools>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .story-tool>*+*{margin-right:6px}
.no-flexgap .story-flag>*+*{margin-top:10px}
.no-flexgap .story-field>*+*{margin-top:4px}
.no-flexgap .story-flag-row>*+*{margin-right:10px}
.no-flexgap .sx-stats>*+*{margin-top:12px}
.no-flexgap .sx-tile>*+*{margin-top:2px}
.no-flexgap .sx-bar>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .sx-sel>*+*{margin-right:6px}
.no-flexgap .sx-groups>*+*{margin-top:14px}
.no-flexgap .results-end>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .story-save-btns>*+*{margin-right:8px}
.no-flexgap .acct-hero-in>*+*{margin-top:6px}
.no-flexgap .acct-tabs>*+*{margin-right:4px}
.no-flexgap .acct-stack>*+*{margin-top:18px}
.no-flexgap .acct-status > div:first-child>*+*{margin-top:2px}
.no-flexgap .acct-usage>*+*{margin-top:6px}
.no-flexgap .acct-tile>*+*{margin-top:2px}
.no-flexgap .acct-row>*+*{margin-right:14px}
.no-flexgap .acct-row-main>*+*{margin-top:3px}
.no-flexgap .acct-row-acts>*+*{margin-right:8px}
.no-flexgap .acct-tools>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .acct-folders>*+*{margin-top:10px}
.no-flexgap .acct-folder-list>*+*{margin-top:2px}
.no-flexgap .acct-folder>*+*{margin-right:8px}
.no-flexgap .acct-new-folder>*+*{margin-right:6px}
.no-flexgap .acct-folder-manage>*{margin-bottom:6px;margin-left:14px}
.no-flexgap .acct-saved-body>*+*{margin-top:8px}
.no-flexgap .acct-prefs>*+*{margin-top:16px}
.no-flexgap .acct-pref>*{margin-bottom:14px;margin-left:14px}
.no-flexgap .acct-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .acct-danger>*,.no-flexgap .acct-data>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .acct-empty>*+*{margin-top:10px}
.no-flexgap .cf-head>*{margin-bottom:6px;margin-left:14px}
.no-flexgap .cf-tabs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cf-tab>*+*{margin-right:8px}
.no-flexgap .cf-body>*+*{margin-top:14px}
.no-flexgap .cf-file-head>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .cf-tools>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cf-mail>*+*{margin-top:6px}
.no-flexgap .cf-mail-opt>*+*{margin-right:10px}
.no-flexgap .cf-mail-opt span>*+*{margin-top:2px}
.no-flexgap .cf-mail-email>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cf-mail > summary>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .cf-al-g>*+*{margin-top:4px}
.no-flexgap .cf-al-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cf-al-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .chip-check>*+*{margin-right:6px}
.no-flexgap .cf-peers-list>*+*{margin-top:6px}
.no-flexgap .cf-pager>*+*{margin-right:12px}
.no-flexgap .cf-report-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cf-tier-h>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .obs-file>*+*{margin-top:10px}
.no-flexgap .obs-file ol>*+*{margin-top:10px}
.no-flexgap .acct-signin>*+*{margin-top:10px}
.no-flexgap .archive-tail a>*+*{margin-right:8px}
.no-flexgap .arc-hero-in>*+*{margin-top:6px}
.no-flexgap .arc-crumbs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .arc-tabs>*+*{margin-right:2px}
.no-flexgap .arc-wrap>*+*{margin-top:18px}
.no-flexgap .arc-sec-head>*{margin-bottom:4px;margin-left:14px}
.no-flexgap .arc-item>*+*{margin-top:3px}
.no-flexgap .arc-lead-body>*+*{margin-top:4px}
.no-flexgap .arc-col h3>*+*{margin-right:8px}
.no-flexgap .arc-file>*+*{margin-top:6px}
.no-flexgap .arc-chips>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .arc-chips .chip>*+*{margin-right:6px}
.no-flexgap .arc-searchbar>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .arc-day>*+*{margin-top:1px}
.no-flexgap .arc-weeks li>*+*{margin-right:8px}
.no-flexgap .arc-figures div>*+*{margin-top:2px}
.no-flexgap .arc-share>*+*{margin-top:8px}
.no-flexgap .arc-bars>*+*{margin-right:4px}
.no-flexgap .arc-bar>*+*{margin-top:4px}
.no-flexgap .arc-sources li>*+*{margin-right:8px}
.no-flexgap .arc-timeline li > div>*+*{margin-top:3px}
.no-flexgap .arc-locked>*+*{margin-top:10px}
.no-flexgap .arc-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .arc-tools>*+*{margin-top:12px}
.no-flexgap .arc-range>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .arc-range label>*+*,.no-flexgap .arc-adv-form label>*+*{margin-top:4px}
.no-flexgap .arc-adv-actions>*+*{margin-right:8px}
.no-flexgap .arc-digest-list>*+*{margin-top:8px}
.no-flexgap .arc-story>*+*{margin-top:16px}
.no-flexgap .arc-prov div>*+*{margin-top:2px}
.no-flexgap .arc-cite>*+*{margin-top:8px}
.no-flexgap .story-arc>*{margin-bottom:6px;margin-left:16px}
.no-flexgap .acct-key-new>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ds-card>*+*{margin-top:12px}
.no-flexgap .ds-head>*+*{margin-right:10px}
.no-flexgap .acct-row-tags>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .acct-watch-form>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .acct-switch>*+*{margin-right:6px}
.no-flexgap .acct-brief-list>*+*{margin-top:4px}
.no-flexgap .acct-strip>*+*{margin-right:6px}
.no-flexgap .acct-bell>*+*{margin-right:4px}
.no-flexgap .acct-bell-h>*+*{margin-right:8px}
.no-flexgap .acct-bell-list li>*+*{margin-top:3px}
.no-flexgap .story-follow>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cost-chart>*+*{margin-right:4px}
.no-flexgap .cost-col>*+*{margin-top:4px}
.no-flexgap .cost-legend>*{margin-bottom:6px;margin-left:16px}
.no-flexgap .cost-legend span>*+*{margin-right:6px}
.no-flexgap .gate-title>*+*{margin-right:6px}
.no-flexgap .gate-acts>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .vis-tab>*+*{margin-top:16px}
.no-flexgap .vis-jr>*+*{margin-top:6px}
.no-flexgap .vis-shares>*+*{margin-top:7px}
.no-flexgap .vis-insights>*+*{margin-top:6px}
.no-flexgap .vis-filters>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .vis-path>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .vis-step>*+*{margin-right:6px}
.no-flexgap .vis-counter>*{margin-bottom:14px;margin-left:14px}
.no-flexgap .vis-ctr-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .login-box>*+*{margin-top:14px}
.no-flexgap .login-box form>*+*{margin-top:12px}
.no-flexgap .ds-topics>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .lock-wrap>*+*{margin-top:14px}
.no-flexgap .lock-head>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .lock-field>*+*{margin-top:6px}
.no-flexgap .pk-head>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .pk-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .pk-feeds>*+*{margin-top:6px}
.no-flexgap .pk-feed>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pk-sug>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .pk-sug > div:first-child>*+*{margin-top:4px}
.no-flexgap .pk-filters>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pk-all>*+*{margin-right:6px}
.no-flexgap .head-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .meta-pills>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .xl-trend>*+*{margin-right:10px}
.no-flexgap .xl-reports>*+*{margin-top:6px}
.no-flexgap .xl-rep-item>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .xl-prov>*+*{margin-top:6px}
.no-flexgap .so-card>*+*{margin-top:12px}
.no-flexgap .so-top>*+*{margin-right:14px}
.no-flexgap .sx-crumbs>*+*{margin-right:8px}
.no-flexgap .sx-title>*{margin-bottom:14px;margin-left:14px}
.no-flexgap .sx-side>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sx-chip>*+*,.no-flexgap .sx-meter>*+*{margin-right:8px}
.no-flexgap .sx-tabs>*+*{margin-right:4px}
.no-flexgap .sx-tab>*+*{margin-right:8px}
.no-flexgap .sx-box-head>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .sx-box-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sx-action>*+*{margin-top:4px}
.no-flexgap .sx-handles>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sx-handle>*+*{margin-top:2px}
.no-flexgap .pro-badge>*+*{margin-right:4px}
.no-flexgap .pro-sheet>*+*{margin-top:8px}
.no-flexgap .pro-teaser-head>*+*{margin-right:8px}
.no-flexgap .pro-teaser-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sb-cta>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .sb-plans>*+*{margin-top:20px}
.no-flexgap .sb-periods>*+*{margin-top:8px}
.no-flexgap .sb-toggle>*+*{margin-right:4px}
.no-flexgap .sb-card>*+*{margin-top:14px}
.no-flexgap .sb-card-head>*+*{margin-right:8px}
.no-flexgap .sb-cost>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sb-items>*+*{margin-top:8px}
.no-flexgap .sb-items li>*+*{margin-right:8px}
.no-flexgap .sb-steps li>*+*{margin-top:6px}
.no-flexgap .sb-contact-links>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .ocard-body>*+*{margin-top:8px}
.no-flexgap .ocard-foot>*+*{margin-right:10px}
.no-flexgap .ocard-who>*+*{margin-top:4px}
.no-flexgap .ocard-pills>*{margin-bottom:5px;margin-left:5px}
.no-flexgap .wr-hero>*{margin-bottom:18px;margin-left:18px}
.no-flexgap .wr-hero > div>*+*{margin-top:4px}
.no-flexgap .wr-tools>*+*{margin-top:10px}
.no-flexgap .wr-chips>*,.no-flexgap .wr-jump>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .wr-month-h>*+*{margin-right:10px}
.no-flexgap .wr-ac a>*+*{margin-top:5px}
.no-flexgap .wr-ac-top>*+*{margin-right:8px}
.no-flexgap .wr-find>*+*{margin-top:6px}
.no-flexgap .wr-card>*+*{margin-right:10px}
.no-flexgap .story-writer>*+*{margin-right:12px}
.no-flexgap .off-pill>*+*{margin-right:4px}
.no-flexgap .rep>*+*{margin-top:4px}
.no-flexgap .rep-kicker>*+*{margin-right:10px}
.no-flexgap .rep-stat>*+*{margin-top:1px}
.no-flexgap .rep-sec h4>*+*{margin-right:8px}
.no-flexgap .rep-facts>*+*,.no-flexgap .rep-sources>*+*{margin-top:7px}
.no-flexgap .rep-refs>*+*{margin-right:3px}
.no-flexgap .rep-list>*+*{margin-top:6px}
.no-flexgap .rep-tools>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .rep-saved>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .st-box>*+*{margin-top:10px}
.no-flexgap .st-savebar>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .st-q>*+*{margin-top:6px}
.no-flexgap .st-q legend>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .st-opt>*+*{margin-right:8px}
.no-flexgap .st-scope>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .st-tog>*+*{margin-right:10px}
.no-flexgap .st-tog span>*+*{margin-top:2px}
.no-flexgap .st-apply>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .st-row>*+*{margin-top:6px}
.no-flexgap .st-line>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sp>*+*{margin-top:16px}
.no-flexgap .sp-card>*+*{margin-top:10px}
.no-flexgap .sp-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sp-row .btn>*+*{margin-right:6px}
.no-flexgap .sp-rights>*+*{margin-right:8px}
.no-flexgap .sp-thumb span>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .sp-tabs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .sp-cite-pane>*+*{margin-top:8px}
.no-flexgap .sp-diff>*+*{margin-top:6px}
.no-flexgap .sp-verdict>*+*{margin-right:8px}
.no-flexgap .sp-race>*+*{margin-top:4px}
.no-flexgap .sp-race span>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .sp-stmt>*+*{margin-top:6px}
.no-flexgap .sp-chips>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sp-ent>*+*{margin-right:6px}
.no-flexgap .sp-cov>*+*{margin-top:22px}
.no-flexgap .sp-cov-h>*+*{margin-right:10px}
.no-flexgap .sp-cov-who>*+*{margin-top:6px}
.no-flexgap .sp-bg>*+*{margin-top:4px}
.no-flexgap .shr-hold>*+*{margin-top:14px}
.no-flexgap .shr-pv>*+*{margin-right:12px}
.no-flexgap .shr-link>*+*{margin-right:8px}
.no-flexgap .shr-opt>*+*{margin-top:6px}
.no-flexgap .shr-row>*+*{margin-right:10px}
.no-flexgap .shr-seg>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .shr-font>*+*{margin-right:8px}
.no-flexgap .shr-size>*+*{margin-right:10px}
.no-flexgap .shr-acts>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ft-hero-h>*{margin-bottom:12px;margin-left:24px}
.no-flexgap .ft-bar>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ft-spec-side>*+*{margin-top:6px}
.no-flexgap .ft-wrow>*+*{margin-top:6px}
.no-flexgap .ft-where li>*+*{margin-top:1px}
.no-flexgap .ft-tools>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .ft-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .ft-card>*+*{margin-top:6px}
.no-flexgap .ft-card-h>*+*{margin-right:8px}
.no-flexgap .ft-tags>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .ft-up>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ft-files li>*+*{margin-right:10px}
.no-flexgap .ins-cov-list a>*{margin-bottom:4px;margin-left:8px}
.no-flexgap .shr-frame>*{margin-bottom:8px;margin-left:12px}
.no-flexgap .shr-zoom>*+*{margin-right:6px}
.no-flexgap .svc-nav>*{margin-bottom:0;margin-left:28px}
.no-flexgap .svc-row>*+*{margin-right:2px}
.no-flexgap .fbar>*+*{margin-top:10px}
.no-flexgap .fbar-row>*{margin-bottom:8px;margin-left:10px}
.no-flexgap .fbar-scroll>*+*{margin-right:8px}
.no-flexgap .fbar-scroll .chip>*+*{margin-right:6px}
.no-flexgap .dd-btn>*+*{margin-right:8px}
.no-flexgap .dd-menu>*+*{margin-top:2px}
.no-flexgap .dd-list>*+*{margin-top:2px}
.no-flexgap .dd-item>*+*,.no-flexgap .dd-opts button>*+*{margin-right:8px}
.no-flexgap .dd-opts>*+*{margin-top:2px}
.no-flexgap .fbar-active>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .fpill>*+*{margin-right:6px}
.no-flexgap .fmini>*+*{margin-right:10px}
.no-flexgap .ttile>*+*{margin-top:3px}
.no-flexgap .np>*+*{margin-top:7px}
.no-flexgap .np-tabs>*+*{margin-right:6px}
.no-flexgap .np-chips>*+*{margin-right:5px}
.no-flexgap .np-row>*+*{margin-right:6px}
.no-flexgap .np-frame>*+*{margin-top:7px}
.no-flexgap .nav-p #topics .chip.topic>*+*{margin-right:6px}
.no-flexgap .cp-src>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .nav-p .cp-src .chip.topic>*+*{margin-right:6px}
.no-flexgap .cp-foot>*{margin-bottom:6px;margin-left:12px}
.no-flexgap .cp-crumbs>*{margin-bottom:4px;margin-left:4px}
@media (max-width: 640px){.no-flexgap .cp-more>*+*{margin-right:6px}}
.no-flexgap .sq-box>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .sq-tok>*+*{margin-right:4px}
.no-flexgap .sq-sugg>*+*{margin-top:2px}
.no-flexgap .sq-opt>*+*{margin-right:10px}
.no-flexgap .saved-bar>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .preset>*+*{margin-right:8px}
.no-flexgap .compare>*+*{margin-top:12px}
.no-flexgap .compare-head>*{margin-bottom:6px;margin-left:14px}
.no-flexgap .compare-col>*+*{margin-top:8px}
.no-flexgap .compare-pick>*+*{margin-right:8px}
.no-flexgap .compare-list>*+*{margin-top:6px}
.no-flexgap .compare-list li>*+*{margin-top:2px}
.no-flexgap .rail>*+*{margin-top:14px}
.no-flexgap .feat-opt>*+*{margin-right:10px}
.no-flexgap .feat-opt span>*+*{margin-top:2px}
.no-flexgap .ask-box>*+*{margin-top:12px}
.no-flexgap .ask-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .opd>*+*{margin-top:10px}
.no-flexgap .op-search>*+*{margin-right:8px}
.no-flexgap .opd-head>*{margin-bottom:6px;margin-left:14px}
.no-flexgap .opd-nav>*+*{margin-right:8px}
.no-flexgap .opd-pills>*{margin-bottom:5px;margin-left:5px}
.no-flexgap .opd-rest>*+*{margin-top:14px}
.no-flexgap .opd-sec>*+*{margin-top:8px}
.no-flexgap .opd-sec h3>*+*,.no-flexgap .opd-titles h3>*+*{margin-right:8px}
.no-flexgap .opd-box>*+*{margin-top:6px}
.no-flexgap .opd-who>*+*{margin-right:8px}
.no-flexgap .opd-names>*{margin-bottom:0;margin-left:8px}
.no-flexgap .opd-cites>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .opd-lock>*{margin-bottom:8px;margin-left:14px}
.no-flexgap .cx-badge>*+*{margin-right:6px}
.no-flexgap .cx-flag>*{margin-bottom:4px;margin-left:8px}
.no-flexgap .cx-panel>*+*{margin-top:10px}
.no-flexgap .cx-side>*+*{margin-top:4px}
.no-flexgap .cx-list>*+*{margin-top:10px}
.no-flexgap .cx-row>*+*{margin-top:6px}
.no-flexgap .cx-head>*{margin-bottom:6px;margin-left:10px}
.no-flexgap .cx-evs>*+*{margin-top:8px}
.no-flexgap .cx-ev>*+*{margin-top:4px}
.no-flexgap .cx-acts>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cx-raise>*+*{margin-top:6px}
.no-flexgap .cx-hours>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .ncard-bdgs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cx-feed>*+*{margin-top:12px}
.no-flexgap .cx-item>*+*{margin-top:8px}
.no-flexgap .cx-levels div>*+*{margin-top:6px}
.no-flexgap .events>*+*{margin-top:10px}
.no-flexgap .ev-live>*+*{margin-right:5px}
.no-flexgap .ev-mix>*+*{margin-right:2px}
.no-flexgap .events-legend>*{margin-bottom:2px;margin-left:12px}
.no-flexgap .events-legend span>*+*{margin-right:5px}
.no-flexgap .arc-hero .evr-facts>*{margin-bottom:2px;margin-left:16px}
.no-flexgap .evr-thumb-none>*+*{margin-top:0}
.no-flexgap .evr-body>*+*{margin-top:5px}
.no-flexgap .evr-meta>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .evr-cov>*+*{margin-top:5px}
.no-flexgap .evr-n>*+*{margin-right:8px}
.no-flexgap .evr-mixl>*{margin-bottom:3px;margin-left:12px}
.no-flexgap .evr-k>*+*{margin-right:5px}
.no-flexgap .evr-tools>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .evr-tool>*+*{margin-right:6px}
.no-flexgap .evr-bar>*{margin-bottom:8px;margin-left:16px}
.no-flexgap .evr-views a>*+*{margin-right:6px}
.no-flexgap .evg>*+*{margin-top:8px}
.no-flexgap .evg-none>*+*{margin-top:8px}
.no-flexgap .covg-h>*+*{margin-right:6px}
.no-flexgap .covg-list li>*{margin-bottom:1px;margin-left:8px}
.no-flexgap .evh-tile>*+*{margin-top:8px}
.no-flexgap .evh-merge>*+*{margin-right:6px}
.no-flexgap .evh-ladder>*+*{margin-top:2px}
.no-flexgap .featured>*+*{margin-top:10px}
.no-flexgap .featured-head>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .featured-head h2>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .featured-ctrl>*+*{margin-right:6px}
.no-flexgap .featured-track>*+*{margin-right:12px}
.no-flexgap .slide-body>*+*{margin-top:6px}
.no-flexgap .slide-meta>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .slide-count>*+*{margin-right:6px}
.no-flexgap .featured-dots>*+*{margin-right:6px}
.no-flexgap .evm-list>*+*{margin-top:6px}
.no-flexgap .evm-row label>*+*{margin-top:2px}
.no-flexgap .evm-row.log > div>*+*{margin-top:3px}
.no-flexgap .nav-d .svc-gates>*+*{margin-right:6px}
.no-flexgap .nav-h .svc-nav .tab>*+*{margin-right:6px}
.no-flexgap .ncard-frame>*+*{margin-right:10px}
.no-flexgap .ncard-frame-from>*+*{margin-right:4px}
.no-flexgap .story-term-h>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .term-card>*+*{margin-top:3px}
.no-flexgap .term-weeks li>*+*{margin-top:2px}
.no-flexgap .mt-stats>*{margin-bottom:8px;margin-left:16px}
.no-flexgap .mt-weeks>*+*{margin-right:4px}
.no-flexgap .mt-weeks li>*+*{margin-top:1px}
.no-flexgap .mt-check>*+*{margin-right:6px}
.no-flexgap .dy-when>*{margin-bottom:6px;margin-left:10px}
.no-flexgap .dy-hero-fig figcaption>*+*,.no-flexgap .dy-gallery figcaption>*+*{margin-top:2px}
.no-flexgap .dy-acts>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .dy-tl>*+*{margin-top:12px}
.no-flexgap .dy-tl li>*+*{margin-top:2px}
.no-flexgap .dy-quote>*+*{margin-top:8px}
.no-flexgap .dy-harvest>*+*,.no-flexgap .dy-sources>*+*{margin-top:8px}
.no-flexgap .dy-next-body>*+*{margin-top:8px}
.no-flexgap .dy-card-body>*+*{margin-top:6px}
.no-flexgap .dy-cal ul>*+*{margin-top:6px}
.no-flexgap .dy-cal a>*+*{margin-right:10px}
.no-flexgap .dy-slide-in>*+*{margin-top:10px}
.no-flexgap .dy-slide-in ol>*+*{margin-top:6px}
.no-flexgap .dy-bars>*+*{margin-right:4px}
.no-flexgap .day-capsule>*+*{margin-right:14px}
.no-flexgap .day-capsule .dc-t>*+*{margin-top:2px}
.no-flexgap .pp-filters>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pp-filters .chip>*+*{margin-right:6px}
.no-flexgap .pp-card-body>*+*{margin-top:4px}
.no-flexgap .pp-offices>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pp-facts>*+*{margin-top:16px}
.no-flexgap .pp-bars>*+*{margin-right:4px}
.no-flexgap .pp-legend>*{margin-bottom:6px;margin-left:16px}
.no-flexgap .pp-legend li>*+*{margin-right:6px}
.no-flexgap .pp-chips>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .pp-chips .chip>*+*{margin-right:6px}
.no-flexgap .pp-report-form>*+*{margin-top:12px}
.no-flexgap .pp-report-form label>*+*{margin-top:4px}
.no-flexgap .pp-holders>*+*{margin-top:8px}
.no-flexgap .pp-holder>*+*{margin-right:12px}
.no-flexgap .pp-compare-form>*{margin-bottom:10px;margin-left:14px}
.no-flexgap .pp-compare-form label>*+*{margin-top:4px}
.no-flexgap .pp-story-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .pp-chip>*+*{margin-right:6px}
.no-flexgap .pp-suggest>*+*{margin-top:8px}
.no-flexgap .pp-suggest-item>*+*{margin-right:12px}
.no-flexgap .pp-log>*+*{margin-top:4px}
.no-flexgap .ad>*+*{margin-top:6px}
.no-flexgap .ad-demo-g>*+*{margin-top:6px}
.no-flexgap .ad-demo-bar>*{margin-bottom:8px;margin-left:14px}
.no-flexgap .story-brief>*+*{margin-top:2px}
.no-flexgap .story-countries>*+*{margin-top:8px}
.no-flexgap .sc-row ul>*+*{margin-top:3px}
.no-flexgap .src-line>*{margin-bottom:0;margin-left:6px}
.no-flexgap .of-actions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .of-access-row>*{margin-bottom:12px;margin-left:12px}
.no-flexgap .of-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .of-logo>*+*{margin-right:10px}
.no-flexgap .of-check>*+*{margin-right:8px}
.no-flexgap .of-card-head>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .of-tags>*{margin-bottom:5px;margin-left:5px}
.no-flexgap .of-meta>*{margin-bottom:2px;margin-left:12px}
.no-flexgap .of-pulse>*+*{margin-right:10px}
.no-flexgap .of-sample li>*+*{margin-right:10px}
.no-flexgap .of-status>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .of-sec-row>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .of-move>*+*{margin-right:4px}
.no-flexgap .of-text-meta>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .of-out-row>*{margin-bottom:8px;margin-left:12px}
.no-flexgap .of-tiers>*{margin-bottom:4px;margin-left:4px}
.no-flexgap .ex-strip-head>*+*{margin-right:10px}
.no-flexgap .ex-arrows>*+*{margin-right:6px}
.no-flexgap .ex-car>*+*{margin-right:14px}
.no-flexgap .ex-dots>*+*{margin-right:6px}
.no-flexgap .ex-belt>*+*{margin-right:12px}
.no-flexgap .ex-meta-bar>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ex-meta-bar li>*+*{margin-right:6px}
.no-flexgap .ex-tools>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .ex-analyze>*+*{margin-right:6px}
.no-flexgap .ex-keys h2>*+*{margin-right:8px}
.no-flexgap .ex-keys ul>*+*{margin-top:6px}
.no-flexgap .ex-card-btn>*+*{margin-right:6px}
.no-flexgap .smc .smc-source>*+*{margin-right:6px}
.no-flexgap .ex-outlets>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ex-an-head>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .ex-an-bar>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .ex-tags>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .doc-side nav>*+*{margin-top:2px}
.no-flexgap .doc-wrap .doc-sec h2>*+*{margin-right:12px}
.no-flexgap .doc-wrap .doc-sec h3>*+*{margin-right:10px}
.no-flexgap .doc-side a>*+*,.no-flexgap .doc-mtoc a>*+*{margin-right:9px}
.no-flexgap .doc-mtoc nav>*+*{margin-top:2px}
.no-flexgap .doc-wrap .doc-sec h2:not(.doc-part)>*+*,.no-flexgap .doc-wrap .doc-sec-part h3>*+*{margin-right:12px}
.no-flexgap .ex-front>*+*{margin-top:34px}
.no-flexgap .ex-lead-b>*+*{margin-top:14px}
.no-flexgap .ex-lead-k>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .ex-lead-nav>*+*{margin-right:6px}
.no-flexgap .ex-band-h>*+*{margin-right:12px}
.no-flexgap .ex-card-b>*+*{margin-top:8px}
.no-flexgap .ex-art-side .ex-box>*+*{margin-top:10px}
.no-flexgap .ex-side-list a>*+*{margin-right:12px}
.no-flexgap .ex-side-list span>*+*{margin-top:2px}
.no-flexgap .jobs>*+*{margin-top:8px}
.no-flexgap .jobs-pill>*+*{margin-right:9px}
.no-flexgap .jobs-toast>*+*{margin-right:12px}
.no-flexgap .enc-hero>*+*{margin-top:8px}
.no-flexgap .enc-names>*{margin-bottom:14px;margin-left:14px}
.no-flexgap .enc-search>*+*{margin-right:8px}
.no-flexgap .enc-langs>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .enc-cat>*+*{margin-top:2px}
.no-flexgap .enc-card-body>*+*{margin-top:4px}
.no-flexgap .enc-otd>*+*{margin-top:8px}
.no-flexgap .enc-col>*+*,.no-flexgap .enc-link>*+*{margin-top:2px}
.no-flexgap .enc-side>*+*{margin-top:14px}
.no-flexgap .enc-fig figcaption>*+*{margin-top:2px}
.no-flexgap .enc-news>*+*{margin-top:8px}
.no-flexgap .enc-tags>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .enc-report-form>*+*{margin-top:10px}
.no-flexgap .enc-report-form label>*+*{margin-top:4px}
.no-flexgap .enc-subs>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ks-vs > header>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .ks-vs-nav>*+*{margin-right:6px}
.no-flexgap .ksx-days>*+*{margin-right:3px}
.no-flexgap .ksx-key>*+*{margin-right:14px}
.no-flexgap .tb-a .acct-strip>*+*{margin-right:0}
.no-flexgap .ft-social>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .ft-legal>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .hub-card>*+*{margin-top:10px}
.no-flexgap .hub-person>*+*{margin-right:12px}
.no-flexgap .hub-regions>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .enc-ment>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .sd-head>*+*{margin-right:8px}
.no-flexgap .sd-body>*+*{margin-top:16px}
.no-flexgap .sd-sec>*+*{margin-top:8px}
.no-flexgap .sd-sec h3>*+*{margin-right:8px}
.no-flexgap .sd-list>*+*{margin-top:6px}
.no-flexgap .sd-row>*+*{margin-right:10px}
.no-flexgap .sd-tile>*+*{margin-top:6px}
.no-flexgap .sd-chips>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .sd-chip>*+*{margin-right:6px}
.no-flexgap .sd-notices>*+*{margin-top:8px}
.no-flexgap .sd-notices ul>*+*{margin-top:8px}
.no-flexgap .sd-acts>*{margin-bottom:6px;margin-left:14px}
.no-flexgap .sd-toc>*+*{margin-top:2px}
.no-flexgap .sd-read>*+*{margin-right:8px}
.no-flexgap .sd-hint>*+*{margin-right:6px}
.no-flexgap .sd-plan>*+*{margin-right:10px}
.no-flexgap .sd-quota>*+*{margin-top:5px}
.no-flexgap .sd-quota-t>*+*{margin-right:8px}
.no-flexgap .sd-chan>*+*{margin-top:6px}
.no-flexgap .sd-quiet>*{margin-bottom:8px;margin-left:12px}
.no-flexgap .sd-quiet label>*+*{margin-top:3px}
.no-flexgap .sd-form>*+*{margin-top:8px}
.no-flexgap .sd-pulse>*+*{margin-top:6px}
.no-flexgap .sd-health>*+*{margin-top:2px}
.no-flexgap .sd-health a>*+*{margin-right:9px}
.no-flexgap .sd-preview>*+*{margin-right:12px}
.no-flexgap .cxp-kick>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cxp-cardbtn>*+*{margin-right:8px}
.no-flexgap .cxp-side>*+*{margin-top:6px}
.no-flexgap .cxp-o>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cr-st>*+*{margin-right:6px}
.no-flexgap .cr-btns>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .cr-oc>*+*{margin-top:8px}
.no-flexgap .cr-oc-top>*{margin-bottom:6px;margin-left:12px}
.no-flexgap .cr-tools>*+*{margin-top:10px}
.no-flexgap .cr-row1>*{margin-bottom:8px;margin-left:16px}
.no-flexgap .cr-seg>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .cr-seg button>*+*{margin-right:6px}
.no-flexgap .cr-file-h>*+*{margin-right:10px}
.no-flexgap .cr-main>*+*{margin-top:2px}
.no-flexgap .cr-side>*+*{margin-top:4px}
.no-flexgap .cr-detail>*+*{margin-top:10px}
.no-flexgap .cr-legend>*+*{margin-top:8px}
.no-flexgap .cr-rules>*+*{margin-top:4px}
.no-flexgap .cr-log li>*+*{margin-top:2px}
.no-flexgap .cr-log-h>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .ft-follow-in>*{margin-bottom:22px;margin-left:22px}
.no-flexgap .ft-follow-links>*{margin-bottom:22px;margin-left:22px}
.no-flexgap .ft-follow-links a>*+*{margin-right:8px}
.no-flexgap .tb-space summary>*+*{margin-right:8px}
.no-flexgap .tb-space-menu a>*+*{margin-right:9px}
.no-flexgap .vf-v>*+*{margin-right:6px}
.no-flexgap .vf-filter>*+*{margin-right:6px}
.no-flexgap .vf-filter a>*+*{margin-right:6px}
.no-flexgap .vf-countries>*+*{margin-right:2px}
.no-flexgap .vf-countries a>*+*{margin-right:6px}
.no-flexgap .vf-card>*+*{margin-top:8px}
.no-flexgap .vf-card-top>*{margin-bottom:8px;margin-left:8px}
.no-flexgap .vf-pending>*+*{margin-top:8px}
.no-flexgap .vf-pending-s>*+*{margin-right:8px}
.no-flexgap .vf-queue li>*{margin-bottom:6px;margin-left:10px}
.no-flexgap .vf-log li>*{margin-bottom:4px;margin-left:10px}
.no-flexgap .vf-narr-c>*+*{margin-top:8px}
.no-flexgap .vf-narr-c ul>*+*{margin-top:6px}
.no-flexgap .vf-narr-c li>*+*{margin-right:8px}
.no-flexgap .vf-legend div>*+*{margin-top:6px}
.no-flexgap .vf-steps>*+*{margin-top:6px}
.no-flexgap .vf-form>*+*{margin-top:14px}
.no-flexgap .vf-kind>*{margin-bottom:8px;margin-left:18px}
.no-flexgap .vf-kind label>*+*{margin-right:6px}
.no-flexgap .vf-f>*+*{margin-top:6px}
.no-flexgap .vf-row>*+*{margin-right:14px}
.no-flexgap .arc-hero .vf-kick>*{margin-bottom:10px;margin-left:10px}
.no-flexgap .vf-tldr>*+*{margin-right:14px}
.no-flexgap .vf-one>*+*{margin-top:18px}
.no-flexgap .vf-reasons>*+*{margin-top:8px}
.no-flexgap .vf-variants>*+*{margin-top:10px}
.no-flexgap .vf-vnote>*+*{margin-right:10px}
.no-flexgap .vf-tl-body>*+*{margin-top:4px}
.no-flexgap .vf-tl-head>*{margin-bottom:6px;margin-left:12px}
.no-flexgap .vf-tl-tags>*{margin-bottom:6px;margin-left:6px}
.no-flexgap .vf-tl-facts>*{margin-bottom:4px;margin-left:18px}
.no-flexgap .vf-cor-c>*+*{margin-top:8px}
/* compat:end */
