/* Self-hosted fonts (SIL Open Font License) — Arabic + Latin subsets. Noto Kufi / Naskh are variable fonts: one file per subset covers all weights. */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/ibm-plex-sans-arabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 700 900;
  font-display: optional;
  src: url(../fonts/noto-kufi-arabic-var-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 700 900;
  font-display: optional;
  src: url(../fonts/noto-kufi-arabic-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =====================================================================
   RadarScoop 2027 — "Radar 2026" design system
   One card system for dark (default) and light themes · RTL · mobile-first
   Spacing scale 4/8/12/16/24/32/44 · images: 285×285, 640×376, 1200×630
   ===================================================================== */
:root {
  --bg: #05070B;
  --band: #0A0E15;
  --surface: #10151D;
  --surface-2: #161D27;
  --surface-3: #1F2834;
  --line: rgba(148, 163, 184, .13);
  --line-2: rgba(148, 163, 184, .22);
  --ink: #F4F6FA;
  --text: #CDD5E0;
  --muted: #8E9AAC;
  --brand: #3B9EFF;
  --accent: #7C6BFF;
  --grad: linear-gradient(135deg, #3B9EFF 0%, #7C6BFF 100%);
  --live: #FF3B4A;
  --urgent: #D71F32;
  --glass: rgba(5, 7, 11, .78);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -18px rgba(0, 0, 0, .9);
  --shadow-hover: 0 18px 40px -20px rgba(0, 0, 0, .95);
  --chip-mix: #fff;
  --chip-amt: 45%;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 44px;
  --zone: 32px;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1320px;
  --gutter: 16px;
  --reading: 1.15rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF1F6; --band: #E3E8F0; --surface: #FFFFFF; --surface-2: #F4F6FA; --surface-3: #E8ECF3;
  --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .14);
  --ink: #0B1220; --text: #2A3547; --muted: #5B6778;
  --brand: #0B6FD6; --accent: #5B4BDB; --grad: linear-gradient(135deg, #0B6FD6 0%, #5B4BDB 100%);
  --glass: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 26px -16px rgba(15, 23, 42, .22);
  --shadow-hover: 0 18px 38px -18px rgba(15, 23, 42, .32);
  --chip-mix: #000; --chip-amt: 72%;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; --zone: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; --zone: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.75 var(--font-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.5; margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(59, 158, 255, .3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 12px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }
.hide-sm { display: none !important; }
@media (min-width: 768px) { .hide-sm { display: inline !important; } }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg); }

/* =========================== header =========================== */
.hdr { background: var(--bg); position: relative; z-index: 41; }
.hdr-top { display: flex; align-items: center; gap: var(--s2); min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-ar { font: 800 1.3rem/1.15 var(--font-head); letter-spacing: -.3px; }
.logo-ar b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-en { font: 600 .56rem/1 var(--font-body); letter-spacing: 3.4px; color: var(--muted); direction: ltr; text-align: right; margin-top: 5px; }
.hdr-meta { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; padding-inline-start: var(--s3); border-inline-start: 1px solid var(--line); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 74, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 74, 0); } }
.hdr-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.hdr-menu { margin-inline-start: -4px; }
.search-pill { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.search-pill span, .search-pill kbd { display: none; }
.search-pill:hover { border-color: var(--brand); color: var(--ink); }
.search-pill kbd { font: 600 .7rem var(--font-body); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; margin-inline-start: auto; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 767px) {
  .hdr .logo { margin-inline: auto; transform: translateX(-20px); }
  .logo-en { display: none; }
}
@media (min-width: 768px) {
  .hdr-top { min-height: 76px; gap: var(--s3); }
  .logo svg { width: 44px; height: 44px; }
  .logo-ar { font-size: 1.6rem; }
  .hdr-meta { display: flex; }
  .search-pill { display: flex; align-items: center; gap: 10px; width: 290px; padding: 0 14px; justify-content: flex-start; }
  .search-pill span, .search-pill kbd { display: inline; }
}
@media (min-width: 1024px) { .hdr-menu { display: none; } }

/* sticky section bar */
.nav { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-block: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: flex; align-items: center; white-space: nowrap; height: 36px; padding: 0 14px; border-radius: 10px; font: 600 .9rem/1 var(--font-body); color: var(--text); }
.nav li a:hover { background: var(--surface-2); color: var(--ink); }
.nav li a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav li a[aria-current="page"]:not(.nav-home):not(.nav-all) { background: var(--sec, var(--brand)); color: #fff; box-shadow: 0 6px 18px -8px var(--sec, var(--brand)); }
.nav .nav-home { width: 36px; padding: 0; justify-content: center; background: var(--grad); color: #fff; }
.nav .nav-home:hover { color: #fff; filter: brightness(1.1); }
.nav .nav-home .i { width: 18px; height: 18px; }
.nav .nav-all { border: 1px solid var(--line-2); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: var(--surface); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s3); border-bottom: 1px solid var(--line); }
.drawer nav { padding: var(--s1) var(--s2); display: grid; gap: 2px; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); font: 600 1rem var(--font-body); }
.drawer nav a:hover { background: var(--surface-2); }
.drawer nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sec, var(--brand)); }

/* ticker */
.ticker { display: flex; align-items: center; gap: var(--s2); height: 44px; margin: var(--s4) 0 0; padding-inline: 5px var(--s3); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.ticker-label { flex: none; display: flex; align-items: center; gap: 7px; background: var(--urgent); color: #fff; font: 700 .8rem/1 var(--font-head); height: 34px; padding: 0 14px; border-radius: 9px; }
.ticker-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 5%, #000 95%, transparent); }
.ticker-list { display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: tick var(--dur, 60s) linear infinite; }
.ticker-list:hover { animation-play-state: paused; }
.ticker-list a, .ticker-list span { font-weight: 600; font-size: .92rem; color: var(--text); }
.ticker-list time { color: var(--live); font-weight: 700; margin-inline-end: 8px; font-size: .8rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-list, .live-dot, .ticker-label::before { animation: none; } }

/* =========================== ads (AdSense only) =========================== */
.ad { display: flex; flex-direction: column; align-items: center; margin: var(--s4) auto; }
.ad-label { font-size: .64rem; letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.ad-slot { width: 100%; display: flex; justify-content: center; align-items: center; }
.ad--leader .ad-slot { min-height: 90px; max-width: 970px; }
.ad--rect .ad-slot { min-height: 250px; }
.ad--side .ad-slot { min-height: 600px; }
.ad--infeed .ad-slot { min-height: 100px; }
.ad-demo { width: 100%; height: 100%; min-height: inherit; border-radius: var(--r-lg); display: grid; place-items: center; color: var(--muted); font-size: .76rem; background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); border: 1px solid var(--line); }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* =========================== layout =========================== */
main { display: block; padding: 0 0 var(--s6); }
.grid-main { display: grid; gap: var(--s5); margin-top: var(--s4); }
@media (min-width: 1024px) { .grid-main { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); } }
.sidebar { display: flex; flex-direction: column; gap: var(--s4); }
.sticky { position: sticky; top: 76px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); position: relative; }
.section-head::after { content: ""; position: absolute; bottom: -1px; right: 0; width: 64px; height: 2px; background: var(--sec, var(--brand)); }
.section-head h2 { font-size: 1.28rem; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sec, var(--brand)); transform: rotate(45deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sec, var(--brand)) 20%, transparent); }
.more { flex: none; font: 600 .82rem var(--font-body); display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 6px 8px; border-radius: 9px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.more:hover { background: var(--sec, var(--brand)); border-color: transparent; color: #fff; }
.more .i { width: 16px; height: 16px; }

/* media */
.ph { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-md); isolation: isolate; }
.ph img { color: transparent; font-size: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ph.sq { aspect-ratio: 1 / 1; }
.ph.wd { aspect-ratio: 640 / 376; }

/* atoms */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem/1.2 var(--font-body); color: color-mix(in srgb, var(--sec, var(--brand)) var(--chip-amt), var(--chip-mix)); }
.chip-solid { background: var(--sec, var(--brand)); color: #fff; padding: 6px 11px; border-radius: 8px; align-self: flex-start; }
.chip-solid:hover { color: #fff; filter: brightness(1.1); }
.chip-glass { background: rgba(0, 0, 0, .5); color: #fff; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); align-self: flex-start; border: 1px solid rgba(255, 255, 255, .14); }
.chip-glass::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec, var(--brand)); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: .78rem; }
.meta .i { width: 14px; height: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.badge-urgent { background: var(--urgent); color: #fff; font: 700 .7rem/1 var(--font-body); padding: 5px 8px; border-radius: 6px; }

/* =========================== card system =========================== */
.pc, .card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pc:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--sec, var(--brand)) 55%, transparent); }
.pc:hover .ph img, .card:hover .ph img { transform: scale(1.05); }
.pc-img, .card > a:first-child { position: relative; display: block; }
.pc .ph, .card .ph { border-radius: 0; }
.pc h3, .card h3 { padding: var(--s2) var(--s3) 0; font: 700 .98rem/1.65 var(--font-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc .meta, .card .meta { padding: var(--s1) var(--s3) var(--s3); margin-top: auto; }
.card > .meta { order: 3; }
.card p { margin: 0; padding: 6px var(--s3) 0; color: var(--muted); font-size: .9rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3.big { font: 800 1.3rem/1.55 var(--font-head); padding-top: var(--s3); }
.pc-sec { position: absolute; top: 10px; right: 10px; z-index: 2; font: 700 .7rem/1 var(--font-body); color: #fff; background: var(--sec, var(--brand)); padding: 6px 9px; border-radius: 7px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.pc-urgent { position: absolute; top: 10px; left: 10px; z-index: 2; }
.live-count { position: absolute; bottom: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--font-body); color: #fff; background: rgba(0, 0, 0, .62); padding: 6px 9px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.live-count i, .live-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.live-eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 800 .72rem/1 var(--font-body); color: #FF6B76; background: rgba(255, 59, 74, .12); padding: 6px 10px; border-radius: 999px; }
:root[data-theme="light"] .live-eyebrow { color: #C0162A; }
.row-card { display: grid; grid-template-columns: 1fr 92px; gap: var(--s2); align-items: center; min-width: 0; }
.row-card > a { order: 2; }
.row-card .ph { border-radius: var(--r-md); }
.row-card h3 { font: 700 .93rem/1.6 var(--font-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-card .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-card:hover .ph img { transform: scale(1.06); }

/* =========================== HOME: top (feed + slider) =========================== */
.top { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 1024px) { .top { grid-template-columns: 340px minmax(0, 1fr); height: 450px; } }
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #000; box-shadow: var(--shadow); order: -1; }
@media (min-width: 1024px) { .hero { order: 0; } }
.hero-slides { position: relative; height: 300px; }
@media (min-width: 600px) { .hero-slides { height: 380px; } }
@media (min-width: 1024px) { .hero-slides { height: 100%; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 5, 9, .96) 0%, rgba(3, 5, 9, .7) 28%, rgba(3, 5, 9, 0) 62%); }
.slide-cap { position: absolute; inset: auto 0 0 0; padding: var(--s4) var(--s4) 64px; display: flex; flex-direction: column; gap: 10px; }
.slide-title { color: #fff; font: 800 1.25rem/1.5 var(--font-head); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); max-width: 780px; }
.slide-title a:hover { color: #fff; }
.slide-meta { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .78); font-size: .82rem; }
.slide-meta span { display: inline-flex; gap: 6px; align-items: center; }
.slide-meta .i { width: 15px; height: 15px; }
@media (min-width: 768px) { .slide-title { font-size: 1.7rem; } .slide-cap { padding: var(--s5) var(--s5) 70px; } }
@media (min-width: 1280px) { .slide-title { font-size: 1.95rem; line-height: 1.45; } }
.hero-nav { position: absolute; inset: auto var(--s4) var(--s3) var(--s4); display: flex; align-items: center; gap: var(--s2); z-index: 3; direction: rtl; }
.hero-dots { display: flex; gap: 6px; margin-inline-end: auto; }
.hero-dots { gap: 0; }
.dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .3s; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.dot.is-active { width: 38px; }
.dot.is-active::before { width: 28px; background: #fff; }
.hero-arrow { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-arrow:hover { background: #fff; color: #000; }
.hero-arrow .i { width: 18px; height: 18px; }

.feed { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s3) var(--s2); border-bottom: 1px solid var(--line); }
.feed-head h2 { font-size: 1.08rem; }
.feed-list { list-style: none; margin: 0; padding: 4px var(--s2); overflow-y: auto; flex: 1; max-height: 360px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
@media (min-width: 1024px) { .feed-list { max-height: none; } }
.feed-list li + li { border-top: 1px solid var(--line); }
.feed-list a { display: grid; grid-template-columns: 58px 1fr; gap: var(--s2); align-items: center; padding: 10px 4px; }
.feed-list .ph { border-radius: 10px; }
.feed-list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-list time { font: 700 .72rem var(--font-body); color: var(--brand); }
.feed-list b { font: 600 .88rem/1.55 var(--font-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-list a:hover b { color: var(--brand); }
.feed-all { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 11px; border-top: 1px solid var(--line); font: 700 .85rem var(--font-body); color: var(--brand); }
.feed-all .i { width: 16px; height: 16px; }

/* stories */
.stories { margin: var(--s4) 0 0; }
.stories-track { display: flex; gap: var(--s3); overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stories-track::-webkit-scrollbar { display: none; }
.story { flex: none; width: 84px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.story-ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #3B9EFF, #7C6BFF, #FF3B4A, #3B9EFF); transition: transform .2s; }
.story:hover .story-ring { transform: scale(1.06); }
.story-ring .ph { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); }
.story.seen .story-ring { background: var(--surface-3); }
.story > span:last-child { font-size: .72rem; line-height: 1.5; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 100; background: #030407; display: none; color: #fff; }
.sv.open { display: flex; align-items: center; justify-content: center; }
.sv-card { position: relative; width: min(440px, 100vw); height: min(780px, 100dvh); overflow: hidden; background: #000; }
@media (min-width: 480px) { .sv-card { border-radius: var(--r-xl); } }
.sv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5)); }
.sv-bars { position: absolute; top: 12px; inset-inline: 12px; display: flex; gap: 4px; z-index: 3; direction: ltr; }
.sv-bars i { flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 3px; overflow: hidden; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-top { position: absolute; top: 26px; inset-inline: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.sv-cap { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 24px 22px 32px; display: flex; flex-direction: column; gap: 16px; }
.sv-cap h2 { color: #fff; font-size: 1.35rem; }
.sv-cta { align-self: flex-start; background: #fff; color: #000; font: 700 .9rem var(--font-body); padding: 11px 20px; border-radius: 12px; }
.sv-cta:hover { color: #000; }
.sv-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; background: none; border: 0; cursor: pointer; }
.sv-prev { right: 0; } .sv-next { left: 0; }
.sv-close { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }

/* =========================== HOME: bands =========================== */
.zone { position: relative; isolation: isolate; padding: var(--zone) 0; }
.zone::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--bg); }
.zone-alt::before { background: var(--band); border-block: 1px solid var(--line); }
.zone-live { margin-top: var(--s4); }
.zone-live::before { background: radial-gradient(60% 140% at 100% 0%, rgba(255, 59, 74, .12), transparent 60%), var(--band); border-block: 1px solid rgba(255, 59, 74, .18); }
.zone-dark { --ink: #F4F6FA; --text: #CDD5E0; --muted: #97A3B5; --line: rgba(148, 163, 184, .14); --surface: #121821; --surface-2: #19212C; --chip-mix: #fff; --chip-amt: 45%; color: var(--text); }
.zone-dark::before { background: radial-gradient(60% 140% at 90% 0%, rgba(124, 107, 255, .2), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(59, 158, 255, .14), transparent 60%), #06080D; border-block: 1px solid rgba(255, 255, 255, .06); }
.zone + .ad, .zone + .zone { margin-top: 0; }
.zone .ad { margin-bottom: 0; }
body[data-page="home"] main > .wrap > .ad { margin: var(--s4) auto; }
.all-cta { display: flex; justify-content: center; margin-top: var(--s5); }

/* rails (Shahid style) — only live readers, Top list, entertainment */
.rail { position: relative; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); position: relative; }
.rail-head::after { content: ""; position: absolute; bottom: -1px; right: 0; width: 64px; height: 2px; background: var(--sec, var(--brand)); }
.rail-live .rail-head::after { background: var(--live); }
.rail-top10 .rail-head::after { background: linear-gradient(90deg, #FFB020, #FF7A1A); }
.rail-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rail-head h2 { font-size: 1.28rem; }
.rail-tools { display: flex; align-items: center; gap: 6px; }
.rail-btn { display: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.rail-btn:hover { background: var(--ink); color: var(--bg); }
.rail-btn[disabled] { opacity: .3; cursor: default; }
@media (min-width: 900px) { .rail-btn { display: grid; } }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 600px) { .rail-track { grid-auto-columns: calc((100% - var(--s3)) / 2.2); } }
@media (min-width: 900px) { .rail-track { grid-auto-columns: calc((100% - 3 * var(--s3)) / 4); } }
@media (min-width: 1200px) { .rail-track { grid-auto-columns: calc((100% - 4 * var(--s3)) / 5); } }

.top-badge { display: inline-block; font: 900 .74rem/1 var(--font-head); color: #1A1204; background: linear-gradient(135deg, #FFD34D, #FF9F1C); padding: 6px 9px; border-radius: 6px; letter-spacing: .5px; }
.rail-top10 .rail-track { grid-auto-columns: 80%; }
@media (min-width: 600px) { .rail-top10 .rail-track { grid-auto-columns: calc((100% - var(--s3)) / 2.1); } }
@media (min-width: 900px) { .rail-top10 .rail-track { grid-auto-columns: calc((100% - 2 * var(--s3)) / 3); } }
@media (min-width: 1200px) { .rail-top10 .rail-track { grid-auto-columns: calc((100% - 3 * var(--s3)) / 4); } }
.t10 { display: flex; flex-direction: column; gap: 10px; }
.t10 > a { position: relative; display: grid; grid-template-columns: 42% 1fr; align-items: end; }
.t10-n { font: 900 clamp(5.5rem, 10vw, 8.5rem)/.8 var(--font-head); color: transparent; -webkit-text-stroke: 3px rgba(255, 255, 255, .5); text-align: center; letter-spacing: -8px; transform: translateX(-16%); }
.t10 .ph { border-radius: var(--r-lg); box-shadow: -14px 0 30px rgba(0, 0, 0, .55); }
.t10:hover .t10-n { -webkit-text-stroke-color: #FFB020; }
.t10:hover .ph img { transform: scale(1.05); }
.t10-body { display: flex; flex-direction: column; gap: 6px; }
.t10 h3 { font: 700 .95rem/1.6 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* mosaic (Al Mashhad) */
.mosaic { display: grid; gap: var(--s3); }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; min-width: 0; box-shadow: var(--shadow); }
.tile .ph { border-radius: 0; height: 100%; aspect-ratio: 640 / 376; }
.tile .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 75%); z-index: 1; }
.tile:hover .ph img { transform: scale(1.05); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: var(--s3); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.tile h2, .tile h3 { color: #fff; font: 700 .98rem/1.55 var(--font-body); }
.tile-lead h2 { font: 800 1.3rem/1.5 var(--font-head); }
.tile a, .tile a:hover { color: #fff; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile .meta { color: rgba(255, 255, 255, .78); }
.tile p { margin: 0; color: rgba(255, 255, 255, .85); display: none; }
@media (min-width: 768px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaic .tile-lead { grid-row: 1 / 3; }
  .mosaic .tile-lead .ph { aspect-ratio: auto; min-height: 420px; }
  .mosaic .tile:not(.tile-lead) .ph { aspect-ratio: auto; min-height: 202px; }
  .tile-lead h2 { font-size: 1.7rem; }
  .tile-lead .cap { padding: var(--s4); }
  .tile-lead p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* lead + list with side stack */
.split { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); } }
.leadlist-in { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .leadlist-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.leadlist .stack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow); }
.stack { display: grid; gap: var(--s2); align-content: start; }
.stack > * + * { border-top: 1px solid var(--line); padding-top: var(--s2); }
.side-stack { display: flex; flex-direction: column; gap: var(--s3); }
.side-stack .ad { margin: 0; }

/* grids */
.gb { display: grid; gap: var(--s3); }
.gb-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .gb-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gb-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gb-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* duo / compact lists */
.duo { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.duo-col { display: flex; flex-direction: column; min-width: 0; }
.duo-col > .pc { margin-bottom: var(--s2); }
@media (min-width: 900px) {
  .duo-col > .pc { display: grid; grid-template-columns: 1fr 1fr; }
  .duo-col > .pc .pc-img { grid-row: 1 / 3; }
  .duo-col > .pc .ph { height: 100%; }
  .duo-col > .pc h3 { padding-top: var(--s3); font-size: 1.02rem; }
}
.heads { list-style: none; margin: 0; padding: 0 var(--s3); display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.heads li { padding: var(--s2) 0; display: flex; flex-direction: column; gap: 2px; }
.heads li + li { border-top: 1px solid var(--line); }
.heads li a { font-weight: 700; font-size: .93rem; line-height: 1.6; color: var(--ink); }
.heads li a:hover { color: var(--brand); }
.trio { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s3); min-width: 0; box-shadow: var(--shadow); }
.compact .section-head h2 { font-size: 1.08rem; }
.compact .heads { background: none; border: 0; box-shadow: none; padding: 0; margin-top: var(--s2); }
.compact .heads li:first-child { border-top: 1px solid var(--line); }

/* opinions with images */
.opinions { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .opinions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .opinions { grid-template-columns: repeat(4, 1fr); } }
.op { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.op:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.op:hover .ph img { transform: scale(1.05); }
.op .ph { border-radius: 0; }
.op-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 var(--s3) var(--s3); }
.op .who { display: flex; align-items: center; gap: 10px; margin-top: -22px; font: 700 .86rem var(--font-body); color: var(--ink); position: relative; z-index: 2; }
.op .who span:last-child { display: flex; flex-direction: column; line-height: 1.3; padding-top: 22px; }
.op .who small { font-weight: 600; font-size: .72rem; color: color-mix(in srgb, var(--sec, var(--brand)) var(--chip-amt), var(--chip-mix)); }
.op h3 { font: 700 .98rem/1.6 var(--font-body); }
.op p { margin: 0; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem var(--font-head); color: #fff; background: linear-gradient(135deg, var(--sec, var(--brand)), color-mix(in srgb, var(--sec, var(--brand)) 45%, #000)); flex: none; border: 3px solid var(--surface); }

/* dark feature band */
.fband-in { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .fband-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); } .fband .tile-lead .ph { aspect-ratio: auto; min-height: 390px; } }
.fband-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); align-content: start; }
.fband-list a { display: grid; grid-template-columns: 88px 1fr; gap: var(--s2); align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fband-list a:hover { border-color: var(--sec, var(--brand)); color: inherit; }
.fband-list .ph { border-radius: var(--r-md); }
.fband-list span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fband-list b { font: 700 .93rem/1.6 var(--font-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================== sidebar widgets =========================== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s3); box-shadow: var(--shadow); }
.panel-title { font-size: 1.05rem !important; margin-bottom: var(--s1); display: flex; align-items: center; gap: 8px; }
.panel-title .i { color: var(--brand); }
.most { counter-reset: m; display: grid; }
.most a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; line-height: 1.65; }
.most a:last-child { border-bottom: 0; padding-bottom: 0; }
.most a::before { counter-increment: m; content: counter(m); font: 900 1.6rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.follow-list { display: grid; gap: 8px; }
.follow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); font: 700 .88rem var(--font-body); color: #fff; }
.follow:hover { color: #fff; filter: brightness(1.12); }
.follow .i { width: 19px; height: 19px; }
.f-wa { background: #0F7437; } .f-gn { background: #1A5FC4; } .f-fb { background: #1459C7; } .f-x { background: #1C2230; } .f-ig { background: linear-gradient(45deg, #B8461A, #B3165A, #6E2A9A); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s3); }
.field label { font-weight: 600; font-size: .9rem; }
.input { width: 100%; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 158, 255, .2); }
textarea.input { min-height: 150px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font: 700 .93rem var(--font-body); cursor: pointer; transition: filter .15s, transform .1s; box-shadow: 0 10px 24px -12px rgba(59, 158, 255, .7); }
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-3); }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.form-msg { margin-top: 10px; font-weight: 600; font-size: .88rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #3DDC84; } .form-msg.err { color: #FF7A83; }

/* =========================== listing pages =========================== */
.crumbs { font-size: .8rem; color: var(--muted); margin: var(--s4) 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .45; }
.crumbs [aria-current] { color: var(--text); display: inline-block; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.page-head { position: relative; padding: var(--s5) var(--s4); border-radius: var(--r-xl); margin-top: var(--s2); overflow: hidden; background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--sec, var(--brand)) 32%, transparent), transparent 55%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-head::after { content: ""; position: absolute; width: 360px; height: 360px; left: -110px; top: -170px; border-radius: 50%; background: repeating-radial-gradient(circle, color-mix(in srgb, var(--sec, var(--brand)) 30%, transparent) 0 1px, transparent 1px 34px); opacity: .5; pointer-events: none; }
.page-head h1 { font-size: 1.8rem; position: relative; }
.page-head p { margin: 4px 0 0; color: var(--muted); position: relative; }
.kicker { font: 700 .78rem var(--font-body); color: color-mix(in srgb, var(--sec, var(--brand)) var(--chip-amt), var(--chip-mix)); margin-bottom: 2px; display: block; position: relative; }
@media (min-width: 768px) { .page-head { padding: var(--s6) var(--s5); } .page-head h1 { font-size: 2.3rem; } }
.author-head { display: flex; align-items: center; gap: var(--s3); position: relative; }
.author-head .avatar { width: 80px; height: 80px; font-size: 1.7rem; }
.feature { display: grid; gap: 0; margin-bottom: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.feature .ph { border-radius: 0; height: 100%; }
.feature .body { display: flex; flex-direction: column; gap: 10px; padding: var(--s4); justify-content: center; }
.feature h2 { font-size: 1.35rem; line-height: 1.55; }
.feature p { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .feature h2 { font-size: 1.7rem; } .feature .body { padding: var(--s5); } }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 560px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-cards + .ad { margin: var(--s4) auto; }
.list-rows { display: grid; gap: var(--s2); }
.list-row { display: grid; grid-template-columns: 1fr 112px; gap: var(--s3); align-items: center; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.list-row > a { order: 2; }
.list-row .ph { border-radius: var(--r-md); }
.list-row h2 { font: 700 1.02rem/1.6 var(--font-body); }
.list-row p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; display: none; }
.list-row .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-inline-start: 4px; }
@media (min-width: 768px) { .list-row { grid-template-columns: 1fr 210px; } .list-row h2 { font-size: 1.14rem; } .list-row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .list-row .ph { aspect-ratio: 640 / 376; } }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: var(--s5) 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.pager a:hover { border-color: var(--brand); color: var(--ink); }
.pager [aria-current] { background: var(--grad); color: #fff; border-color: transparent; }
.pager .gap { background: none; border: 0; min-width: 20px; }

/* =========================== article =========================== */
.article { min-width: 0; }
.article-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s4); }
.article h1 { font-size: 1.7rem; line-height: 1.55; }
@media (min-width: 768px) { .article h1 { font-size: 2.3rem; line-height: 1.5; } }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-block: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.byline .avatar { border-color: var(--bg); }
.byline strong { display: block; font: 700 .95rem var(--font-body); color: var(--ink); }
.tools { display: flex; gap: 6px; align-items: center; }
.tool { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink); }
.tool:hover { border-color: var(--brand); color: var(--brand); }
.article-figure { margin: 0 0 var(--s4); }
.article-figure .ph { border-radius: var(--r-xl); }
.article-figure figcaption { font-size: .8rem; color: var(--muted); padding-top: var(--s1); }
.article-body { font-size: var(--reading); line-height: 2.05; overflow-wrap: anywhere; color: var(--text); }
.article-body p { margin: 0 0 1.15em; }
.article-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.article-body strong { color: var(--ink); }
.article-body .ad { margin: var(--s4) auto; }
.read-also { display: block; margin: var(--s2) 0 1.4em; }
.ra-label { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--font-body); color: color-mix(in srgb, var(--sec, var(--brand)) var(--chip-amt), var(--chip-mix)); margin-bottom: var(--s1); }
.ra-label .i { width: 15px; height: 15px; }
.article-body .ra-card { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--sec, var(--brand)); text-decoration: none; color: var(--ink); font-weight: 400; box-shadow: var(--shadow); }
.article-body .ra-card:hover { border-color: var(--sec, var(--brand)); color: var(--ink); }
.ra-card .ph { border-radius: var(--r-md); }
.ra-body { display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.ra-body b { font: 700 1rem/1.6 var(--font-body); color: var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #000; margin: var(--s4) 0; }
.video button { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2305070B' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: var(--s4) 0; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s4) 0; }
.tags a { background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 9px; font-size: .85rem; font-weight: 600; }
.share { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.share-title { font: 700 .88rem var(--font-body); margin-inline-end: 6px; color: var(--muted); }
.share a, .share button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s; }
.share .i { width: 18px; height: 18px; }
.share .s-fb:hover { background: #1459C7; color: #fff; } .share .s-x:hover { background: #000; color: #fff; } .share .s-wa:hover { background: #0F7437; color: #fff; } .share .s-tg:hover { background: #17739F; color: #fff; } .share .s-cp:hover { background: var(--ink); color: var(--bg); }
.article > .share { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.cta-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-xl); background: radial-gradient(120% 160% at 100% 0%, rgba(15, 116, 55, .25), transparent 60%), var(--surface); border: 1px solid var(--line); margin: var(--s4) 0; }
.cta-follow b { font: 700 1rem var(--font-body); color: var(--ink); }
.cta-follow .follow-list { display: flex; flex-wrap: wrap; gap: 8px; }
.prevnext { display: grid; gap: var(--s2); margin: var(--s4) 0 0; }
@media (min-width: 768px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a { display: flex; flex-direction: column; gap: 6px; padding: var(--s3); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font: 700 .95rem/1.6 var(--font-body); box-shadow: var(--shadow); }
.prevnext a:hover { border-color: var(--brand); color: var(--ink); }
.prevnext small { color: var(--muted); font: 500 .76rem var(--font-body); display: flex; align-items: center; gap: 4px; }
.prevnext .nx { text-align: left; }
.prevnext .nx small { justify-content: flex-end; }
.related { margin-top: var(--s5); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .related-grid { gap: var(--s2); } .related-grid .pc h3 { font-size: .88rem; padding: 10px 10px 0; } .related-grid .pc .meta { padding: 6px 10px 10px; } .pc-sec { font-size: .64rem; } }
.readers-now .section-head { justify-content: flex-start; }
.readers-now .section-head::after { background: var(--live); }
.readers-now .section-head h2::before { background: var(--live); box-shadow: 0 0 0 4px rgba(255, 59, 74, .2); }
.lb { position: fixed; inset: 0; z-index: 110; background: rgba(3, 5, 9, .96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb .lb-x { top: 16px; left: 16px; } .lb .lb-p { right: 16px; top: 50%; } .lb .lb-n { left: 16px; top: 50%; }
.lb .lb-c { position: absolute; bottom: 18px; color: #fff; font-size: .9rem; }
.wa-pop { position: fixed; z-index: 80; bottom: 16px; left: 16px; right: 16px; max-width: 360px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-hover); padding: var(--s4); display: none; gap: 10px; border: 1px solid var(--line); border-top: 3px solid #25D366; }
.wa-pop.open { display: grid; animation: up .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.wa-pop h3 { font-size: 1.02rem; }
.wa-pop p { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.wa-pop .x { position: absolute; top: 12px; left: 12px; background: var(--surface-2); border: 0; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.wa-pop .x .i { width: 16px; height: 16px; }

/* search */
.search-box { display: flex; gap: 8px; position: relative; }
.search-box .input { font-size: 1.02rem; padding: 13px 18px; border-radius: 12px; }
.search-box .btn { flex: none; }
.search-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s2); position: relative; }
.search-filters select { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); }
mark { background: rgba(59, 158, 255, .3); color: inherit; border-radius: 4px; padding: 0 2px; }
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; opacity: .45; }
.so { position: fixed; inset: 0; z-index: 95; background: rgba(5, 7, 11, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; padding: 14vh 16px 16px; }
:root[data-theme="light"] .so { background: rgba(238, 241, 246, .95); }
.so.open { display: block; }
.so form { max-width: 720px; margin: 0 auto; }
.so .input { font-size: 1.2rem; padding: 18px 22px; }
.so .x { position: absolute; top: 18px; left: 18px; }
.so-hint { max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* static pages */
.prose { font-size: 1.05rem; line-height: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow); }
@media (min-width: 768px) { .prose { padding: var(--s5); } }
.prose h2 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose a { color: var(--brand); }
.lede { font-size: 1.08rem; color: var(--muted); margin: 0; line-height: 1.9; }
.contact-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-card { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 10px; line-height: 1.7; border: 1px solid var(--line); }
.contact-card .i { color: var(--brand); width: 24px; height: 24px; }
.contact-card a { font-weight: 700; direction: ltr; unicode-bidi: embed; }
form.panel { background: var(--surface-2) !important; box-shadow: none; }
.about-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #04060A; color: #C9D1DD; padding: var(--s5) var(--s4); margin-top: var(--s2); border: 1px solid var(--line); }
.about-hero::before { content: ""; position: absolute; width: 700px; height: 700px; left: -240px; top: -330px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(59, 158, 255, .16) 0 1px, transparent 1px 56px); }
.about-hero > * { position: relative; }
.about-hero .kicker { color: #7CC2FF; }
.about-hero h1 { color: #fff; font-size: 1.9rem; line-height: 1.45; max-width: 760px; }
.about-hero p { font-size: 1.05rem; line-height: 1.95; max-width: 720px; margin: var(--s3) 0 0; }
@media (min-width: 768px) { .about-hero { padding: 64px 56px; } .about-hero h1 { font-size: 2.6rem; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin-top: var(--s4); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: var(--s3); }
.stat b { display: block; font: 800 1.5rem/1.2 var(--font-head); color: #fff; }
.stat span { font-size: .84rem; }
.about-grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .about-grid { grid-template-columns: repeat(4, 1fr); } }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--sec, var(--brand)); box-shadow: var(--shadow); }
.about-card h2 { font-size: 1.08rem; }
.about-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.about-card a { font: 700 .85rem var(--font-body); color: color-mix(in srgb, var(--sec, var(--brand)) var(--chip-amt), var(--chip-mix)); margin-top: auto; }
.about-split { display: grid; gap: var(--s4); margin-top: var(--s5); align-items: start; }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.about-split h2 { font-size: 1.4rem; margin-bottom: var(--s2); }
.about-split p { margin: 0 0 1em; line-height: 2; font-size: 1.03rem; }
.values { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.values li { display: flex; gap: var(--s3); align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); line-height: 1.8; box-shadow: var(--shadow); }
.values li b { display: block; color: var(--ink); }
.values .n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 .9rem var(--font-head); }
.about-cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-top: var(--s5); padding: var(--s4); border-radius: var(--r-xl); background: radial-gradient(120% 160% at 100% 0%, rgba(59, 158, 255, .22), transparent 60%), var(--surface); border: 1px solid var(--line); }
.about-cta h2 { font-size: 1.3rem; }
.about-cta p { margin: 4px 0 0; color: var(--muted); }
.about-cta .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nf { text-align: center; padding: var(--s6) var(--s3); }
.nf .code { font: 900 clamp(5rem, 18vw, 9rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin: 10px 0; }

/* =========================== footer =========================== */
.ftr { position: relative; overflow: hidden; background: #04060A; color: #A3ADBC; margin-top: var(--s6); font-size: .92rem; }
.ftr::before { content: ""; position: absolute; width: 800px; height: 800px; left: -280px; top: -400px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(59, 158, 255, .08) 0 1px, transparent 1px 64px); pointer-events: none; }
.ftr::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, #FF3B4A, #7C6BFF 45%, #3B9EFF); }
.ftr .wrap { position: relative; }
.ftr a { color: #DDE3EC; }
.ftr a:hover { color: #fff; }
.ftr h2 { color: #fff; font: 700 .95rem var(--font-body); margin-bottom: var(--s3); }
.ftr .logo, .ftr .logo:hover { color: #fff; }
.ftr .logo-ar b { background: linear-gradient(135deg, #6CC4FF, #9D8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ftr-cta { display: grid; gap: var(--s4); padding: var(--s6) 0 var(--s5); border-bottom: 1px solid rgba(255, 255, 255, .07); align-items: center; }
.ftr-brand p { margin: var(--s2) 0 0; font: 700 1.02rem/1.7 var(--font-head); color: #C9D1DD; max-width: 440px; }
.ftr-news label { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s2); }
.ftr-news label b { color: #fff; font: 700 1.02rem var(--font-body); }
.ftr-news label span { color: #97A3B5; font-size: .86rem; }
.ftr-field { display: flex; gap: 6px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); padding: 6px; border-radius: 14px; }
.ftr-field .input { background: transparent; border: 0; color: #fff; padding: 10px 14px; min-width: 0; }
.ftr-field .input::placeholder { color: #8390A3; }
.ftr-field .input:focus { box-shadow: none; }
.ftr-field .btn { flex: none; }
@media (min-width: 900px) { .ftr-cta { grid-template-columns: 1fr minmax(360px, 460px); } }
.ftr-grid { display: grid; gap: var(--s5); padding: var(--s5) 0; grid-template-columns: 1fr 1fr; }
.ftr-about, .ftr-secs { grid-column: 1 / -1; }
.ftr-about p { margin: 0 0 var(--s3); line-height: 1.9; max-width: 380px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr-secs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.ftr-secs a { display: inline-flex; align-items: center; gap: 8px; }
.ftr-secs a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sec); }
.ftr-mail li { display: flex; flex-direction: column; }
.ftr-mail span { font-size: .8rem; color: #8B97A9; }
.ftr-mail a { direction: ltr; text-align: right; font-weight: 600; }
.ftr-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ftr-social a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; font-weight: 600; transition: background .15s; }
.ftr-social a:hover { background: #3B9EFF; }
.ftr-social .i { width: 17px; height: 17px; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: var(--s6); } .ftr-about, .ftr-secs { grid-column: auto; } }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .07); padding: var(--s3) 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; justify-content: space-between; font-size: .8rem; color: #8B97A9; }
.ftr-bottom nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.to-top { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.to-top:hover { background: #3B9EFF; }
@media (max-width: 767px) {
  .ftr { text-align: center; }
  .ftr-cta { padding: var(--s5) 0 var(--s4); justify-items: center; }
  .ftr-brand { display: flex; flex-direction: column; align-items: center; }
  .ftr-news { width: 100%; }
  .ftr-news label { align-items: center; }
  .ftr-grid { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s4) 0; }
  .ftr-about p { margin-inline: auto; }
  .ftr-social { justify-content: center; }
  .ftr-social a { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .ftr-social .i { width: 19px; height: 19px; }
  .ftr-secs ul { text-align: right; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--r-lg); padding: var(--s3); }
  .ftr-grid > div:nth-child(3) ul, .ftr-grid > div:nth-child(4) ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .ftr-mail li { align-items: center; }
  .ftr-mail a { text-align: center; }
  .ftr-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .ftr-bottom nav { justify-content: center; }
}

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: .9rem; z-index: 120; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pc, .card, .op, .ph img { transition: none; } }
@media print {
  .hdr, .nav, .ticker, .ad, .sidebar, .ftr, .share, .tools, .related, .prevnext, .cta-follow, .wa-pop { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================== v3 adjustments =========================== */
/* compact section menu: no sideways scrolling on desktop, extra sections under "المزيد" */
.nav ul { padding: 6px 0; gap: 2px; }
.nav li a { height: 34px; padding: 0 12px; font-size: .88rem; }
.nav .nav-home { width: 34px; }
.nav-more { display: none; position: relative; }
.nav-more summary { list-style: none; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 10px; font: 600 .88rem/1 var(--font-body); color: var(--text); cursor: pointer; white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .i { width: 16px; height: 16px; transition: transform .2s; }
.nav-more details[open] summary .i { transform: rotate(180deg); }
.nav-more summary:hover, .nav-more details[open] summary { background: var(--surface-2); color: var(--ink); }
.nav-more summary.is-active { background: var(--brand); color: #fff; }
.nav-drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-hover); z-index: 60; }
.nav-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav-drop a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec, var(--brand)); }
.nav-drop a:hover { background: var(--surface-2); color: var(--ink); }
.nav-drop a[aria-current="page"] { background: var(--sec, var(--brand)); color: #fff; }
@media (min-width: 1024px) {
  .nav ul { overflow: visible; }
  .nav .nav-x { display: none; }
  .nav-more { display: block; }
}

/* stories always centred */
.story:first-child { margin-inline-start: auto; }
.story:last-child { margin-inline-end: auto; }

/* category page: first story large with the title on the photo */
.list-lead { margin-bottom: var(--s3); }
.list-lead .tile .ph { aspect-ratio: 640 / 376; }
@media (min-width: 768px) { .list-lead .tile .ph { aspect-ratio: 16 / 7; } .list-lead .tile-lead h2 { font-size: 1.9rem; } .list-lead .tile .cap { padding: var(--s5); } }

/* دولية إقليمية: large story + 3 stacked overlay stories */
.fband-in { display: grid; gap: var(--s3); }
.fband-side { display: grid; gap: var(--s3); }
.fband-side .tile .ph { aspect-ratio: 640 / 376; }
@media (min-width: 900px) {
  .fband-in { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .fband .tile-lead .ph { aspect-ratio: auto; min-height: 100%; height: 100%; }
  .fband-side { grid-template-rows: repeat(3, 1fr); }
  .fband-side .tile .ph { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .fband-side .tile h3 { font-size: .95rem; }
}

/* بنك الدم: 2 x 2 grid of square-photo cards in a tinted panel */
.rowgrid { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--sec, var(--brand)) 18%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow); }
.rowgrid-in { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .rowgrid-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rg-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
:root[data-theme="light"] .rg-item { background: var(--surface-2); }
.split > .compact { align-self: start; }

/* متفرقات: magazine row */
.mag-in { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mag-in > .tile { grid-column: 1 / -1; }
.mag-in > .tile .ph { aspect-ratio: 640 / 376; }
@media (min-width: 900px) {
  .mag-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .mag-in > .tile { grid-column: auto; }
  .mag-in > .tile .ph { aspect-ratio: auto; height: 100%; min-height: 300px; }
}

/* fixed-height bands: photos fill their boxes (no distortion, no over-tall rows) */
@media (min-width: 900px) {
  .fband-in { height: 470px; }
  .fband-side { grid-template-rows: repeat(3, minmax(0, 1fr)); min-height: 0; }
  .fband-in > .tile, .fband-side > .tile { height: 100%; }
  .fband .tile .ph { position: absolute; inset: 0; height: auto; min-height: 0; aspect-ratio: auto; }
  .mag-in > .tile { height: 100%; min-height: 320px; }
  .mag-in > .tile .ph { position: absolute; inset: 0; height: auto; min-height: 0; aspect-ratio: auto; }
}
/* بنك الدم: blood-type badge instead of a photo */
.rg-blood { display: grid; grid-template-columns: 1fr 64px; gap: var(--s2); align-items: center; }
.rg-blood .drop { order: 2; width: 64px; height: 64px; border-radius: 50% 50% 50% 8%; transform: rotate(-45deg); background: linear-gradient(135deg, #E0263A, #8E0F1E); display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(224, 38, 58, .8); }
.rg-blood .drop b { transform: rotate(45deg); color: #fff; font: 900 1.05rem/1 var(--font-head); direction: ltr; }
.rg-blood h3 { font: 700 .95rem/1.6 var(--font-body); }
.rg-blood .body { display: flex; flex-direction: column; gap: 6px; }

/* =========================== v4 =========================== */
/* home button stays blue on the homepage */
.nav li a.nav-home[aria-current="page"] { background: var(--grad); color: #fff; }

/* mobile slider: titles on 2 lines max */
.slide-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) { .slide-title { font-size: 1.12rem; } .slide-title a { -webkit-line-clamp: 2; } .slide-cap { padding-bottom: 58px; } }

/* أمن وقضاء: newsroom grid (1 large card + 4 cards) */
.ng { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ng-big { grid-column: 1 / -1; display: flex; }
.ng-big .card { flex: 1; }
@media (min-width: 900px) {
  .ng { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
  .ng-big { grid-column: 1; grid-row: 1 / 3; }
  .ng-big .card h3.big { font-size: 1.45rem; }
  .ng-big .card p { -webkit-line-clamp: 3; }
}
@media (max-width: 480px) { .ng .pc h3 { font-size: .9rem; padding: 10px 10px 0; } .ng .pc .meta { padding: 6px 10px 10px; } }

/* دولية إقليمية: 4 cards with a summary on the dark band */
.fband-grid .card h3 { font-size: 1rem; }
.fband-grid .card p { -webkit-line-clamp: 3; padding-bottom: 4px; }

/* متفرقات / search: horizontal cards with a square photo */
.hc-grid { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc { display: grid; grid-template-columns: 124px 1fr; gap: var(--s3); align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.hc:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--sec, var(--brand)) 55%, transparent); }
.hc:hover .ph img { transform: scale(1.06); }
.hc .ph { border-radius: var(--r-md); }
.hc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hc h3 { font: 700 .98rem/1.6 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .hc { grid-template-columns: 96px 1fr; padding: 10px; gap: var(--s2); } .hc p { display: none; } }

/* category page: the first story is the same card, just wider */
.list-lead { margin-bottom: var(--s3); }
.list-lead .card { display: grid; }
@media (min-width: 768px) {
  .list-lead .card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 0; }
  .list-lead .card > a:first-child { grid-column: 1; grid-row: 1 / 5; }
  .list-lead .card > a:first-child .ph { height: 100%; }
  .list-lead .card h3, .list-lead .card p, .list-lead .card > .meta { grid-column: 2; }
  .list-lead .card h3 { grid-row: 1; padding: var(--s4) var(--s4) 0; }
  .list-lead .card p { grid-row: 2; padding: var(--s2) var(--s4) 0; -webkit-line-clamp: 4; }
  .list-lead .card > .meta { grid-row: 4; padding: var(--s3) var(--s4) var(--s4); }
  .list-lead .card h3.big { font-size: 1.6rem; }
}
.list-lead .card h3 { -webkit-line-clamp: 3; }

/* most read side box: numbers + square photos */
.most a { grid-template-columns: 26px 1fr 64px; align-items: center; }
.most a::before { content: none; }
.most-n { font: 900 1.45rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.most-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.most .ph { border-radius: 10px; }

/* story viewer: whole photo over a blurred copy */
.sv-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); transform: scale(1.1); }
.sv-card img.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.sv-card::after { z-index: 1; }

/* search page */
.search-hero { position: relative; overflow: hidden; margin-top: var(--s2); padding: var(--s5) var(--s4); border-radius: var(--r-xl); background: radial-gradient(90% 140% at 100% 0%, rgba(59, 158, 255, .22), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(124, 107, 255, .18), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.search-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -200px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(59, 158, 255, .16) 0 1px, transparent 1px 36px); pointer-events: none; }
.search-hero > * { position: relative; }
.search-hero h1 { font-size: 1.6rem; margin-bottom: var(--s3); }
@media (min-width: 768px) { .search-hero { padding: var(--s6) var(--s5); } .search-hero h1 { font-size: 2.2rem; } }
.sh-form { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 6px 6px 6px 6px; padding-inline-start: 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.sh-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 158, 255, .2); }
.sh-form > .i { color: var(--muted); }
.sh-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.05rem; padding: 12px 4px; color: var(--ink); }
.sh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s4); }
.sh-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font: 600 .84rem var(--font-body); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.sh-chips a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec, var(--brand)); }
.sh-chips a:hover { border-color: var(--sec, var(--brand)); color: var(--ink); }
.sh-chips a[aria-current="page"] { background: var(--sec, var(--brand)); border-color: transparent; color: #fff; }
.sh-chips a[aria-current="page"]::before { background: #fff; }
.sh-count { margin: 0 0 var(--s2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.sh-results .hc { align-items: start; }
.sh-empty { text-align: center; padding: var(--s6) var(--s4); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-xl); color: var(--muted); }
.sh-empty svg { width: 54px; height: 54px; margin: 0 auto var(--s2); opacity: .5; }
.sh-empty h2 { font-size: 1.25rem; margin-bottom: 6px; }
.sh-empty p { margin: 0 0 var(--s3); }

.card h2.big { font: 800 1.3rem/1.55 var(--font-head); padding: var(--s3) var(--s3) 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .list-lead .card h2 { grid-column: 2; grid-row: 1; padding: var(--s4) var(--s4) 0; font-size: 1.6rem; } }

/* =========================== v5: share + mobile header =========================== */
/* desktop: pinned "share" box in the sidebar */
.share-panel .share { gap: 8px; }
.share-panel .share a, .share-panel .share button { width: 44px; height: 44px; border-radius: 12px; }
.share-panel { margin-bottom: var(--s3); }
@media (max-width: 1023px) { .share-panel { display: none; } }
/* phones: slim bottom share bar */
.share-dock { position: fixed; z-index: 45; inset: auto 0 0 0; display: none; align-items: center; justify-content: space-between; gap: var(--s2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.share-dock.show { transform: none; }
.sd-label { display: inline-flex; align-items: center; gap: 6px; font: 700 .86rem var(--font-body); color: var(--ink); }
.sd-label .i { width: 17px; height: 17px; color: var(--brand); }
.share-dock .share { gap: 6px; flex-wrap: nowrap; }
.share-dock .share a, .share-dock .share button { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); }
.share-dock .s-wa { background: #0F7437 !important; color: #fff; border-color: transparent; }
@media (max-width: 1023px) { .share-dock { display: flex; } }
@media print { .share-dock { display: none !important; } }

/* mobile header: logo at the start, three even buttons at the end (search, theme, menu) */
@media (max-width: 767px) {
  .hdr-top { min-height: 60px; gap: 8px; }
  .hdr .logo { margin: 0; transform: none; order: 1; }
  .hdr .logo svg { width: 34px; height: 34px; }
  .hdr .logo-ar { font-size: 1.24rem; }
  .hdr-tools { order: 2; margin-inline-start: auto; gap: 6px; }
  .hdr-menu { order: 3; margin: 0; }
  .hdr .icon-btn, .hdr .search-pill { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
  .hdr .icon-btn .i, .hdr .search-pill .i { width: 19px; height: 19px; }
  .hdr-menu.icon-btn { background: var(--ink); color: var(--bg); border-color: transparent; }
}
/* home button: same blue gradient + white icon in every state (normal, hover, current page) */
.nav li a.nav-home, .nav li a.nav-home:hover, .nav li a.nav-home:focus-visible, .nav li a.nav-home[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: none; }
.nav li a.nav-home:hover { filter: brightness(1.12); }

/* =========================== v6: phones — no cramped 2-column grids =========================== */
@media (max-width: 559px) {
  .ng, .gb-3, .gb-4, .related-grid, .grid-cards { grid-template-columns: 1fr !important; gap: 10px; }
  .ng-big { grid-column: auto; }
  /* every small card becomes a horizontal card: photo beside the title */
  .ng > .pc, .gb > .pc, .gb > .card, .related-grid > .pc, .related-grid > .card, .grid-cards > .pc {
    display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 10px; align-items: start;
  }
  .ng > .pc > .pc-img, .gb > .pc > .pc-img, .related-grid > .pc > .pc-img, .grid-cards > .pc > .pc-img,
  .gb > .card > a:first-child, .related-grid > .card > a:first-child { grid-column: 1; grid-row: 1 / 3; }
  .ng > .pc .ph, .gb > .pc .ph, .gb > .card .ph, .related-grid .ph, .grid-cards > .pc .ph { aspect-ratio: 1 / 1; border-radius: 10px; }
  .ng > .pc h3, .gb > .pc h3, .gb > .card h3, .related-grid h3, .grid-cards > .pc h3 {
    grid-column: 2; grid-row: 1; padding: 0 !important; font-size: .95rem !important; line-height: 1.6; -webkit-line-clamp: 3;
  }
  .ng > .pc .meta, .gb > .pc .meta, .gb > .card > .meta, .related-grid .meta, .grid-cards > .pc .meta { grid-column: 2; grid-row: 2; padding: 6px 0 0 !important; order: 0; align-self: start; }
  .gb > .card p { display: none; }
  /* section tags stay readable: small pill under the photo corner */
  .ng > .pc .pc-sec, .gb > .pc .pc-sec, .related-grid .pc-sec, .grid-cards > .pc .pc-sec { top: 6px; right: 6px; font-size: .62rem; padding: 4px 6px; }
  .ng .pc-urgent, .gb .pc-urgent, .related-grid .pc-urgent, .grid-cards .pc-urgent { display: none; }
  .ng > .pc:hover, .gb > .pc:hover, .gb > .card:hover, .related-grid > .pc:hover, .grid-cards > .pc:hover { transform: none; }
}

/* =========================== v7: مقالات وآراء — columnist layout =========================== */
.opx { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .opx { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s4); } }
.opx-lead { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.opx-lead .ph { border-radius: 0; }
.opx-lead:hover .ph img { transform: scale(1.04); }
.opx-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--s4); border-top: 3px solid var(--sec, var(--brand)); }
.opx-q { position: absolute; top: -34px; left: var(--s4); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font: 900 3rem/1 Georgia, serif; padding-top: 18px; color: #fff; background: var(--sec, var(--brand)); box-shadow: 0 12px 24px -10px var(--sec, var(--brand)); }
.opx-body h3 { font: 800 1.3rem/1.55 var(--font-head); padding-inline-end: 64px; }
.opx-body p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opx-list { display: grid; gap: var(--s3); align-content: start; }
.opx-item { display: grid; grid-template-columns: 1fr 92px; gap: var(--s3); align-items: center; padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--sec, var(--brand)); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.opx-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.opx-item:hover .ph img { transform: scale(1.06); }
.opx-item .ph { border-radius: var(--r-md); }
.opx-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.opx-item h3 { font: 700 .98rem/1.6 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.writer { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.writer:hover { color: var(--brand); }
.writer .avatar { width: 36px; height: 36px; font-size: .8rem; border: 2px solid var(--surface); }
.writer-lg .avatar { width: 48px; height: 48px; font-size: 1rem; }
.writer-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.writer-t b { font: 700 .86rem var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.writer-lg .writer-t b { font-size: .95rem; }
.writer-t small { font-size: .74rem; color: var(--muted); }
@media (max-width: 559px) { .opx-item { grid-template-columns: 1fr 78px; padding: 12px; } .opx-body { padding: var(--s3); } .opx-body h3 { font-size: 1.12rem; } }
/* v8: opinions — list fills the lead height (no empty space) · stories heading */
@media (min-width: 900px) {
  .opx { align-items: stretch; }
  .opx-lead .ph { aspect-ratio: 16 / 8; }
  .opx-list { grid-template-rows: repeat(3, 1fr); align-content: stretch; }
  .opx-item { height: 100%; grid-template-columns: 1fr 120px; }
  .opx-item h3 { font-size: 1.05rem; -webkit-line-clamp: 3; }
  .opx-item .ph { aspect-ratio: 1; }
}
.stories .section-head { margin-bottom: var(--s3); }
.prose a, .static-page a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* v10: article video as the header (replaces the main photo) */
.video-lead { margin: var(--s3) 0 var(--s4); box-shadow: var(--shadow); }
.video-lead button img { opacity: .85; }
/* v11: ticker items are links to the articles — clear hover / focus colour */
.ticker-list a { position: relative; padding: 4px 8px; border-radius: 8px; transition: color .2s, background-color .2s; }
.ticker-list a:hover, .ticker-list a:focus-visible { color: var(--urgent); background: color-mix(in srgb, var(--urgent) 12%, transparent); text-decoration: none; }
.ticker-list a:hover time, .ticker-list a:focus-visible time { color: var(--urgent); }
.ticker-list a { --tk-hover: #FF6B77; }
[data-theme=light] .ticker-list a { --tk-hover: var(--urgent); }
.ticker-list a:hover, .ticker-list a:focus-visible, .ticker-list a:hover time, .ticker-list a:focus-visible time { color: var(--tk-hover); }
[data-theme=light] .ticker-list time { color: #B3121F; }

/* ===================== v12 — client round: listing redesign, filters, mobile fixes ===================== */
/* no sideways scrolling on phones (iOS Safari ignores overflow on body alone) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* no blue tap flash / focus box after touching links, cards and stories; keyboard focus keeps its ring */
a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
.story { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.story:focus-visible .story-ring { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- mobile menu: compact, fits one phone screen */
.drawer-panel { height: 100%; height: 100dvh; overflow: hidden; }
.drawer-head { flex: none; padding: 12px var(--s3); }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s2) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.drawer-latest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, var(--brand), #1E5FD1); box-shadow: 0 12px 24px -14px var(--brand); }
.drawer-latest > .i:first-child { width: 22px; height: 22px; flex: none; }
.drawer-latest span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.drawer-latest b { font: 800 1.02rem var(--font-head); }
.drawer-latest small { font-size: .74rem; opacity: .85; }
.drawer-t { margin: 4px 2px 0; font: 700 .72rem var(--font-body); color: var(--muted); letter-spacing: .02em; }
.drawer nav.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; }
.drawer nav.drawer-grid a { gap: 8px; padding: 9px 10px; min-height: 40px; font: 600 .88rem/1.3 var(--font-body); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.drawer nav.drawer-grid a::before { width: 7px; height: 7px; flex: none; }
.drawer nav.drawer-grid a:hover { border-color: var(--sec, var(--brand)); }
.drawer nav.drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; }
.drawer nav.drawer-links a { gap: 8px; padding: 9px 10px; min-height: 40px; font: 600 .86rem var(--font-body); color: var(--text); border-radius: var(--r-md); }
.drawer nav.drawer-links a::before { display: none; }
.drawer nav.drawer-links .i { width: 17px; height: 17px; color: var(--muted); }

/* ---------- category / all-news page */
.cat-hero { position: relative; overflow: hidden; margin-top: var(--s2); border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--sec, var(--brand)) 92%, #fff 8%), color-mix(in srgb, var(--sec, var(--brand)) 70%, #05070B) 70%); }
.cat-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -190px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .13) 0 1px, transparent 1px 34px); pointer-events: none; }
.cat-hero-in { position: relative; padding: var(--s5) var(--s4); max-width: 820px; }
.cat-hero .kicker { color: rgba(255, 255, 255, .85); }
.cat-hero .kicker::before { background: #fff; }
.cat-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 4px 0 8px; }
.cat-desc { margin: 0; color: rgba(255, 255, 255, .88); font-size: .98rem; line-height: 1.8; }
.cat-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.cat-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.cat-stats b { font-weight: 800; }
.cat-stats .i { width: 15px; height: 15px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: var(--s3) 2px 4px; margin-inline: -2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 700 .86rem var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, background-color .2s; }
.cat-chips a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec, var(--brand)); }
.cat-chips a:hover { border-color: var(--sec, var(--brand)); }
.cat-chips a[aria-current="page"] { color: #fff; background: var(--sec, var(--brand)); border-color: transparent; }
.cat-chips a[aria-current="page"]::before { background: #fff; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin: var(--s2) 0 var(--s4); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: none; padding: 8px 14px; border-radius: 10px; font: 700 .84rem var(--font-body); color: var(--muted); transition: background-color .2s, color .2s; }
.seg a:hover { color: var(--ink); background: var(--surface-2); }
.seg a[aria-current="true"] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.view-toggle { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 .82rem var(--font-body); cursor: pointer; }
.view-toggle button .i { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
/* featured: one big story + two */
.cat-top { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 900px) { .cat-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .cat-top .tile-lead { min-height: 100%; } }
.cat-top-side { display: grid; gap: var(--s3); align-content: start; }
.cat-top-side .card h3 { font-size: 1rem; }
/* cards: grid view (default) */
.lc-list { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: var(--s4); }
.lc { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.lc:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.lc-img { position: relative; display: block; }
.lc-img .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.lc:hover .ph img { transform: scale(1.05); }
.lc-img .badge-urgent { position: absolute; top: 10px; inset-inline-start: 10px; }
.lc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; border-top: 3px solid var(--sec, var(--brand)); }
.lc-sec { align-self: flex-start; font: 700 .74rem var(--font-body); color: var(--sec, var(--brand)); }
.lc h3 { font: 700 1.02rem/1.6 var(--font-head); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc h3 a:hover { color: var(--sec, var(--brand)); }
.lc p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc .meta { margin-top: auto; }
/* cards: list view */
[data-view="list"] .lc-list { grid-template-columns: 1fr; gap: var(--s2); }
[data-view="list"] .lc { flex-direction: row; align-items: stretch; }
[data-view="list"] .lc-img { flex: 0 0 clamp(120px, 32%, 280px); }
[data-view="list"] .lc-img .ph { height: 100%; aspect-ratio: auto; min-height: 150px; }
[data-view="list"] .lc-body { border-top: 0; border-inline-start: 3px solid var(--sec, var(--brand)); padding: 14px 16px; justify-content: center; }
[data-view="list"] .lc h3 { font-size: 1.1rem; -webkit-line-clamp: 2; }
@media (max-width: 559px) {
  .cat-hero-in { padding: var(--s4) var(--s3); }
  .cat-desc { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-bar { flex-direction: column; align-items: stretch; }
  .cat-bar .seg { justify-content: space-between; }
  .cat-bar .seg a { padding: 8px 10px; }
  .view-toggle { align-self: center; }
  .lc-list { grid-template-columns: 1fr; }
  [data-view="list"] .lc-img { flex-basis: 112px; }
  [data-view="list"] .lc-img .ph { min-height: 112px; }
  [data-view="list"] .lc-body { padding: 10px 12px; gap: 5px; }
  [data-view="list"] .lc h3 { font-size: .96rem; -webkit-line-clamp: 3; }
  [data-view="list"] .lc p, [data-view="list"] .lc .meta span + span { display: none; }
}

/* ---------- search: time filter + custom range */
.sh-time { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s3); }
.sh-label { display: inline-flex; align-items: center; gap: 6px; font: 700 .84rem var(--font-body); color: var(--muted); }
.sh-label .i { width: 16px; height: 16px; }
.sh-time .seg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.sh-custom { position: relative; }
.sh-custom summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; cursor: pointer; font: 700 .84rem var(--font-body); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.sh-custom summary::-webkit-details-marker { display: none; }
.sh-custom summary .i { width: 16px; height: 16px; }
.sh-custom summary.is-on, .sh-custom[open] summary { color: var(--ink); border-color: var(--brand); }
.sh-range { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.sh-range label { display: flex; flex-direction: column; gap: 4px; font: 700 .78rem var(--font-body); color: var(--muted); }
.sh-range input { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 600 .9rem var(--font-body); }
.sh-range .btn { height: 40px; }
@media (min-width: 700px) { .sh-custom[open] .sh-range { position: absolute; z-index: 5; top: 100%; inset-inline-end: 0; min-width: 380px; } }
@media (max-width: 559px) { .sh-time { justify-content: stretch; } .sh-time .seg { width: 100%; justify-content: space-between; } .sh-custom { width: 100%; } .sh-custom summary { width: 100%; justify-content: center; } .sh-range label { flex: 1; } .sh-range .btn { width: 100%; } }

/* ---------- مقالات وآراء on phones: no initials badge, name + date on one clean line */
@media (max-width: 559px) {
  .opx-item { grid-template-columns: 1fr 84px; align-items: start; }
  .opx-item .opx-text { flex-direction: column-reverse; gap: 6px; }
  .opx .writer .avatar { display: none; }
  .opx .writer-t { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .opx .writer-t b { color: var(--sec, var(--brand)); font-size: .8rem; }
  .opx .writer-t small { font-size: .72rem; white-space: nowrap; }
  .opx-item h3 { font-size: .95rem; }
}
.drawer nav.drawer-grid a { gap: 6px; padding: 8px; font-size: .86rem; }
@media (max-width: 559px) {
  .seg { overflow: visible; }
  .cat-bar .seg a, .sh-time .seg a { flex: 1 1 auto; text-align: center; padding: 8px 6px; font-size: .8rem; }
  .sh-range { flex-wrap: wrap; }
  .sh-range label { flex: 1 1 120px; min-width: 0; }
  .sh-range input { width: 100%; min-width: 0; }
}
@media (max-width: 559px) {
  .sh-range input { padding: 0 6px; font-size: .84rem; }
  .sh-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
  .sh-chips::-webkit-scrollbar { display: none; }
  .sh-chips a { flex: none; }
}
/* readable section colours: darker shade for small text and solid chips (light sections like محليات) */
.lc-sec { color: color-mix(in srgb, var(--sec, var(--brand)) 60%, #000); }
:root:not([data-theme="light"]) .lc-sec { color: color-mix(in srgb, var(--sec, var(--brand)) 65%, #fff); }
.chip-solid { background: color-mix(in srgb, var(--sec, var(--brand)) 72%, #000); }
/* عاجل ticker: the Radar Scoop mark separates the headlines */
.ticker-list { gap: 0; }
.ticker-list a, .ticker-list > span:not([aria-hidden]) { display: inline-flex; align-items: center; }
.ticker-list a::before { content: ""; flex: none; width: 18px; height: 18px; margin-inline: 18px 12px; background: url(../img/favicon.svg) center / contain no-repeat; opacity: .9; }
.ticker-list a:hover::before { opacity: 1; }
/* layout never grows to fit an ad (real AdSense units can be wider than a phone column) */
/* grid items may shrink: wide content (ads, embeds) must never widen a column past the phone screen */
:where(.grid-main, .split, .top, .mosaic, .leadlist-in, .stack, .gb, .duo, .trio, .opinions, .fband-in, .fband-side, .rowgrid-in, .hc-grid, .opx, .opx-list,
  .cat-top, .cat-top-side, .lc-list, .feature, .prevnext, .contact-grid, .about-grid, .about-split, .list-rows, .related-grid, .grid-cards, .ng) > * { min-width: 0; }
.zone > *, .article, .article-body { min-width: 0; }
.ad, .ad-slot { max-width: 100%; min-width: 0; }
.ad-slot { overflow: hidden; }
.ad ins.adsbygoogle, .ad iframe { max-width: 100% !important; }
