/* MaroCyber: one stylesheet, self-hosted fonts, no scripts. */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.db71f8a28a.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.5ef914e59b.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.31535a91ce.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.fff71a8369.woff2") format("woff2"); }
@font-face { font-family: "Kufi"; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-kufi-arabic-arabic-600-normal.922012687a.woff2") format("woff2"); }
@font-face { font-family: "Kufi"; font-weight: 700; font-display: swap; src: url("/assets/fonts/noto-kufi-arabic-arabic-700-normal.edbcd4012e.woff2") format("woff2"); }
@font-face { font-family: "Naskh"; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-naskh-arabic-arabic-400-normal.4cfbd9ac41.woff2") format("woff2"); }
@font-face { font-family: "Naskh"; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-naskh-arabic-arabic-600-normal.74f7f935d2.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.756026ff72.woff2") format("woff2"); }

:root {
  --bg: #060b1a;
  --bg-2: #0a1226;
  --surface: #0e1830;
  --surface-2: #132042;
  --line: #1c2a4d;
  --line-soft: #16223f;
  --text: #e8edf8;
  --text-2: #b4bfd6;
  --muted: #7e8bab;
  --mint: #5fe0bd;
  --mint-dim: #2a8c74;
  --gold: #d4b36a;
  --critical: #ff5d6c;
  --high: #ff9a4d;
  --medium: #f3c84b;
  --low: #7fb2ff;
  --k-incident: #ff6b7a;
  --k-advisory: #7fb2ff;
  --k-scam: #ffb24d;
  --k-analysis: #b79cff;
  --k-guide: #5fe0bd;
  --k-opinion: #ff8fc8;
  --radius: 16px;
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Naskh", "Plex", "Segoe UI", Tahoma, Arial, serif;
  --font-ar-head: "Kufi", "Plex", "Segoe UI", Tahoma, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 19px; line-height: 2; }
html[lang="ar"] :is(h1, h2, h3, .nav a, .cta, .btn, .eyebrow, .kind, .sev, .latest h2, .row-head a, .meta, .byline, .strip, .foot h2, .langs a[lang="ar"], .choose strong) { font-family: var(--font-ar-head); letter-spacing: 0; }
html[lang="ar"] .card p, html[lang="ar"] .lead p, html[lang="ar"] .lead-text { font-family: var(--font-ar); }
a { color: var(--mint); text-decoration-color: rgba(95, 224, 189, .4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
html[lang="ar"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: .85rem; font-weight: 600; }

/* Top strip */
.strip { background: #040814; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .78rem; }
.strip .wrap { display: flex; align-items: center; gap: 10px; height: 34px; }
.strip-date { margin-inline-start: auto; font-family: var(--mono); }
html[lang="ar"] .strip-date { font-family: var(--font-ar); }
.strip .strip-langs { display: none; }
.strip .wrap > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 224, 189, .15); }

/* Header */
.top { background: rgba(6, 11, 26, .92); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(140%) blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font: 700 1.38rem/1 var(--font); letter-spacing: -.02em; direction: ltr; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 42px; height: 22px; }
.brand b { color: var(--mint); font-weight: 700; }
.brand i, .chooser h1 i { display: inline-block; font-style: normal; color: transparent; background: linear-gradient(90deg, #fff 50%, var(--mint) 50%); -webkit-background-clip: text; background-clip: text; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.cta { color: #04120d; background: var(--mint); text-decoration: none; font-weight: 700; font-size: .84rem; padding: 9px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(95, 224, 189, .7); }
.cta:hover { background: #7cead0; }
.cta[aria-current="page"] { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  .strip-date { display: none; }
  .top-row { height: 58px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand img { width: 32px; height: 17px; }
  .top-actions { gap: 8px; }
  .cta { font-size: .74rem; padding: 7px 11px; }
  .top-actions .langs { display: none; }
  .strip .strip-langs { display: flex; margin-inline-start: auto; padding: 1px; gap: 2px; background: transparent; border-color: var(--line-soft); }
  .strip-langs a { min-width: 26px; padding: 4px 7px; font-size: .68rem; }
  .strip-langs a[lang="ar"] { padding-top: 2px; padding-bottom: 3px; font-size: .78rem; }
}
.langs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { min-width: 34px; text-align: center; color: var(--text-2); text-decoration: none; font: 600 .78rem/1 var(--font); padding: 7px 10px; border-radius: 999px; }
.langs a[lang="ar"] { font-family: var(--font-ar); font-size: .9rem; padding-top: 5px; padding-bottom: 6px; }
.langs a[aria-current="true"] { background: var(--mint); color: #04120d; }
.nav { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(14, 24, 48, .55), rgba(6, 11, 26, 0)); }
.nav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 10px 20px; }
.nav-row::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 600; padding: 9px 11px; border-radius: 12px; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.nav a:hover { color: #fff; background: var(--surface); border-color: var(--line-soft); }
.nav a[aria-current="page"] { color: #fff; background: var(--surface-2); border-color: var(--line); box-shadow: inset 0 -2px 0 var(--d, var(--mint)); }
.nav-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--d, var(--mint)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d, var(--mint)) 18%, transparent); }
.nav-home { --d: var(--mint); } .nav-incident { --d: var(--k-incident); } .nav-advisory { --d: var(--k-advisory); }
.nav-scam { --d: var(--k-scam); } .nav-opinion { --d: var(--k-opinion); } .nav-timeline { --d: #ffffff; } .nav-analysis { --d: var(--k-analysis); } .nav-guide { --d: var(--k-guide); } .nav-darna { --d: var(--gold); }
html[lang="ar"] .nav a { font-size: .95rem; font-weight: 600; }

/* Labels */
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kind { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--k, var(--mint)); display: inline-flex; align-items: center; gap: 7px; }
.kind::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--k, var(--mint)); }
html[lang="ar"] .kind { font: 600 .82rem/1 var(--font-ar); letter-spacing: 0; }
.kind-news { --k: var(--mint); }
.kind-incident { --k: var(--k-incident); }
.kind-advisory { --k: var(--k-advisory); }
.kind-scam { --k: var(--k-scam); }
.kind-analysis { --k: var(--k-analysis); }
.kind-guide { --k: var(--k-guide); }
.kind-opinion { --k: var(--k-opinion); }
.sev { font: 600 .68rem/1 var(--font); letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; border: 1px solid currentColor; }
html[lang="ar"] .sev { font: 600 .78rem/1 var(--font-ar); letter-spacing: 0; }
.sev-critical { color: var(--critical); background: rgba(255, 93, 108, .1); }
.sev-high { color: var(--high); background: rgba(255, 154, 77, .1); }
.sev-medium { color: var(--medium); background: rgba(243, 200, 75, .08); }
.sev-low { color: var(--low); background: rgba(127, 178, 255, .08); }
.meta, .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* Hero */
.hero { position: relative; padding: 46px 0 50px; border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(95, 224, 189, .12), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(127, 178, 255, .08), transparent 60%),
    var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.lead { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.lead h1 { margin: 2px 0 0; font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
html[lang="ar"] .lead h1 { letter-spacing: 0; line-height: 1.45; }
.lead h1 a { color: #fff; text-decoration: none; }
.lead h1 a:hover { color: var(--mint); }
.lead p { margin: 0; color: var(--text-2); font-size: 1.08rem; max-width: 60ch; }
.latest h2 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; font-weight: 500; }
html[lang="ar"] .latest h2 { font-family: var(--font-ar); letter-spacing: 0; font-size: .9rem; }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.latest li:first-child { border-top: 0; padding-top: 4px; }
.latest .num { font: 500 .8rem/1.9 var(--mono); color: var(--mint-dim); }
.latest li > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.latest a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.latest a:hover { color: var(--mint); }

/* Rows and cards */
main { display: block; }
.row { padding: 56px 0 8px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.row-head h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.row-head a { font-size: .86rem; text-decoration: none; font-weight: 500; }
.bar { display: inline-block; width: 5px; height: 1.15em; border-radius: 2px; background: var(--mint); }
.bar-news { background: var(--mint); } .bar-incident { background: var(--k-incident); } .bar-advisory { background: var(--k-advisory); } .bar-scam { background: var(--k-scam); }
.bar-analysis { background: var(--k-analysis); } .bar-guide { background: var(--k-guide); } .bar-opinion { background: var(--k-opinion); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; min-height: 230px; border-radius: 18px; background: linear-gradient(165deg, var(--surface-2), var(--surface) 55%); border: 1px solid var(--line-soft); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k, var(--mint)); opacity: .9; }
.card:has(.kind-incident) { --k: var(--k-incident); } .card:has(.kind-advisory) { --k: var(--k-advisory); } .card:has(.kind-scam) { --k: var(--k-scam); } .card:has(.kind-analysis) { --k: var(--k-analysis); } .card:has(.kind-guide) { --k: var(--k-guide); } .card:has(.kind-news) { --k: var(--mint); } .card:has(.kind-opinion) { --k: var(--k-opinion); }
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); }
.card h3 { margin: 0; font-size: 1.3rem; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
html[lang="ar"] .card h3 { letter-spacing: 0; line-height: 1.6; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { margin: 0; color: var(--text-2); font-size: 1rem; flex: 1; }
.grid > .card:only-child { grid-column: 1 / -1; min-height: 0; padding: 30px 32px 26px; }
.grid > .card:only-child h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); max-width: 34ch; }
.grid > .card:only-child p { max-width: 75ch; font-size: 1.05rem; }

/* Promo */
.promo { margin: 56px 0 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 30px 34px; border-radius: 24px;
  background: radial-gradient(500px 240px at 0% 0%, rgba(95, 224, 189, .18), transparent 70%), linear-gradient(135deg, #0f1d3d, #0a1430); border: 1px solid #22346a; }
.promo-mark { width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center; background: #060b1a; border: 1px solid var(--line); box-shadow: inset 0 0 40px rgba(95, 224, 189, .08); }
.promo-mark img { width: 72px; height: auto; }
.promo-text { display: flex; flex-direction: column; gap: 8px; }
.promo h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.015em; }
html[lang="ar"] .promo h2 { letter-spacing: 0; line-height: 1.5; }
.promo p { margin: 0; color: var(--text-2); max-width: 62ch; }
.btn { display: inline-block; background: var(--mint); color: #04120d; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(95, 224, 189, .6); }
.btn:hover { background: #7cead0; }

/* Section page */
.section-hero { padding: 44px 0 30px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(700px 300px at 10% -20%, rgba(95, 224, 189, .1), transparent 60%); }
.section-hero h1 { margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.section-body { padding: 34px 20px 70px; }
.empty { color: var(--muted); }

/* Article */
.article-head { padding: 50px 0 34px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(800px 320px at 20% -30%, rgba(95, 224, 189, .1), transparent 60%); }
.article-head h1 { margin: 16px 0 14px; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.14; letter-spacing: -.025em; font-weight: 700; }
html[lang="ar"] .article-head h1 { letter-spacing: 0; line-height: 1.45; }
.lead-text { margin: 0 0 22px; color: var(--text-2); font-size: 1.18rem; line-height: 1.55; }
.article { padding-top: 34px; padding-bottom: 40px; }
.article p, .article li { color: #d6ddee; }
.article h2 { font-size: 1.4rem; letter-spacing: -.015em; margin: 40px 0 10px; }
.article h3 { font-size: 1.12rem; margin: 26px 0 6px; }
.article ul, .article ol { padding-inline-start: 22px; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--mint); }
.article strong { color: #fff; }
.article blockquote { margin: 22px 0; padding: 16px 20px; background: var(--surface); border-inline-start: 3px solid var(--k-scam); border-radius: 10px; font-family: var(--mono); font-size: .92rem; }
html[lang="ar"] .article blockquote { font-family: var(--font-ar); font-size: 1rem; }
.article blockquote p { margin: 0; }
.keypoints { margin: 4px 0 30px; padding: 22px 26px 14px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.keypoints h2 { margin: 0 0 6px; font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); font-weight: 500; }
html[lang="ar"] .keypoints h2 { font-family: var(--font-ar); letter-spacing: 0; font-size: .95rem; }
.sources { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.sources h2 { margin: 0 0 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
html[lang="ar"] .sources h2 { font-family: var(--font-ar); letter-spacing: 0; font-size: .95rem; }
.sources li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.sources .mono { color: var(--muted); }
.related { padding: 40px 0 10px; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.related h2 { margin: 0 0 18px; font-size: 1.2rem; }
.related + .wrap .promo { margin-top: 40px; }

/* Pictures and step cards (guides) */
.figure { margin: 26px 0 30px; }
.figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; text-align: center; }
.article-guide ol, .article-scam ol { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; margin: 18px 0 24px; }
.article-guide ol > li, .article-scam ol > li { counter-increment: step; position: relative; margin: 0; padding: 16px 18px; padding-inline-start: 66px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; min-height: 58px; }
.article-guide ol > li::before, .article-scam ol > li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #04120d; font: 700 1rem/1 var(--font); }

/* MaroCyber's view (opinion box) */
.view { position: relative; margin: 40px 0 10px; padding: 26px 28px 18px; border-radius: 18px; background: linear-gradient(160deg, #1a1530, var(--surface)); border: 1px solid #3a2c55; }
.view h2 { margin: 6px 0 8px; font-size: 1.25rem; }
.view p { color: #e4dcf2; font-size: 1.04rem; }
.view-tag { display: inline-block; font: 600 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-opinion); border: 1px solid currentColor; border-radius: 6px; padding: 4px 8px; }
html[lang="ar"] .view-tag { font: 600 .8rem/1 var(--font-ar-head); letter-spacing: 0; }

/* Timeline: complete year-by-year archive */

.section-lead {
  margin: 12px 0 0;
  color: var(--text-2);
  max-width: 60ch;
}

.timeline-page .wrap,
.tl-body {
  min-inline-size: 0;
}

.tl-all {
  margin: 36px 0 24px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.5;
  scroll-margin-block-start: 6rem;
}

.tl-year {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  padding-block: 28px;
  border-block-start: 1px solid var(--line);
}

.tl-year h3 {
  margin: 0;
  color: var(--text-2);
  font: 500 2rem/1.3 var(--mono);
  font-variant-numeric: lining-nums tabular-nums;
}

.tl-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 1px solid var(--line);
}

.tl-item {
  position: relative;
  padding-block: 0 28px;
  padding-inline: 24px 0;
}

.tl-item:last-child {
  padding-block-end: 0;
}

.tl-dot {
  position: absolute;
  inset-inline-start: -6px;
  inset-block-start: 9px;
  inline-size: 11px;
  block-size: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--bg);
}

.tl-incident { background: var(--k-incident); }
.tl-advisory { background: var(--k-advisory); }
.tl-scam { background: var(--k-scam); }
.tl-analysis { background: var(--k-analysis); }
.tl-news,
.tl-guide { background: var(--mint); }
.tl-opinion { background: var(--k-opinion); }

.tl-body .labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.tl-body time {
  color: var(--text-2);
  font-size: .85rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.tl-body > a {
  display: block;
  margin: 9px 0 6px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tl-body > a:hover {
  color: var(--mint);
}

.tl-body p {
  margin: 0;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* Interactive timeline: signal desk, CSS only */

/* Without :has(), the complete archive remains available. */
.tla-shell {
  display: none;
}

@supports selector(label:has(> input:checked)) {
  .tla-shell {
    display: block;
  }
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tla-shell,
.tla-shell *,
.tla-shell *::before,
.tla-shell *::after {
  box-sizing: border-box;
}

.tla-shell {
  margin: 30px 0 18px;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(
      ellipse at 0 0,
      rgba(95, 224, 189, .055),
      transparent 58%
    ),
    linear-gradient(160deg, var(--surface-2), var(--surface) 64%);
}

.tla-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px 24px;
}

.tla-kicker {
  margin: 0 0 9px;
  color: var(--mint);
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tla-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 0;
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.6;
}

.tla-range {
  color: var(--text);
  font: 500 1.15rem/1.6 var(--mono);
}

.tla-stats bdi,
.tla-counter bdi,
.tla-year,
.tla-stamp {
  font-variant-numeric: lining-nums tabular-nums;
}

.tla-skip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  color: var(--text-2);
  font-size: .85rem;
  line-height: 1.6;
  text-decoration: none;
}

.tla-skip:hover {
  color: var(--mint);
}

.tla-hint {
  max-inline-size: 80ch;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: .84rem;
  line-height: 1.8;
}

.tla {
  --tla-rail-height: 108px;
  position: relative;
  min-inline-size: 0;
  inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

/*
 * Keep this scroller unpositioned, without transform or containment.
 * The actual cards use .tla as their containing block, so they remain
 * stationary beneath the rail rather than scrolling with its dots.
 */
.tla-track {
  display: flex;
  align-items: flex-start;
  block-size: var(--tla-rail-height);
  padding: 10px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--mint-dim) var(--bg-2);
}

html[dir="ltr"] .tla-track {
  direction: ltr;
}

html[dir="rtl"] .tla-track {
  direction: rtl;
}

.tla-dot {
  --k: var(--mint);
  position: relative;
  display: block;
  flex: 0 0 56px;
  inline-size: 56px;
  block-size: 80px;
  cursor: pointer;
}

.tla-dot::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 46px;
  block-size: 1px;
  background: var(--line);
}

.tla-dot:first-of-type::before {
  inset-inline-start: 50%;
}

.tla-dot:last-of-type::before {
  inset-inline-end: 50%;
}

/* The native input sits at its dot, including for focus scrolling. */
.tla-in {
  position: absolute;
  z-index: 2;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tla-pin {
  position: absolute;
  z-index: 1;
  inset-inline-start: calc(50% - 7px);
  inset-block-start: 39px;
  inline-size: 14px;
  block-size: 14px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--k);
  box-shadow: 0 0 0 1px var(--k);
  transition: transform .15s ease, box-shadow .15s ease;
}

.tla-year,
.tla-stamp {
  position: absolute;
  inset-inline: 0;
  display: block;
  text-align: center;
}

/* Physical sides: the label is dir="ltr", so logical insets would flip in Arabic. */
html[dir="ltr"] .tla-year { left: 0; right: auto; }
html[dir="rtl"] .tla-year { right: 0; left: auto; }

.tla-year {
  inline-size: calc(var(--n, 1) * 56px);
}

/* Width of each year label = number of dots in that year x 56px.
   Inline styles are blocked by the CSP, so build.py picks one of these classes. */
.tla-n1 { --n: 1; }
.tla-n2 { --n: 2; }
.tla-n3 { --n: 3; }
.tla-n4 { --n: 4; }
.tla-n5 { --n: 5; }
.tla-n6 { --n: 6; }
.tla-n7 { --n: 7; }
.tla-n8 { --n: 8; }
.tla-n9 { --n: 9; }
.tla-n10 { --n: 10; }
.tla-n11 { --n: 11; }
.tla-n12 { --n: 12; }
.tla-n13 { --n: 13; }
.tla-n14 { --n: 14; }
.tla-n15 { --n: 15; }
.tla-n16 { --n: 16; }
.tla-n17 { --n: 17; }
.tla-n18 { --n: 18; }
.tla-n19 { --n: 19; }
.tla-n20 { --n: 20; }
.tla-n21 { --n: 21; }
.tla-n22 { --n: 22; }
.tla-n23 { --n: 23; }
.tla-n24 { --n: 24; }
.tla-n25 { --n: 25; }
.tla-n26 { --n: 26; }
.tla-n27 { --n: 27; }
.tla-n28 { --n: 28; }
.tla-n29 { --n: 29; }
.tla-n30 { --n: 30; }
.tla-n31 { --n: 31; }
.tla-n32 { --n: 32; }
.tla-n33 { --n: 33; }
.tla-n34 { --n: 34; }
.tla-n35 { --n: 35; }
.tla-n36 { --n: 36; }
.tla-n37 { --n: 37; }
.tla-n38 { --n: 38; }
.tla-n39 { --n: 39; }
.tla-n40 { --n: 40; }

.tla-year {
  pointer-events: none;
  inset-block-start: 3px;
  color: var(--text-2);
  font: 500 .82rem/1.4 var(--mono);
}

.tla-stamp {
  inset-block-start: 65px;
  color: var(--text-2);
  font: 400 .65rem/1.4 var(--mono);
}

.tla-dot:hover .tla-pin {
  transform: scale(1.15);
}

.tla-in:checked ~ .tla-pin {
  transform: scale(1.2);
  box-shadow:
    0 0 0 2px var(--text),
    0 0 0 7px var(--surface-2);
}

/* A thin dashed divider marks where one year ends and the next begins. */
.tla-new-year::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0 4px;
  border-inline-start: 1px dashed var(--text-2);
  opacity: .45;
  pointer-events: none;
}

.tla-in:checked ~ .tla-stamp {
  color: var(--text);
  font-weight: 600;
}

.tla-in:focus-visible ~ .tla-pin {
  outline: 3px solid var(--mint);
  outline-offset: 8px;
}

.tlk-incident,
.tlc-incident { --k: var(--k-incident); }

.tlk-advisory,
.tlc-advisory { --k: var(--k-advisory); }

.tlk-scam,
.tlc-scam { --k: var(--k-scam); }

.tlk-analysis,
.tlc-analysis { --k: var(--k-analysis); }

.tlk-news,
.tlc-news,
.tlk-guide,
.tlc-guide { --k: var(--mint); }

.tlk-opinion,
.tlc-opinion { --k: var(--k-opinion); }

.tla-card {
  display: none;
  position: absolute;
  inset-inline: 0;
  inset-block-start: var(--tla-rail-height);
  inset-block-end: 0;
  min-inline-size: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--k, var(--mint));
  border-radius: 14px;
  background: var(--bg-2);
  text-align: start;
}

.tla-dot:has(> .tla-in:checked) + .tla-card {
  display: block;
}

/* Shared grid cell reserves the tallest complete card at this width. */
.tla-reserve {
  display: grid;
  min-inline-size: 0;
  visibility: hidden;
  pointer-events: none;
}

.tla-card.tla-measure {
  display: block;
  position: static;
  grid-area: 1 / 1;
}

.tla-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-2);
  font-size: .83rem;
  line-height: 1.7;
}

.tla-meta .kind {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tla-severity {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}

.tla-meta time {
  margin-inline-start: auto;
  font-variant-numeric: lining-nums tabular-nums;
}

.tla-card .tla-title {
  max-inline-size: 36ch;
  margin: 20px 0 12px;
  color: var(--text);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.tla-title > a,
.tla-title > span {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tla-title > a:hover {
  color: var(--mint);
}

.tla-card .tla-summary {
  max-inline-size: 70ch;
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.tla-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin-block-start: 24px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--line-soft);
}

.tla-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: 44px;
  max-inline-size: 100%;
  color: var(--mint);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.tla-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tla-arrow {
  flex: none;
  font-family: var(--font);
}

html[dir="rtl"] .tla-arrow {
  transform: scaleX(-1);
}

.tla-counter {
  color: var(--text-2);
  font-size: .75rem;
  line-height: 1.8;
}

.tla-counter bdi {
  display: inline-block;
  margin-inline-start: 6px;
  color: var(--text);
  font-family: var(--mono);
}

.timeline-page :is(
  .tla-title > a,
  .tla-more,
  .tla-skip,
  .tl-body > a,
  #all-events
):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 3px;
}

html[lang="ar"] .timeline-page {
  font-family: var(--font-ar);
}

html[lang="ar"] :is(
  .tla-title,
  .tla-kicker,
  .tl-body > a,
  .tl-all
) {
  font-family: var(--font-ar-head);
  letter-spacing: 0;
}

html[lang="ar"] .tla-kicker {
  text-transform: none;
  line-height: 1.9;
}

html[lang="ar"] .tla-card .tla-title,
html[lang="ar"] .tl-body > a {
  line-height: 1.85;
}

@media (max-width: 560px) {
  .tla-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .tla-toolbar {
    gap: 6px 14px;
  }

  .tla-meta time {
    flex-basis: 100%;
    margin-inline-start: 0;
  }

  .tla-card {
    padding: 18px;
  }

  .tla-footer {
    gap: 8px 14px;
    margin-block-start: 20px;
  }

  .tl-year {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 24px;
  }

  .tl-year h3 {
    font-size: 1.7rem;
  }

  .tl-item {
    padding-inline-start: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tla-pin {
    transition: none;
  }
}

@media (forced-colors: active) {
  .tla-pin {
    forced-color-adjust: none;
    background: CanvasText;
    border-color: Canvas;
    box-shadow: 0 0 0 1px CanvasText;
  }

  .tla-in:checked ~ .tla-pin {
    background: Highlight;
    box-shadow: 0 0 0 3px Highlight;
  }

  .tla-in:focus-visible ~ .tla-pin {
    outline-color: Highlight;
  }

  .tla-dot::before {
    background: CanvasText;
  }
}

@media print {
  .tla-shell {
    display: none;
  }
}

/* Byline extras */
.byline .reviewed { color: var(--mint); font-weight: 600; }
.byline .updated { color: var(--k-scam); }

/* What to do box on scam pages */
.act { margin: 6px 0 30px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(160deg, #2a1d10, var(--surface)); border: 1px solid #5a3b1a; }
.act-head { font: 700 1.1rem/1.3 var(--font); color: var(--k-scam); margin-bottom: 12px; }
html[lang="ar"] .act-head, html[lang="ar"] .act-col h3 { font-family: var(--font-ar-head); }
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.act-col { background: rgba(6, 11, 26, .55); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; }
.act-col h3 { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.act-col p { margin: 0; font-size: .92rem; color: var(--text-2); }
.act-report { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
@media (max-width: 700px) { .act-grid { grid-template-columns: 1fr; } }

/* Landing page: language choice only */
body.landing { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 50% -10%, rgba(95, 224, 189, .14), transparent 65%), var(--bg); }
.landing-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 12vh 20px 40px; text-align: center; }
.landing-mark { width: 132px; height: auto; }
.landing-name { margin: 18px 0 10px; font: 700 clamp(2.6rem, 8vw, 4.4rem)/1 var(--font); letter-spacing: -.03em; direction: ltr; }
.landing-name b { color: var(--mint); }
.landing-name i { display: inline-block; font-style: normal; color: transparent; background: linear-gradient(90deg, #fff 50%, var(--mint) 50%); -webkit-background-clip: text; background-clip: text; }
.landing-pick { margin: 0 0 34px; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.landing-pick [lang="ar"] { font-family: var(--font-ar); }
.landing-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: start; }
.lang-btn { position: relative; display: block; padding: 26px 24px 24px; border-radius: 20px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.lang-btn:hover, .lang-btn:focus-visible { border-color: var(--mint); transform: translateY(-3px); }
.lang-btn strong { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.lang-btn[lang="ar"] strong { font-family: var(--font-ar-head); }
.lang-btn[lang="ar"] span { font-family: var(--font-ar); }
.lang-btn span { display: block; color: var(--text-2); font-size: .95rem; padding-inline-end: 26px; }
.lang-btn em { position: absolute; inset-inline-end: 22px; top: 28px; font-style: normal; color: var(--mint); font-size: 1.3rem; }
.landing-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px; }
@media (max-width: 760px) { .landing-langs { grid-template-columns: 1fr; } .landing-main { padding-top: 8vh; } }

.keypoints.actor { background: linear-gradient(160deg, #2a1420, var(--surface)); border-color: #5a2a3a; }
.keypoints.actor h2 { color: var(--k-incident); }

/* Darna ads */
.ad-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem/1 var(--font); color: #fff; }
.ad-brand img { border-radius: 11px; }
.ad-hero { margin: 40px 0 0; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 26px 32px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(600px 260px at 0 0, rgba(63, 224, 176, .2), transparent 70%), linear-gradient(120deg, #0f1d3d, #0b1630); border: 1px solid #23406a; }
.ad-shot { height: 230px; overflow: hidden; border-radius: 22px; border: 3px solid #2b4b7a; background: #0e1726; }
.ad-shot img { display: block; width: 100%; height: auto; margin-top: -11%; }
.ad-body h2 { margin: 12px 0 8px; font-size: 1.7rem; line-height: 1.25; }
html[lang="ar"] .ad-body h2, html[lang="ar"] .ad-rail h3, html[lang="ar"] .ad-inline b { font-family: var(--font-ar-head); }
.ad-body p { margin: 0; color: var(--text-2); }
.ad-body ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d6f5ec; font-size: .9rem; }
.ad-body li::before, .ad-rail li::before { content: "✓ "; color: var(--mint); }
.ad-hero .btn { white-space: nowrap; }
.ad-inline { margin: 6px 0 28px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #0b1a2e; border: 1px dashed #2f6e5e; }
.ad-inline img { border-radius: 12px; flex: none; }
.ad-inline div { flex: 1; min-width: 0; }
.ad-inline b { color: #fff; }
.ad-inline p { margin: 2px 0 0; color: var(--text-2); font-size: .92rem; }
.ad-inline a { color: var(--mint); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ad-rail { display: none; }
@media (min-width: 1320px) {
  .ad-rail { display: flex; position: fixed; top: 180px; width: 210px; flex-direction: column; gap: 12px; padding: 22px 18px; border-radius: 22px; z-index: 4;
    background: radial-gradient(260px 200px at 50% 0, rgba(63, 224, 176, .16), transparent 70%), linear-gradient(180deg, #0f1d3d, #0a1430); border: 1px solid #23406a; }
  .ad-rail-l { inset-inline-start: calc(50% - 380px - 270px); }
  .ad-rail-r { inset-inline-end: calc(50% - 380px - 270px); }
  .ad-rail h3 { margin: 4px 0 0; font-size: 1.15rem; line-height: 1.3; }
  .ad-rail p { margin: 0; color: var(--text-2); font-size: .88rem; }
  .ad-rail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .86rem; color: #d6f5ec; }
  .ad-rail .btn { text-align: center; padding: 11px 10px; font-size: .9rem; }
  .ad-rail small { color: var(--muted); font-size: .74rem; text-align: center; }
}
@media (max-width: 760px) { .ad-hero { grid-template-columns: 1fr; padding: 22px; } .ad-shot { display: none; } .ad-inline { flex-wrap: wrap; } }

/* Language chooser */
.chooser { text-align: center; padding: 80px 0 90px; }
.chooser .wrap { position: relative; z-index: 1; }
.chooser-mark { width: 120px; height: auto; }
.chooser h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.03em; margin: 18px 0 34px; direction: ltr; }
.chooser h1 b { color: var(--mint); }
.choose { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: start; }
.choose a { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.choose a:hover { border-color: var(--mint-dim); }
.choose strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.choose span { color: var(--text-2); font-size: .95rem; }
.notfound { padding: 80px 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); background: #040814; color: var(--muted); font-size: .9rem; padding: 48px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; }
.foot h2 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 4px 0 12px; font-weight: 500; }
html[lang="ar"] .foot h2 { font-family: var(--font-ar); letter-spacing: 0; font-size: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot .brand { color: #fff; }
.foot a:hover { color: var(--text); }
.foot-brand p { max-width: 34ch; margin: 14px 0 0; }
.foot-note { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; text-align: start; }
  .promo-mark { width: 84px; height: 84px; border-radius: 20px; }
  .promo-mark img { width: 52px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lead { padding: 22px; }
  .hero { padding: 26px 0 34px; }
  .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .promo { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ===== Morocco threat monitor (dashboard) ===== */
/* Calm charts: one solid mint line for Morocco, dashed muted comparators,
   no fills or glows, 3 gridlines, selective labels, all values in <details>. */
.mon { padding: 28px 0 64px; }
.mon-head { max-width: 860px; margin-bottom: 26px; }
.mon-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--mint); font: 600 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mon-head h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; }
.mon-lede { margin: 0; color: var(--text-2); font-size: 1.05rem; }

.mon-c-red { --c: var(--critical); }
.mon-c-mint { --c: var(--mint); }
.mon-c-blue { --c: var(--low); }
.mon-c-gold { --c: var(--gold); }
.mon-c-dim { --c: var(--muted); }

/* Key-figure cards: a thin accent line, value in plain text colour, no glow. */
.mon-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mon-kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mon-kpi::before { content: ""; position: absolute; inset: 0 0 auto; block-size: 2px; background: var(--c); opacity: .8; }
.mon-kpi-value { color: var(--text); font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--mono); letter-spacing: -.02em; }
.mon-kpi-label { color: var(--text-2); font-weight: 600; font-size: .92rem; line-height: 1.45; }
.mon-kpi-note { color: var(--muted); font: 400 .76rem/1.45 var(--mono); }

.mon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mon-panel { position: relative; min-width: 0; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.mon-wide { grid-column: 1 / -1; }
.mon-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.mon-ph h2 { margin: 0; font-size: 1.15rem; }
.mon-ph h2::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-end: 10px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.mon-tag { color: var(--muted); font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mon-sub { margin: 0 0 14px; color: var(--text-2); font-size: .93rem; max-width: 76ch; }
.mon-subhead { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .98rem; color: var(--text); }
.mon-unit { margin: 0 0 6px; color: var(--muted); font-size: .8rem; }
.mon-note { margin: 8px 0 0; color: var(--muted); font-size: .84rem; max-width: 76ch; }
.mon-foot { margin: 8px 0 0; color: var(--text-2); font-size: .84rem; max-width: 76ch; }
.mon-mark { color: var(--gold); font: 600 .8rem var(--mono); }
.mon-src { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.mon-end { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.mon-end p { margin: 0; }

/* SVG line charts (no viewBox: text keeps its real size on phones) */
.mon-chart { display: block; inline-size: 100%; overflow: visible; }
.mon-plot { overflow: visible; }
.mon-gl { stroke: var(--line-soft); stroke-width: 1; }
.mon-axis { fill: var(--muted); font: 400 12px var(--mono); }
.mon-line { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.mon-line.mon-main { stroke: var(--mint); stroke-width: 2.5; }
.mon-line.mon-comp { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; }
.mon-dot { fill: var(--surface); stroke: var(--mint); stroke-width: 1.5; }
.mon-dot-comp { fill: var(--muted); }
.mon-hit { fill: transparent; }
.mon-pt:hover .mon-dot { fill: var(--mint); }
.mon-val { fill: var(--text); font: 600 13px var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.mon-val.mon-val-comp { fill: var(--text-2); font-weight: 400; font-size: 12px; }
.mon-nodata { fill: color-mix(in srgb, var(--muted) 7%, transparent); }
.mon-nodata-t { fill: var(--muted); font: 500 12px var(--mono); }
.mon-brk { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 5; }
.mon-brk-t { fill: var(--gold); font: 600 12px var(--mono); }

/* All values: a native <details> table under each chart */
.mon-all { margin-top: 12px; border-top: 1px solid var(--line-soft); }
.mon-all > summary { padding: 12px 0; min-block-size: 44px; color: var(--text-2); font-size: .86rem; cursor: pointer; }
.mon-all > summary:hover { color: var(--text); }
.mon-all > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }
.mon-all-wrap { overflow-x: auto; }
.mon-all-t { inline-size: 100%; margin-bottom: 6px; border-collapse: collapse; font-size: .86rem; }
.mon-all-t th, .mon-all-t td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); text-align: start; }
.mon-all-t thead th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.mon-all-t th[scope="row"] { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.mon-all-t td { color: var(--text); white-space: nowrap; }
.mon-num { font-family: var(--mono); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.mon-na { color: var(--muted); }

.mon-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; }
.mon-key { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font: 500 .8rem/1.4 var(--mono); }
.mon-key::before { content: ""; inline-size: 22px; block-size: 0; border-top: 2.5px solid var(--c); }
.mon-key.mon-c-dim::before { border-top: 2px dashed var(--muted); }
.mon-key.mon-sq::before { inline-size: 10px; block-size: 10px; border: 0; border-radius: 2px; background: var(--c); }

/* Stacked yearly bars (100%) */
.mon-stack-row { display: grid; grid-template-columns: 3.4em 1fr; align-items: center; gap: 6px 12px; margin: 10px 0 12px; }
.mon-stack-year { font: 500 .8rem/1 var(--mono); color: var(--text-2); }
.mon-stack-vals { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 14px; font: 500 .78rem/1.3 var(--mono); }
.mon-stack-vals:empty { display: none; }
.mon-stack-v { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.mon-stack-v::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 2px; background: var(--c); }
.mon-stack-v bdi { color: var(--text); }
.mon-stack { display: flex; block-size: 12px; border-radius: 3px; overflow: hidden; background: var(--bg); }
.mon-seg { display: block; block-size: 100%; background: color-mix(in srgb, var(--c) 75%, var(--surface)); }
.mon-seg + .mon-seg { box-shadow: inset 2px 0 0 var(--surface); }

/* Quarterly bars: Morocco from zero, Africa average as a dashed marker */
.mon-q { display: grid; grid-template-columns: 11em 1fr 4.5em 12em; align-items: center; gap: 12px; margin: 10px 0; font: 500 .82rem/1.3 var(--mono); color: var(--text-2); }
.mon-q-bar { position: relative; display: block; block-size: 12px; border-radius: 3px; background: var(--bg); }
.mon-q-ma { display: block; block-size: 100%; border-radius: 3px; background: var(--mint); opacity: .85; }
.mon-q-af { position: absolute; inset-block: -4px; inset-inline-start: 0; border-inline-end: 2px dashed var(--muted); }
.mon-q-val { color: var(--text); font-weight: 600; }
.mon-q-avg { color: var(--muted); }
.mon-q-scale { margin-top: 2px; }
.mon-q-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; }

/* Origin heat table */
.mon-table-wrap { overflow-x: auto; }
.mon-table { inline-size: 100%; border-collapse: separate; border-spacing: 4px; font: 500 .8rem/1 var(--mono); }
.mon-table th { color: var(--text-2); font-weight: 500; text-align: start; padding: 6px 8px; white-space: nowrap; }
.mon-table thead th { color: var(--muted); text-align: center; }
.mon-heat { text-align: center; padding: 10px 6px; border-radius: 4px; color: var(--text); }
.mon-h0 { background: var(--bg); color: var(--muted); }
.mon-h1 { background: color-mix(in srgb, var(--low) 8%, var(--bg)); }
.mon-h2 { background: color-mix(in srgb, var(--low) 16%, var(--bg)); }
.mon-h3 { background: color-mix(in srgb, var(--low) 26%, var(--bg)); }
.mon-h4 { background: color-mix(in srgb, var(--low) 38%, var(--bg)); }
.mon-h5 { background: color-mix(in srgb, var(--low) 52%, var(--bg)); }

/* Rank as text */
.mon-big { margin: 4px 0 4px; color: var(--text); font: 600 2rem/1.15 var(--mono); }
.mon-big-yr { color: var(--muted); font-size: .45em; font-weight: 500; }

/* Police tiles */
.mon-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mon-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.mon-tile-value { color: var(--text); font: 600 1.3rem/1 var(--mono); }
.mon-tile-label { color: var(--text-2); font-size: .8rem; line-height: 1.4; }

.mon-method { margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-2); font-size: .9rem; }
.mon-method h2 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.mon-method ul { margin: 0; padding-inline-start: 1.2em; }

@media (max-width: 900px) {
  .mon-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-grid { grid-template-columns: minmax(0, 1fr); }
  .mon-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mon-q { grid-template-columns: 9.5em 1fr 4.5em; }
  .mon-q-avg { grid-column: 2 / -1; margin-top: -6px; }
  .mon-q-avg:empty { display: none; }
}
@media (max-width: 520px) {
  .mon-panel { padding: 18px 14px 14px; }
  .mon-kpi { padding: 14px 12px; }
  .mon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-q { grid-template-columns: 1fr 4.2em; gap: 6px 10px; margin: 14px 0; }
  .mon-q-label { grid-column: 1 / -1; }
  .mon-q-avg { grid-column: 1 / -1; margin-top: 0; }
  .mon-q-scale .mon-q-label { display: none; }
  .mon-stack-row { grid-template-columns: 3em 1fr; gap: 6px 8px; }
  .mon-big { font-size: 1.7rem; }
}

.mon-mob { display: none; }
@media (max-width: 620px) { .mon-desk { display: none; } .mon-mob { display: block; } }

.mon-alert { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: .92rem; }
.mon-alert strong { color: var(--gold); font: 600 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }


/* Threat monitor: nav dot, updated line, home strip */
.nav-monitor { --d: var(--critical); }
.mon-updated { margin: 10px 0 0; color: var(--muted); font: 500 .76rem/1.5 var(--mono); }
html[dir="rtl"] .mon-arrow { display: inline-block; transform: scaleX(-1); }

.mon-strip { margin: 26px 0 8px; padding: 16px 18px 12px; border: 1px solid var(--line); border-inline-start: 3px solid var(--critical); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--critical) 7%, var(--surface)), var(--bg-2) 70%); }
.mon-strip-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.mon-strip-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 .78rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
html[dir="rtl"] .mon-strip-head h2 { letter-spacing: 0; font-family: var(--font-ar-head); font-size: .95rem; }
.mon-strip-head a { color: var(--mint); font-weight: 600; font-size: .9rem; text-decoration: none; }
.mon-strip-head a:hover { text-decoration: underline; }
.mon-strip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mon-strip-list li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border-top: 2px solid var(--c); }
.mon-strip-v { color: var(--c); font: 600 1.35rem/1.1 var(--mono); }
.mon-strip-l { color: var(--text); font-size: .86rem; font-weight: 600; }
.mon-strip-n { color: var(--muted); font: 400 .7rem/1.4 var(--mono); }
.mon-strip-foot { margin: 10px 0 0; color: var(--muted); font-size: .76rem; }
@media (max-width: 620px) {
  .mon-strip-list { grid-template-columns: minmax(0, 1fr); }
  .mon-strip-list li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .mon-strip-n { flex-basis: 100%; }
}

/* Arabic: no letter-spacing or capitals on Arabic labels */
html[dir="rtl"] .mon-kicker, html[dir="rtl"] .mon-tag, html[dir="rtl"] .mon-alert strong { letter-spacing: 0; text-transform: none; font-family: var(--font-ar-head); }
html[dir="rtl"] .mon-kpi-note, html[dir="rtl"] .mon-key, html[dir="rtl"] .mon-src { font-family: var(--font-ar); }
html[lang="ar"] .mon-src { font-size: .82rem; line-height: 1.7; }
html[lang="ar"] .mon-end { font-size: .9rem; }

html[dir="rtl"] .mon-table th, html[dir="rtl"] .mon-q-label, html[dir="rtl"] .mon-q-avg, html[dir="rtl"] .mon-stack-v,
html[dir="rtl"] .mon-all-t th, html[dir="rtl"] .mon-na, html[dir="rtl"] .mon-big-yr, html[dir="rtl"] .mon-stack-year,
html[dir="rtl"] .mon-axis, html[dir="rtl"] .mon-brk-t, html[dir="rtl"] .mon-nodata-t, html[dir="rtl"] .mon-strip-n,
html[dir="rtl"] .mon-updated, html[dir="rtl"] .mon-big { font-family: var(--font-ar); letter-spacing: 0; }


/* Mobile burger menu: a <details> element, so it works without JavaScript */
.burger { display: none; position: static; }
.burger > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font: 600 .84rem/1 var(--font); cursor: pointer; user-select: none; }
.burger > summary::-webkit-details-marker { display: none; }
.burger > summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.burger-icon { position: relative; display: inline-block; inline-size: 18px; block-size: 14px; }
.burger-icon i { position: absolute; inset-inline: 0; block-size: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.burger-icon i:nth-child(1) { top: 0; }
.burger-icon i:nth-child(2) { top: 6px; }
.burger-icon i:nth-child(3) { top: 12px; }
.burger[open] .burger-icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[open] .burger-icon i:nth-child(2) { opacity: 0; }
.burger[open] .burger-icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.burger[open] > summary { border-color: var(--mint-dim); background: var(--surface-2); }
.burger-panel { position: absolute; inset-inline: 0; top: 100%; max-block-size: calc(100vh - 70px); overflow-y: auto; padding: 10px 16px 18px; background: rgba(6, 11, 26, .98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .7); }
.burger-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.burger-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.burger-links a[aria-current="page"] { border-color: var(--line); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--d, var(--mint)); }
html[dir="rtl"] .burger-links a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--d, var(--mint)); }
html[lang="ar"] .burger-links a, html[lang="ar"] .burger > summary { font-family: var(--font-ar-head); }
.burger-langs { display: flex; justify-content: center; margin-top: 12px; inline-size: max-content; margin-inline: auto; }
@media (max-width: 1140px) {
  .burger { display: block; }
  .nav { display: none; }
}
@media (max-width: 380px) {
  .burger-label { display: none; }
  .burger-links { grid-template-columns: minmax(0, 1fr); }
}


/* Search: header icon and the search page */
.search-link { display: inline-flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); }
.search-link:hover, .search-link[aria-current="page"] { border-color: var(--mint-dim); color: var(--mint); }
.search-link:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.sr-lede { margin: 10px 0 0; color: var(--text-2); max-width: 60ch; }
.sr-box { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sr-label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.sr-input { inline-size: 100%; min-block-size: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 500 1.05rem/1.4 var(--font); }
html[lang="ar"] .sr-input { font-family: var(--font-ar); }
.sr-input:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--mint-dim); }
.sr-status { margin: 10px 0 0; color: var(--mint); font: 600 .85rem/1.4 var(--mono); }
html[lang="ar"] .sr-status { font-family: var(--font-ar); }
.sr-note { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.sr-empty { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-2); }
.sr-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sr-item { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2); }
.sr-item[hidden] { display: none; }
.sr-item > a { display: block; margin: 6px 0 4px; color: var(--text); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.sr-item > a:hover { color: var(--mint); }
.sr-item p { margin: 0 0 6px; color: var(--text-2); font-size: .92rem; }
@media (max-width: 380px) { .search-link { inline-size: 36px; block-size: 36px; } }

/* Bar widths (the CSP blocks inline styles, so widths are classes). */
.mon-w0 { inline-size: 0%; }
.mon-w1 { inline-size: 1%; }
.mon-w2 { inline-size: 2%; }
.mon-w3 { inline-size: 3%; }
.mon-w4 { inline-size: 4%; }
.mon-w5 { inline-size: 5%; }
.mon-w6 { inline-size: 6%; }
.mon-w7 { inline-size: 7%; }
.mon-w8 { inline-size: 8%; }
.mon-w9 { inline-size: 9%; }
.mon-w10 { inline-size: 10%; }
.mon-w11 { inline-size: 11%; }
.mon-w12 { inline-size: 12%; }
.mon-w13 { inline-size: 13%; }
.mon-w14 { inline-size: 14%; }
.mon-w15 { inline-size: 15%; }
.mon-w16 { inline-size: 16%; }
.mon-w17 { inline-size: 17%; }
.mon-w18 { inline-size: 18%; }
.mon-w19 { inline-size: 19%; }
.mon-w20 { inline-size: 20%; }
.mon-w21 { inline-size: 21%; }
.mon-w22 { inline-size: 22%; }
.mon-w23 { inline-size: 23%; }
.mon-w24 { inline-size: 24%; }
.mon-w25 { inline-size: 25%; }
.mon-w26 { inline-size: 26%; }
.mon-w27 { inline-size: 27%; }
.mon-w28 { inline-size: 28%; }
.mon-w29 { inline-size: 29%; }
.mon-w30 { inline-size: 30%; }
.mon-w31 { inline-size: 31%; }
.mon-w32 { inline-size: 32%; }
.mon-w33 { inline-size: 33%; }
.mon-w34 { inline-size: 34%; }
.mon-w35 { inline-size: 35%; }
.mon-w36 { inline-size: 36%; }
.mon-w37 { inline-size: 37%; }
.mon-w38 { inline-size: 38%; }
.mon-w39 { inline-size: 39%; }
.mon-w40 { inline-size: 40%; }
.mon-w41 { inline-size: 41%; }
.mon-w42 { inline-size: 42%; }
.mon-w43 { inline-size: 43%; }
.mon-w44 { inline-size: 44%; }
.mon-w45 { inline-size: 45%; }
.mon-w46 { inline-size: 46%; }
.mon-w47 { inline-size: 47%; }
.mon-w48 { inline-size: 48%; }
.mon-w49 { inline-size: 49%; }
.mon-w50 { inline-size: 50%; }
.mon-w51 { inline-size: 51%; }
.mon-w52 { inline-size: 52%; }
.mon-w53 { inline-size: 53%; }
.mon-w54 { inline-size: 54%; }
.mon-w55 { inline-size: 55%; }
.mon-w56 { inline-size: 56%; }
.mon-w57 { inline-size: 57%; }
.mon-w58 { inline-size: 58%; }
.mon-w59 { inline-size: 59%; }
.mon-w60 { inline-size: 60%; }
.mon-w61 { inline-size: 61%; }
.mon-w62 { inline-size: 62%; }
.mon-w63 { inline-size: 63%; }
.mon-w64 { inline-size: 64%; }
.mon-w65 { inline-size: 65%; }
.mon-w66 { inline-size: 66%; }
.mon-w67 { inline-size: 67%; }
.mon-w68 { inline-size: 68%; }
.mon-w69 { inline-size: 69%; }
.mon-w70 { inline-size: 70%; }
.mon-w71 { inline-size: 71%; }
.mon-w72 { inline-size: 72%; }
.mon-w73 { inline-size: 73%; }
.mon-w74 { inline-size: 74%; }
.mon-w75 { inline-size: 75%; }
.mon-w76 { inline-size: 76%; }
.mon-w77 { inline-size: 77%; }
.mon-w78 { inline-size: 78%; }
.mon-w79 { inline-size: 79%; }
.mon-w80 { inline-size: 80%; }
.mon-w81 { inline-size: 81%; }
.mon-w82 { inline-size: 82%; }
.mon-w83 { inline-size: 83%; }
.mon-w84 { inline-size: 84%; }
.mon-w85 { inline-size: 85%; }
.mon-w86 { inline-size: 86%; }
.mon-w87 { inline-size: 87%; }
.mon-w88 { inline-size: 88%; }
.mon-w89 { inline-size: 89%; }
.mon-w90 { inline-size: 90%; }
.mon-w91 { inline-size: 91%; }
.mon-w92 { inline-size: 92%; }
.mon-w93 { inline-size: 93%; }
.mon-w94 { inline-size: 94%; }
.mon-w95 { inline-size: 95%; }
.mon-w96 { inline-size: 96%; }
.mon-w97 { inline-size: 97%; }
.mon-w98 { inline-size: 98%; }
.mon-w99 { inline-size: 99%; }
.mon-w100 { inline-size: 100%; }


/* ===== Operations menu: one <details> dropdown (no JavaScript) ===== */
/* The desktop menu row only shows above 1140px, where it fits: let the dropdown hang below it. */
.nav-row { overflow: visible; }
.nav-ops { position: relative; flex: none; --d: var(--mint); }
.nav-ops > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: .92rem; font-weight: 600; padding: 9px 11px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; user-select: none; transition: background .2s, border-color .2s, color .2s; }
.nav-ops > summary::-webkit-details-marker { display: none; }
.nav-ops > summary:hover, .nav-ops[open] > summary { color: #fff; background: var(--surface); border-color: var(--line-soft); }
.nav-ops > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.nav-ops-on > summary, .nav-ops-on[open] > summary { color: #fff; background: var(--surface-2); border-color: var(--line); box-shadow: inset 0 -2px 0 var(--mint); }
.nav-ops-caret { display: inline-block; inline-size: 7px; block-size: 7px; margin: -3px 2px 0; border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(45deg); }
.nav-ops[open] .nav-ops-caret { margin-top: 3px; transform: rotate(-135deg); }
.nav-ops-panel { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 6; inline-size: 350px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.nav .nav-ops-panel a { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid transparent; color: var(--text); white-space: normal; font-weight: 600; }
.nav .nav-ops-panel a:hover { background: var(--surface-2); border-color: transparent; }
.nav .nav-ops-panel a[aria-current="page"] { background: var(--surface-2); border-color: var(--line); box-shadow: inset 3px 0 0 var(--d, var(--mint)); }
html[dir="rtl"] .nav .nav-ops-panel a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--d, var(--mint)); }
.nav-ops-ic { flex: 0 0 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; line-height: 1; color: var(--d, var(--mint)); background: color-mix(in srgb, var(--d, var(--mint)) 14%, transparent); }
.nav-ops-txt { display: block; min-width: 0; }
.nav-ops-txt strong { display: block; font-size: .92rem; line-height: 1.5; }
.nav-ops-txt small { display: block; margin-top: 2px; color: var(--muted); font: 400 .78rem/1.5 var(--font); }
.nav-live { display: inline-block; margin-inline-start: 7px; padding: 0 7px; border-radius: 99px; background: var(--mint); color: #04150f; font: 700 .66rem/1.7 var(--font); vertical-align: 2px; }
.nav-daily { --d: var(--mint); }
.nav-ops-panel .nav-timeline { --d: var(--gold); }
html[lang="ar"] .nav-ops > summary { font-family: var(--font-ar-head); font-size: .95rem; }
html[lang="ar"] .nav-ops-txt small { font-family: var(--font-ar); font-size: .86rem; }
html[lang="ar"] .nav-live { font-family: var(--font-ar-head); font-size: .7rem; }
@media (prefers-reduced-motion: reduce) { .nav-ops > summary { transition: none; } }

/* Burger menu: the three Operations pages as one labelled group */
.burger-ops { grid-column: 1 / -1; margin: 4px 0 2px; padding: 8px 0 0; border-top: 1px solid var(--line-soft); }
.burger-ops-h { margin: 0 0 6px; padding-inline-start: 4px; color: var(--mint); font-size: .8rem; font-weight: 700; line-height: 1.4; }
html[lang="ar"] .burger-ops-h { font-family: var(--font-ar-head); }
.burger-ops-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 560px) { .burger-ops-links { grid-template-columns: minmax(0, 1fr); } }


/* ===== Daily monitoring page (ops_page.py) and Sources page ===== */
.ops { padding: 24px 0 64px; }
.ops-head h1 { margin: 6px 0 4px; font-size: clamp(1.7rem, 3.6vw, 2.15rem); line-height: 1.3; }
.ops-crumb { margin: 0; color: var(--mint); font-size: .82rem; font-weight: 600; }
.ops-sub { margin: 0 0 14px; color: var(--text-2); font-size: 1.03rem; }
.ops-n { font-family: var(--mono); font-size: .94em; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.ops-fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .8rem; line-height: 1.6; }
.ops-live-dot { display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 224, 189, .15); vertical-align: 1px; }
.ops-gold { color: var(--gold); }
.ops-fresh .ops-gold::before { content: "\26A0  "; }

.ops-ednote { margin-top: 16px; padding: 14px 18px; border: 1px solid rgba(95, 224, 189, .35); border-radius: 14px; background: linear-gradient(90deg, rgba(95, 224, 189, .06), rgba(95, 224, 189, .12)); }
.ops-ednote p { margin: 4px 0 0; font-size: 1.05rem; }
.ops-ednote .ops-ednote-h { margin: 0; color: var(--mint); font-size: .78rem; font-weight: 700; }

.ops-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; padding: 0; list-style: none; }
.ops-toc a { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-2); font-size: .8rem; text-decoration: none; }
.ops-toc a:hover { border-color: var(--mint-dim); color: var(--text); }
.ops-toc b { color: var(--mint); font: 500 .78rem/1 var(--mono); }

.ops-sec { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 4px; scroll-margin-top: 90px; }
.ops-sec-n { padding: 1px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--mint); font: 500 .8rem/1.5 var(--mono); }
.ops-sec h2 { margin: 0; font-size: 1.35rem; line-height: 1.4; }
.ops-sec small { margin-inline-start: auto; color: var(--muted); font-size: .8rem; text-align: end; }

.ops-grid { display: grid; gap: 16px; }
.ops-g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ops-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-card { min-width: 0; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ops-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ops-kick { color: var(--muted); font-size: .74rem; }
.ops-ttl { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.ops-big { margin-top: 6px; color: var(--text); font: 700 2rem/1.2 var(--mono); }
.ops-big .ops-n { font-size: 1em; }
.ops-mini .ops-big { font-size: 1.6rem; }
.ops-dim { color: var(--text-2); }
.ops-big-text { margin: 10px 0 0; color: var(--text-2); font-weight: 700; }
.ops-pair { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 6px; }

.ops-pill { padding: 2px 9px; border-radius: 8px; font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ops-mini .ops-pill { display: inline-block; margin-top: 8px; }
.ops-up { color: var(--high); background: rgba(255, 154, 77, .12); }
.ops-down { color: var(--mint); background: rgba(95, 224, 189, .12); }
.ops-flat { color: var(--text-2); background: rgba(180, 191, 214, .1); }
.ops-tag { padding: 1px 7px; border: 1px solid rgba(183, 156, 255, .5); border-radius: 6px; color: var(--k-analysis); font-size: .72rem; line-height: 1.6; white-space: nowrap; }

.ops-note { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.ops-note-top { margin-top: 0; }
.ops-note.ops-note-0 { margin: 0; }
.ops-warn { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--text-2); font-size: .78rem; line-height: 1.65; }
.ops-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.ops-nodata { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .86rem; }

/* Stale source: last valid value with its date */
.ops-src { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.ops-grid + .ops-note + .ops-src { margin-top: 4px; }
.ops-card.ops-stale { border-color: rgba(212, 179, 106, .45); }
.ops-stale-badge { padding: 1px 8px; border: 1px solid rgba(212, 179, 106, .5); border-radius: 6px; color: var(--gold); font-size: .74rem; line-height: 1.6; white-space: nowrap; }
.ops-stale-note { margin: 8px 0 0; color: var(--text-2); font-size: .8rem; }

/* Charts: inline SVG, coloured by class */
.ops-c-orange { --c: var(--high); }
.ops-c-red { --c: var(--critical); }
.ops-c-yellow { --c: var(--medium); }
.ops-c-blue { --c: var(--low); }
.ops-c-violet { --c: var(--k-analysis); }
.ops-c-mint { --c: var(--mint); }
.ops-c-dim { --c: var(--muted); }
.ops-chart { margin-top: 10px; }
.ops-chart svg, .ops-spark svg { display: block; inline-size: 100%; block-size: auto; }
.ops-line { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ops-dot { fill: var(--c); }
.ops-gl { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.ops-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-win-last { fill: rgba(95, 224, 189, .07); }
.ops-win-prev { fill: rgba(180, 191, 214, .05); }
.ops-bar { fill: var(--low); }
.ops-bar-na { fill: var(--line); }
.ops-mixbar { border-radius: 7px; overflow: hidden; }
.ops-mixbar rect { fill: var(--c); }
.ops-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font: 500 .7rem/1.4 var(--mono); }
.ops-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: .74rem; }
.ops-legend i { display: inline-block; inline-size: 10px; block-size: 10px; margin-inline-end: 6px; border-radius: 3px; vertical-align: -1px; }
.ops-key-last { background: rgba(95, 224, 189, .35); }
.ops-key-prev { background: rgba(180, 191, 214, .25); }
.ops-spark { display: block; inline-size: 110px; }
.ops-spark.ops-spark-wide { inline-size: 100%; margin-top: 8px; }

/* Tables */
.ops-table { inline-size: 100%; margin-top: 10px; border-collapse: collapse; font-size: .86rem; }
.ops-table thead th { padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; text-align: start; }
.ops-table tbody th, .ops-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: start; font-weight: 500; vertical-align: middle; }
.ops-table .ops-num { text-align: end; white-space: nowrap; }
.ops-table .ops-chgcell { white-space: nowrap; }
.ops-chg { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); font: 600 .8rem/1.4 var(--mono); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.ops-chg.up { color: var(--mint); }
.ops-chg.down { color: var(--high); }
.ops-chg-unit, .ops-chg-muted { color: var(--muted); font-size: .72rem; }
.ops-sw, .ops-sev { display: inline-block; inline-size: 10px; block-size: 10px; margin-inline-end: 8px; border-radius: 3px; background: var(--c); vertical-align: -1px; }
.ops-sev { inline-size: 9px; block-size: 9px; border-radius: 50%; }
.ops-claims { margin: 12px 0 0; padding: 0; list-style: none; }
.ops-claims li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
/* Ransomware card: monthly bars, claim rows with gang and tracker chips */
.ops-sub-t.ops-month-h { margin-top: 16px; }
.ops-sub-t.ops-claims-h { margin-top: 18px; }
.ops-mchart { margin-top: 6px; }
.ops-mb-bar { fill: var(--k-analysis); opacity: .9; }
.ops-mb-bar.ops-mb-now { fill: var(--k-analysis); opacity: .45; }
.ops-mb-hit { fill: transparent; }
.ops-mb:hover .ops-mb-hit { fill: rgba(183, 156, 255, .1); }
.ops-mb-partial { fill: url(#ops-hatch); opacity: .8; }
.ops-mb-na { fill: url(#ops-hatch); }
.ops-hatch-l { fill: var(--line); }
.ops-mb-tick { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-mb-x, .ops-mb-y { fill: var(--muted); font: 500 10px var(--mono); }
.ops-key-mbar { background: var(--k-analysis); }
.ops-key-mnow { background: rgba(183, 156, 255, .45); }
.ops-key-mpart, .ops-key-mna { background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 4px); outline: 1px solid var(--line); }
.ops-note-small { font-size: .74rem; }
.ops-note.ops-yr-h { margin-top: 10px; }
.ops-years { display: flex; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ops-years li { flex: 1 1 0; min-inline-size: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; text-align: center; line-height: 1.3; }
.ops-yr-y { display: block; color: var(--muted); font: 500 .7rem var(--mono); }
.ops-yr-n { display: block; color: var(--text); font: 700 1rem var(--mono); }
.ops-yr-ytd { display: block; color: var(--muted); font-size: .64rem; }
.ops-claim-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ops-claim-sec { font-weight: 700; color: var(--text); }
.ops-claim-row .ops-n { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.ops-claim-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ops-chip { padding: 1px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); font-size: .74rem; line-height: 1.6; }
.ops-gang { color: #ffb3bb; border-color: rgba(255, 93, 108, .45); font-family: var(--mono); unicode-bidi: isolate; }
.ops-two { color: var(--mint); border-color: rgba(95, 224, 189, .45); }
.ops-one { color: var(--gold); border-color: rgba(212, 179, 106, .45); }

/* Attack-origin world map (map_card): inline SVG, classes only, on a NASA night-Earth
   photo (img/ops-nightmap.jpg, public domain, same Robinson frame as data/worldmap.json).
   Countries are outlines, not fills, so the city lights stay visible; a listed country gets
   a mint edge and a light mint wash. Morocco is one shape with its Sahara; gold edge. */
.ops-map { margin-top: 12px; border-radius: 12px; background: #060b1a; overflow: hidden; }
.ops-map-svg { display: block; inline-size: 100%; block-size: auto; }
.ops-map-night, .ops-map-frame, .ops-map-grat { pointer-events: none; }
.ops-map-frame { fill: none; stroke: #2a3c66; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-map-grat { fill: none; stroke: var(--muted); stroke-opacity: .16; stroke-width: .5; vector-effect: non-scaling-stroke; }
.ops-map-c { fill: transparent; stroke: rgba(159, 178, 218, .24); stroke-width: .5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ops-map-s1 { fill: rgba(95, 224, 189, .2); }
.ops-map-s2 { fill: rgba(95, 224, 189, .36); }
.ops-map-s3 { fill: rgba(95, 224, 189, .54); }
.ops-map-s4 { fill: rgba(95, 224, 189, .74); }
.ops-map-s5 { fill: var(--mint); }
.ops-map-c.ops-map-s1 { fill: rgba(95, 224, 189, .05); stroke: rgba(95, 224, 189, .35); }
.ops-map-c.ops-map-s2 { fill: rgba(95, 224, 189, .09); stroke: rgba(95, 224, 189, .5); }
.ops-map-c.ops-map-s3 { fill: rgba(95, 224, 189, .13); stroke: rgba(95, 224, 189, .66); stroke-width: .7; }
.ops-map-c.ops-map-s4 { fill: rgba(95, 224, 189, .18); stroke: rgba(95, 224, 189, .82); stroke-width: .8; }
.ops-map-c.ops-map-s5 { fill: rgba(95, 224, 189, .24); stroke: var(--mint); stroke-width: 1; }
.ops-map-none { background: transparent; border: 1px solid rgba(159, 178, 218, .4); }
.ops-map-c.ops-map-ma { fill: rgba(212, 179, 106, .12); stroke: var(--gold); stroke-width: 1.5; }
.ops-map-c.ops-map-ma-in { fill: rgba(212, 179, 106, .1); stroke: var(--gold); stroke-width: 1.8; }
.ops-map-inset-bg { fill: #060b1a; }
.ops-map-inset-edge { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-map-tiny { stroke: var(--bg-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-map-arc { fill: none; stroke: var(--high); stroke-opacity: .85; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ops-map-from { fill: var(--high); stroke: var(--bg-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-map-ring { fill: rgba(255, 154, 77, .12); stroke: var(--high); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ops-map-target { fill: var(--gold); stroke: var(--bg-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ops-map-legend { margin-top: 10px; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.ops-map-lh { margin: 0 0 4px; color: var(--text-2); font-weight: 600; }
.ops-map-scale { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ops-map-scale span { white-space: nowrap; }
.ops-map-sw { display: inline-block; inline-size: 14px; block-size: 10px; margin-inline-end: 6px; border-radius: 3px; vertical-align: -1px; }
.ops-map-sw { box-sizing: border-box; }
.ops-map-sw.ops-map-s1 { background: rgba(95, 224, 189, .05); border: 1px solid rgba(95, 224, 189, .35); }
.ops-map-sw.ops-map-s2 { background: rgba(95, 224, 189, .09); border: 1px solid rgba(95, 224, 189, .5); }
.ops-map-sw.ops-map-s3 { background: rgba(95, 224, 189, .13); border: 1.5px solid rgba(95, 224, 189, .66); }
.ops-map-sw.ops-map-s4 { background: rgba(95, 224, 189, .18); border: 1.5px solid rgba(95, 224, 189, .82); }
.ops-map-sw.ops-map-s5 { background: rgba(95, 224, 189, .24); border: 2px solid var(--mint); }
.ops-map-keys { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.ops-map-keys i { display: inline-block; flex: none; margin-inline-end: 8px; vertical-align: -2px; }
.ops-map-k-target { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold); }
.ops-map-k-ring { inline-size: 12px; block-size: 12px; border: 2px solid var(--high); border-radius: 50%; box-sizing: border-box; }
.ops-map-k-arc { inline-size: 18px; block-size: 3px; border-radius: 2px; background: var(--high); vertical-align: 3px; }
html[lang="ar"] .ops-map-legend { font-size: .88rem; line-height: 1.8; }
@media (max-width: 480px) { .ops-map { margin-inline: -6px; } }
/* Map motion (CSS only, illustrative): dashes flow along each arc, origin -> Morocco
   (paths are drawn in that direction, so a falling dash offset moves towards the target). */
.ops-map-arc { stroke-dasharray: 7 7; animation: ops-arc-flow 2.6s linear infinite; }
.ops-map-arc.ops-arc-1 { stroke-opacity: .55; animation-duration: 3.4s; }
.ops-map-arc.ops-arc-2 { stroke-opacity: .78; animation-duration: 2.4s; }
.ops-map-arc.ops-arc-3 { stroke-opacity: 1; animation-duration: 1.5s; }
@keyframes ops-arc-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -28; } }
.ops-map-pulse { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: ops-pulse 2.8s ease-out infinite; }
@keyframes ops-pulse { 0% { transform: scale(.7); opacity: .75; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.ops-map-motion { margin: 6px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; text-align: end; }
html[lang="ar"] .ops-map-motion { font-size: .8rem; }
/* Hover labels (no script): each arc is a <g class="ops-arc"> with an SVG <title>, a wide
   invisible hit line, the visible arc and its origin dot. Touch phones get no tooltip;
   the origins table lists the same numbers. */
.ops-arc-hit { fill: none; stroke: transparent; stroke-width: 14; stroke-linecap: round; pointer-events: stroke; vector-effect: non-scaling-stroke; }
.ops-map-arc { pointer-events: none; }
.ops-map-pulse, .ops-map-ring, .ops-map-target { pointer-events: none; }
.ops-arc { cursor: default; }
.ops-arc:hover .ops-map-arc, .ops-arc:focus-within .ops-map-arc { stroke: var(--gold); stroke-opacity: 1; stroke-width: 5.5; }
.ops-arc:hover .ops-map-from, .ops-arc:focus-within .ops-map-from { fill: var(--gold); stroke: var(--text); stroke-width: 1.6; r: 5.5; }
.ops-map-land .ops-map-c[class*="ops-map-s"]:not(.ops-map-ma):hover, .ops-map-tiny:hover { stroke: var(--text); stroke-width: 1.2; }
.ops-map-c.ops-map-ma:hover { stroke-width: 2.4; }
@media (prefers-reduced-motion: reduce) {
  .ops-map-arc, .ops-map-pulse { animation: none; }
  .ops-map-arc { stroke-dasharray: none; }
  .ops-map-pulse { opacity: .5; transform: none; }
}

/* Attack types: two horizontal share-bar lists */
.ops-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 10px; }
.ops-sub-t { margin: 0 0 4px; color: var(--text); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.ops-hbars { margin: 8px 0 0; padding: 0; list-style: none; }
.ops-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 6px 0 4px; font-size: .86rem; }
.ops-hb-v { color: var(--text-2); font-weight: 700; text-align: end; white-space: nowrap; }
.ops-hb { grid-column: 1 / -1; display: block; inline-size: 100%; block-size: 6px; }
.ops-hb-bg { fill: var(--line); }
.ops-hb-fg { fill: var(--c); }
html[lang="ar"] .ops-hb { transform: scaleX(-1); }
html[lang="ar"] .ops-hbars li { font-size: .95rem; }
html[lang="ar"] .ops-sub-t { font-size: .98rem; line-height: 1.6; }
@media (max-width: 860px) { .ops-types { grid-template-columns: minmax(0, 1fr); } }

.ops-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.ops-foot p { margin: 0; }
.ops-src-table td a { color: var(--mint); }
.ops-back { margin: 18px 0 0; font-size: .9rem; }

html[lang="ar"] .ops-crumb, html[lang="ar"] .ops-ednote-h, html[lang="ar"] .ops-pill, html[lang="ar"] .ops-stale-badge, html[lang="ar"] .ops-tag { font-family: var(--font-ar-head); letter-spacing: 0; }
html[lang="ar"] .ops-sec h2 { line-height: 1.6; }
/* Arabic script needs more size than Latin at the same rem for small print. */
html[lang="ar"] .ops-note, html[lang="ar"] .ops-warn, html[lang="ar"] .ops-row, html[lang="ar"] .ops-kick,
html[lang="ar"] .ops-legend, html[lang="ar"] .ops-stale-note, html[lang="ar"] .ops-table thead th { font-size: .88rem; line-height: 1.8; }
html[lang="ar"] .ops-src { font-size: .82rem; line-height: 1.7; }
html[lang="ar"] .ops-fresh, html[lang="ar"] .ops-toc a, html[lang="ar"] .ops-sec small, html[lang="ar"] .ops-foot { font-size: .9rem; }
html[lang="ar"] .ops-table, html[lang="ar"] .ops-claims li { font-size: .95rem; }
html[lang="ar"] .ops-chip:not(.ops-gang) { font-family: var(--font-ar-head); font-size: .8rem; letter-spacing: 0; }
html[lang="ar"] .ops-ttl { font-size: 1.05rem; }

@media (max-width: 1000px) { .ops-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ops-g21, .ops-g2 { grid-template-columns: minmax(0, 1fr); }
  .ops-sec { flex-wrap: wrap; }
  .ops-sec small { flex-basis: 100%; margin-inline-start: 0; text-align: start; }
}
@media (max-width: 480px) {
  .ops-g4 { grid-template-columns: minmax(0, 1fr); }
  .ops-big { font-size: 1.75rem; }
  .ops-ch { flex-wrap: wrap; }
}
@media print { .nav-ops-panel { display: none; } }

/* Weekly rank by count on the exposed-services cards (Shodan country facet; Sol, 25 Nov).
   Two equal badges (Arab countries, Africa), world rank and date in the small line. No arrows,
   no alarm colours: a rank by count is context, not a risk score. */
.ops-rank-note { margin: 10px 0 4px; padding: 8px 10px; border-inline-start: 3px solid var(--gold); border-radius: 6px; background: var(--surface); color: var(--text-2); font-size: .8rem; line-height: 1.7; }
/* Exposure cards (section 05): big number, glowing area curve, rank strip */
.ops-gx { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ops-gx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ops-xc-blue { --acc: var(--low); }
.ops-xc-red { --acc: var(--critical); }
.ops-xc-violet { --acc: var(--k-analysis); }
.ops-xc-orange { --acc: var(--high); }
.ops-xc { position: relative; overflow: hidden; min-width: 0; margin-top: 14px; padding: 20px 20px 0; border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), linear-gradient(180deg, #0f1a33, #0b1428);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -12px rgba(0, 0, 0, .6); }
[dir="rtl"] .ops-xc { background: radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), linear-gradient(180deg, #0f1a33, #0b1428); }
.ops-xc::before { content: ""; position: absolute; inset: 0 0 auto; block-size: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .55; }
.ops-xc.ops-stale { border-color: rgba(212, 179, 106, .45); }
.ops-xc-kick { margin: 0; color: var(--acc); font: 500 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ops-xc-t { margin: 4px 0 2px; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.ops-xc-desc { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.ops-xc-mid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; margin: 18px 0 16px; }
.ops-xc-big { color: var(--acc); font: 700 clamp(2.6rem, 9vw, 3.4rem)/1 var(--font); letter-spacing: -.035em; text-shadow: 0 0 28px color-mix(in srgb, var(--acc) 35%, transparent); }
.ops-xc .ops-n { font: inherit; letter-spacing: inherit; }
.ops-xc-lab { margin: 6px 0 0; color: var(--muted); font: 500 .62rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.ops-xc-chart { min-width: 0; color: var(--acc); }
.ops-xc-chart .ops-xc-lab { text-align: end; }
.ops-xc-chart svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.ops-xc-line { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ops-xc-glow { fill: none; stroke: var(--acc); stroke-width: 6; opacity: .35; }
.ops-xc-pt { fill: var(--bg); stroke: var(--acc); stroke-width: 1.4; }
.ops-xc-end { fill: #fff; stroke: var(--acc); stroke-width: 2; }
.ops-xc-halo { fill: var(--acc); opacity: .22; }
.ops-xc-chg { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 12px 0 0; padding: 4px 10px; border-radius: 999px; font: 600 .8rem/1.3 var(--mono); }
.ops-xc-chg > span[aria-hidden] { font-size: .62rem; }
.ops-xc-good { color: var(--mint); background: rgba(95, 224, 189, .1); box-shadow: inset 0 0 0 1px rgba(95, 224, 189, .25); }
.ops-xc-bad { color: var(--high); background: rgba(255, 154, 77, .1); box-shadow: inset 0 0 0 1px rgba(255, 154, 77, .28); }
.ops-xc-flat { color: var(--text-2); background: rgba(180, 191, 214, .08); }
.ops-xc-pct { opacity: .8; }
.ops-xc-since { color: var(--muted); font: 500 .72rem/1.3 var(--font); }
.ops-xc-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -20px; border-top: 1px solid var(--line-soft); background: rgba(6, 11, 26, .35); }
.ops-xc-foot div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 12px 20px 14px; }
.ops-xc-foot div + div { border-inline-start: 1px solid var(--line-soft); }
.ops-xc-foot dt { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.ops-xc-foot dd { margin: 0 0 2px; color: var(--text); font: 700 1.15rem/1.2 var(--font); }
.ops-xc-pad { block-size: 20px; }
.ops-xc-mint { --acc: var(--mint); }
/* Every daily-page card gets the same frame as the premium cards */
.ops .ops-card { position: relative; overflow: hidden; padding: 20px; --acc: var(--mint);
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%), linear-gradient(180deg, #0f1a33, #0b1428);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.ops .ops-card.ops-xc-blue { --acc: var(--low); }
.ops .ops-card.ops-xc-violet { --acc: var(--k-analysis); }
[dir="rtl"] .ops .ops-card { background: radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%), linear-gradient(180deg, #0f1a33, #0b1428); }
.ops .ops-card::before { content: ""; position: absolute; inset: 0 0 auto; block-size: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .55; }
.ops-xc-dim { color: var(--text-2); text-shadow: none; }
.ops-xc-pair { gap: 8px 36px; margin-top: 14px; }
.ops-claims-card .ops-xc-big { color: var(--acc); }
.ops-claims-card .ops-xc-big.ops-xc-dim { color: var(--text-2); }
/* Bars with glow */
.ops-bars { color: var(--acc, var(--low)); overflow: visible; }
.ops-bar { fill: currentColor; filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 55%, transparent)); }
.ops-mb-bar { filter: drop-shadow(0 0 3px rgba(183, 156, 255, .55)); }
.ops-hb-fg { filter: drop-shadow(0 0 3px var(--c)); }
.ops-mixbar { block-size: 18px; filter: drop-shadow(0 0 6px rgba(127, 178, 255, .35)); }
.ops-years li { padding: 8px 6px; border-color: var(--line-soft); background: rgba(6, 11, 26, .35); }
.ops-yr-n { font: 700 1.15rem/1.3 var(--font); }
/* Headline share (attack types, what blocked) */
.ops-hl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 4px; }
.ops-hl-n { color: var(--c); font: 700 2.4rem/1 var(--font); letter-spacing: -.03em; text-shadow: 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.ops-hl-n .ops-n { font: inherit; letter-spacing: inherit; }
.ops-hl span { color: var(--text-2); font-weight: 600; }
/* Origins: share bar under each country */
.ops-rowbar { display: block; inline-size: min(160px, 70%); block-size: 4px; margin-top: 6px; color: var(--low); --c: var(--low); }
/* Summary row */
.ops-sum ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ops-sum-t { position: relative; display: flex; flex-direction: column; gap: 4px; block-size: 100%; padding: 14px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none;
  background: radial-gradient(240px 140px at 100% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%), linear-gradient(180deg, #0f1a33, #0b1428); }
.ops-sum-t::before { content: ""; position: absolute; inset: 0 0 auto; block-size: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .6; }
.ops-sum-t:hover, .ops-sum-t:focus-visible { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.ops-sum-l { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.ops-sum-n { color: var(--acc); font: 700 2.1rem/1.05 var(--font); letter-spacing: -.03em; text-shadow: 0 0 22px color-mix(in srgb, var(--acc) 35%, transparent); }
.ops-sum-n .ops-n { font: inherit; letter-spacing: inherit; }
.ops-sum-s { color: var(--muted); font-size: .72rem; line-height: 1.4; }
@media (max-width: 860px) { .ops-sum ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[lang="ar"] .ops-sum-l, html[lang="ar"] .ops-sum-s { font-size: .84rem; }
/* Section titles */
.ops-sec { margin-top: 44px; }
.ops-sec-n { padding: 0; border: 0; color: var(--mint); font: 500 .85rem/1 var(--mono); letter-spacing: .14em; }
.ops-sec h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); letter-spacing: -.01em; }
.ops-xc-band { fill: var(--acc); opacity: .07; }
.ops-xc-notes { margin: 0 -20px; padding: 2px 20px 16px; }
.ops-xc-notes .ops-src { margin-top: 8px; }
@media (max-width: 560px) { .ops-xc-notes { margin: 0 -16px; padding-inline: 16px; } }
html[lang="ar"] .ops-xc-kick, html[lang="ar"] .ops-xc-lab { font-family: var(--font-ar); font-size: .8rem; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .ops-xc-t { font-family: var(--font-ar-head); font-size: 1.1rem; line-height: 1.6; }
html[lang="ar"] .ops-xc-desc, html[lang="ar"] .ops-xc-since, html[lang="ar"] .ops-xc-foot dt { font-family: var(--font-ar); font-size: .86rem; }
html[lang="ar"] .ops-xc-chart .ops-xc-lab { text-align: start; }
@media (max-width: 560px) {
  .ops-xc { padding: 18px 16px 0; }
  .ops-xc-mid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ops-xc-chart .ops-xc-lab { text-align: start; }
  .ops-xc-foot { margin: 0 -16px; }
  .ops-xc-foot div { padding: 12px 16px 14px; }
}
@media (forced-colors: active) { .ops-xc-line, .ops-xc-glow { stroke: CanvasText; } }

/* Map, phone-first (Sol, 25 Nov): numbered markers 1-5 keyed to the list under the map,
   pushed apart server-side with a short leader line; tap the map to open the full map page;
   motion runs a few seconds then stops (no pause button needed). */
.ops-map-night { opacity: .78; }
.ops-map-num { fill: #0b1530; stroke: var(--high); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ops-map-numt { fill: #ffe2c9; font-family: var(--mono); font-weight: 700; pointer-events: none; }
.ops-map-lab { fill: var(--text); font-family: inherit; font-weight: 600; paint-order: stroke; stroke: #060b1a; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.ops-map-lead { stroke: var(--high); stroke-opacity: .7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-map-ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 10px; margin: 12px 0 4px; padding: 0; list-style: none; }
.ops-map-ol li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); font-size: .86rem; }
.ops-map-n { display: inline-grid; place-items: center; flex: none; inline-size: 22px; block-size: 22px; border: 1.5px solid var(--high); border-radius: 50%; color: #ffe2c9; font-family: var(--mono); font-size: .78rem; }
.ops-map-pct { margin-inline-start: auto; color: var(--text-2); font-family: var(--mono); }
.ops-map-k-num { display: inline-grid !important; place-items: center; inline-size: 16px; block-size: 16px; border: 1.5px solid var(--high); border-radius: 50%; color: #ffe2c9; font: 700 .62rem var(--mono); font-style: normal; }
.ops-map-big { margin-top: 4px; }
.ops-map-arc { animation-iteration-count: 2; }
.ops-map-arc.ops-arc-1 { animation-duration: 2.4s; }
.ops-map-pulse { animation-duration: 2.4s; animation-iteration-count: 2; animation-fill-mode: forwards; }
@media (max-width: 480px) {
  .ops-map-ol { grid-template-columns: 1fr; gap: 4px; }
  .ops-map-ol li { padding: 4px 8px; }
}

/* Evidence chain inside incident articles (chain.py): a top-down tree, CSS only */
.ch-wrap {
  --ch-line: #2f4475;
  margin: 40px 0 44px;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 240px at 15% -10%, rgba(95, 224, 189, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 26px 100%,
    var(--bg-2);
}
.ch-kick { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.article .ch-head h2 { margin: 9px 0 6px; font-size: 1.3rem; }
.article .ch-head p { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0 0 24px; padding: 0 0 16px !important; border-bottom: 1px solid var(--line-soft); }
.article .ch-legend li { margin: 0; font-size: .76rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.ch-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.ch-legend li.t-analysis::before { background: transparent; border: 1.5px dashed var(--c); }

.t-claim { --c: var(--k-incident); }
.t-denial { --c: var(--gold); }
.t-statement { --c: #67d4e8; }
.t-press { --c: var(--k-advisory); }
.t-official { --c: var(--mint); }
.t-analysis { --c: var(--k-analysis); }
.t-measure { --c: #a3e635; }

/* the spine runs down the middle; stages sit on it, cards branch left and right */
.ch-flow { position: relative; list-style: none; margin: 0; padding: 0 !important; }
.ch-flow::before { content: ""; position: absolute; inset-inline-start: 50%; top: 8px; bottom: 40px; border-inline-start: 1.5px solid var(--ch-line); }
.article .ch-flow > li { position: relative; margin: 0 0 22px; list-style: none; display: flex; flex-direction: column; align-items: center; }
.ch-flow > li::marker { content: ""; }
.ch-stage {
  position: relative; z-index: 1; margin-bottom: 14px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--ch-line);
  font: 600 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.ch-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(95, 224, 189, .15); }
.ch-col { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; list-style: none; margin: 0; padding: 0 !important; }
.ch-col:has(> :only-child) { grid-template-columns: minmax(0, calc(50% - 15px)); justify-content: center; }
/* branch: a horizontal bar across the spine joining the two cards */
.ch-col:has(> :nth-child(2))::before { content: ""; position: absolute; top: 50%; inset-inline: 25%; border-top: 1.5px solid var(--ch-line); }
.ch-col:has(> :nth-child(2))::after { content: ""; position: absolute; top: calc(50% - 4px); inset-inline-start: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--ch-line); }
.article .ch-node { position: relative; z-index: 1; margin: 0; list-style: none; display: flex; }

.ch-card {
  position: relative; flex: 1; padding: 12px 13px 11px; border-radius: 12px;
  background: #0b142b; border: 1px solid var(--line); border-top: 3px solid var(--c);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.t-analysis .ch-card { border-style: dashed; background: #0f1530; }
.ch-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ch-n { font: 500 .78rem/1 var(--mono); color: var(--muted); }
.ch-type { font: 600 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); padding: 4px 7px; border-radius: 5px; background: color-mix(in srgb, var(--c) 13%, transparent); }
.ch-date { margin-inline-start: auto; font: 500 .7rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.article .ch-card strong { display: block; font-size: .95rem; line-height: 1.32; color: #fff; }
.article .ch-card p { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: var(--text-2); }
.ch-rel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-rel span { font: 500 .66rem/1 var(--mono); padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--text-2); }
.ch-rel .r-contra { border-color: rgba(255, 107, 122, .5); color: #ffb3bb; }
.ch-rel .r-conf { border-color: rgba(95, 224, 189, .5); color: #a9f0dc; }
.ch-src { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted); }
.article .ch-foot { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .76rem; color: var(--muted); }

html[lang="ar"] .ch-kick, html[lang="ar"] .ch-type, html[lang="ar"] .ch-rel span, html[lang="ar"] .ch-stage { font-family: var(--font-ar-head); letter-spacing: 0; text-transform: none; font-weight: 600; }
html[lang="ar"] .ch-type, html[lang="ar"] .ch-rel span { font-size: .72rem; }
html[lang="ar"] .ch-stage { font-size: .78rem; }
html[lang="ar"] .article .ch-card strong { font-family: var(--font-ar-head); font-size: .92rem; line-height: 1.6; }
html[lang="ar"] .article .ch-card p { font-size: .9rem; line-height: 1.75; }

/* phones: spine moves to the start edge, one card per row */
@media (max-width: 640px) {
  .ch-wrap { padding: 18px 14px 16px; margin-inline: -4px; }
  .ch-flow { padding-inline-start: 22px !important; }
  .ch-flow::before { inset-inline-start: 6px; }
  .article .ch-flow > li { align-items: stretch; }
  .ch-stage { align-self: flex-start; margin-inline-start: -22px; }
  .ch-col, .ch-col:has(> :only-child) { grid-template-columns: 1fr; justify-content: stretch; }
  .ch-col:has(> :nth-child(2))::before, .ch-col:has(> :nth-child(2))::after { display: none; }
  .ch-node::before { content: ""; position: absolute; inset-inline-start: -16px; top: 22px; width: 16px; border-top: 1.5px solid var(--ch-line); }
}
html[lang="ar"] .ch-date { font-family: var(--font-ar-head); font-size: .74rem; }


/* ===== Batch 2 (premium): headline fonts, zellige motif, new header and home ===== */
@font-face { font-family: "Serif4"; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.f2b7e1cf1d.woff2") format("woff2"); }
@font-face { font-family: "Serif4"; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-700-normal.7691c51bc2.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.0e51dc246c.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.1804988cf9.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.4e28c70b7d.woff2") format("woff2"); }
:root {
  --head: "Serif4", Georgia, "Times New Roman", serif;
  --font-ar-head: "PlexAr", "Kufi", "Segoe UI", Tahoma, Arial, sans-serif;
  --v-ok: #5fe0bd; --v-warn: #f3c84b; --v-open: #9aa6c2;
}
.z-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* header: one row, five items */
.z-top .top-row { height: 72px; gap: 28px; justify-content: flex-start; }
.z-top .brand { gap: 10px; }
.z-mark { width: 30px; height: 30px; flex: none; }
.foot .z-mark { width: 26px; height: 26px; }
.z-top .nav { border: 0; background: none; flex: 1; min-width: 0; }
.z-top .nav-row { padding: 0; gap: 4px; overflow: visible; }
.z-top .nav a, .z-top .nav-ops > summary { font-size: .95rem; padding: 9px 12px; }
.z-top .nav a[aria-current="page"], .z-top .nav-ops-on > summary { background: transparent; border-color: transparent; color: #fff; box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
.z-top .nav > .nav-row > a > .nav-dot, .z-top .nav-ops > summary > .nav-dot { display: none; }
.z-top .top-actions { margin-inline-start: auto; }
.z-top .cta { border-radius: 10px; padding: 10px 15px; box-shadow: 0 8px 26px -12px rgba(95, 224, 189, .7); }
@media (max-width: 1140px) { .z-top .nav { display: flex; } .z-top .burger { display: none; } }
@media (max-width: 1020px) { .z-top .nav { display: none; } .z-top .burger { display: block; } }
@media (max-width: 560px) { .z-top .top-row { height: 60px; gap: 10px; } .z-mark { width: 26px; height: 26px; } }
@media (max-width: 400px) { .z-top .search-link { display: none; } }

/* shared bits */
.z-home { --gap: 64px; }
.z-eyebrow { font: 500 .74rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
html[lang="ar"] .z-eyebrow { font: 600 .92rem/1.5 var(--font-ar-head); letter-spacing: 0; }
.z-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(95, 224, 189, .14); flex: none; }
.z-home h1, .z-display, .z-display-s, .z-pick h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.015em; }
html[lang="ar"] .z-home :is(h1, .z-display, .z-display-s, .z-pick h3, h3) { font-family: var(--font-ar-head); font-weight: 700; letter-spacing: 0; }
.z-display a, .z-pick h3 a { color: inherit; text-decoration: none; }
.z-display a:hover, .z-pick h3 a:hover { color: var(--mint); }
.z-sec { font: 600 .8rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.z-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
html[lang="ar"] .z-sec { font: 700 1.08rem/1.4 var(--font-ar-head); letter-spacing: 0; color: var(--text); }
.z-mono { font-family: var(--mono); }
.z-link { color: var(--mint); font-weight: 600; text-decoration: none; }
.z-link:hover { text-decoration: underline; }
html[dir="rtl"] .z-arr { display: inline-block; transform: scaleX(-1); }
.z-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--mint); color: #04121a; font-weight: 600; padding: 14px 22px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 30px -10px rgba(95, 224, 189, .55); border: 1px solid var(--mint); }
.z-btn:hover { background: #7cead0; }
.z-ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.z-ghost:hover { background: var(--surface); border-color: var(--mint-dim); }
html[lang="ar"] .z-btn { font-family: var(--font-ar-head); }

/* freshness and verdict chips: always a word, never colour alone */
.z-fresh { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--font); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
html[lang="ar"] .z-fresh { font: 600 .8rem/1 var(--font-ar-head); }
.z-fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.z-ok { color: var(--v-ok); background: rgba(95, 224, 189, .1); }
.z-late { color: var(--v-warn); background: rgba(243, 200, 75, .1); }
.z-off { color: var(--v-open); background: rgba(154, 166, 194, .1); }
.z-verdict { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.z-v { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; border: 1px solid; }
html[lang="ar"] .z-v { font-family: var(--font-ar-head); }
.z-v i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.z-v-ok { color: var(--v-ok); border-color: rgba(95, 224, 189, .35); background: rgba(95, 224, 189, .07); }
.z-v-warn { color: var(--v-warn); border-color: rgba(243, 200, 75, .35); background: rgba(243, 200, 75, .06); }
.z-v-open { color: var(--v-open); border-color: rgba(154, 166, 194, .35); background: rgba(154, 166, 194, .06); }

/* hero */
.z-hero { position: relative; overflow: hidden; padding: 84px 0 76px; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(900px 500px at 85% 20%, rgba(95, 224, 189, .10), transparent 60%), radial-gradient(700px 400px at 10% 100%, rgba(127, 178, 255, .07), transparent 60%); }
.z-hero-art { position: absolute; inset-inline-end: -120px; top: -60px; width: 760px; height: 760px; opacity: .26; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 68%); mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 68%); }
.z-hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: 64px; align-items: center; }
.z-home h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 19ch; margin: 0; }
html[lang="ar"] .z-home h1 { line-height: 1.4; max-width: 18ch; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.z-lede { font-size: 1.2rem; color: var(--text-2); max-width: 46ch; margin: 22px 0 32px; }
html[lang="ar"] .z-lede { font-size: 1.25rem; }
.z-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.z-panel { background: linear-gradient(180deg, rgba(19, 32, 66, .92), rgba(14, 24, 48, .92)); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); }
.z-panel-h { display: flex; justify-content: space-between; gap: 10px; font: 600 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
html[lang="ar"] .z-panel-h > span { font: 700 .98rem var(--font-ar-head); letter-spacing: 0; }
.z-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.z-row b { font: 600 1.5rem/1 var(--font); color: #fff; }
.z-panel-f { margin: 14px 0 0; font-size: .84rem; color: var(--muted); }

/* help */
.z-helpwrap { padding-top: 56px; }
.z-help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.z-help { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.z-help:hover { border-color: var(--mint-dim); transform: translateY(-2px); }
.z-help svg { width: 34px; height: 34px; color: var(--mint); margin-bottom: 8px; }
.z-help strong { font-size: 1.05rem; line-height: 1.35; }
html[lang="ar"] .z-help strong { font-family: var(--font-ar-head); }
.z-help span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.z-urgent { border-color: rgba(255, 154, 77, .45); background: linear-gradient(180deg, rgba(255, 154, 77, .08), var(--surface)); }
.z-urgent svg { color: var(--high); }

/* case file */
.z-dossier { margin-top: var(--gap); display: grid; grid-template-columns: .95fr 1.15fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.z-dossier-art { background: radial-gradient(circle at 50% 40%, #13224a, #0a1226 70%); border-inline-end: 1px solid var(--line); min-height: 300px; }
.z-dossier-art svg { width: 100%; height: 100%; display: block; }
.z-dossier-body { padding: 44px; }
.z-dossier-body h2 { font-size: 2rem; line-height: 1.15; margin: 0; }
html[lang="ar"] .z-dossier-body h2 { font-size: 1.7rem; line-height: 1.55; }
.z-dossier-body > p:not(.z-eyebrow) { color: var(--text-2); }

/* watch room */
.z-room { margin-top: 72px; padding: 64px 0; background: linear-gradient(180deg, #040814, #070e22); border-block: 1px solid var(--line-soft); position: relative; }
.z-room-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.z-room-h h2 { font-size: 2.1rem; margin: 0; }
.z-room-m { color: var(--muted); font-size: .82rem; margin: 0; }
.z-readings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.z-reading { background: rgba(14, 24, 48, .85); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.z-reading header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--text-2); font-size: .95rem; }
html[lang="ar"] .z-reading header { font-family: var(--font-ar-head); }
.z-big { display: block; font: 500 3.4rem/1 var(--font); margin: 22px 0 6px; color: #fff; }
.z-delta { margin: 0; color: var(--text-2); font-size: .95rem; }
.z-up { color: var(--high); } .z-down { color: var(--mint); }
.z-spark { width: 100%; height: 56px; margin: 16px 0 4px; }
html[dir="rtl"] .z-spark { transform: scaleX(-1); }
.z-spark polyline { fill: none; stroke: var(--mint); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.z-mini { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 10px; font-size: .9rem; line-height: 1.4; }
.z-mini li { display: flex; gap: 10px; align-items: baseline; }
.z-mini a { color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.z-mini a:hover { color: var(--mint); }
.z-mini .sev { flex: none; }
.z-src { margin: auto 0 0; padding-top: 14px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.z-absent { background: repeating-linear-gradient(135deg, rgba(14, 24, 48, .85) 0 14px, rgba(19, 32, 66, .6) 14px 28px); }
.z-absent .z-big { color: var(--muted); }
.z-strip { margin-top: 18px; background: rgba(14, 24, 48, .6); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.z-strip-h { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--text-2); }
.z-track { display: block; width: 100%; height: 56px; margin-top: 10px; }
html[dir="rtl"] .z-track { transform: scaleX(-1); }
.z-ticks path { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.z-axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.z-ev { stroke: #070e22; stroke-width: 1.5; }
.z-k-incident { fill: var(--k-incident); background: var(--k-incident); }
.z-k-advisory { fill: var(--k-advisory); background: var(--k-advisory); }
.z-k-scam { fill: var(--k-scam); background: var(--k-scam); }
.z-k-analysis { fill: var(--k-analysis); background: var(--k-analysis); }
.z-k-guide { fill: var(--k-guide); background: var(--k-guide); }
.z-k-opinion { fill: var(--k-opinion); background: var(--k-opinion); }
.z-k-news { fill: var(--gold); background: var(--gold); }
.z-evs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: .9rem; }
.z-evs li { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.z-evk { flex: none; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.z-evd { flex: none; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.z-evs a { color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-evs a:hover { color: var(--mint); }
.z-room-more { margin: 22px 0 0; }

/* picks */
.z-picks { margin-top: var(--gap); }
.z-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.z-pick { display: flex; flex-direction: column; gap: 10px; }
.z-pick-art { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 1; background: radial-gradient(circle at 50% 30%, #13224a, #0a1226 75%); margin-bottom: 6px; transition: border-color .2s; }
.z-pick-art:hover { border-color: var(--mint-dim); }
.z-pick-art svg { width: 100%; height: 100%; display: block; }
.z-pick h3 { font-size: 1.32rem; line-height: 1.25; margin: 0; }
html[lang="ar"] .z-pick h3 { font-size: 1.15rem; line-height: 1.65; }

/* report + Darna */
.z-duo { margin-top: var(--gap); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.z-duo-one { grid-template-columns: 1fr; }
.z-report-mark { margin-top: auto; display: flex; justify-content: center; color: var(--mint); }
.z-report-mark svg { width: 56%; height: auto; }
.z-report, .z-darna { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.z-darna { background: linear-gradient(135deg, rgba(95, 224, 189, .10), var(--surface) 60%); border-color: rgba(95, 224, 189, .3); transition: border-color .2s; }
.z-darna:hover { border-color: var(--mint); }
.z-display-s { font-size: 1.45rem; line-height: 1.25; margin: 0 0 8px; }
.z-report p:not(.z-eyebrow), .z-darna p:not(.z-eyebrow) { margin: 0; color: var(--text-2); font-size: .95rem; }
.z-report-card { aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(160deg, #13224a, #070e22); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.z-report-card .z-mono { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
html[lang="ar"] .z-report-card .z-mono { font: 700 .75rem var(--font-ar-head); letter-spacing: 0; }
.z-report-card strong { font-family: var(--head); font-size: 1.1rem; line-height: 1.2; }
html[lang="ar"] .z-report-card strong { font-family: var(--font-ar-head); }
.z-report-card svg { margin-top: auto; width: 100%; height: auto; }
.z-bars rect { fill: var(--mint); opacity: .8; }
.z-phone { width: 112px; height: 200px; margin: 0 auto; border-radius: 22px; border: 2px solid #2a3a63; background: #070e22; padding: 10px; box-shadow: 0 20px 40px -20px rgba(95, 224, 189, .4); }
.z-phone > div { height: 100%; border-radius: 14px; background: #0b1430; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 18px; }
.z-ring { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--mint); border-inline-end-color: #1c2a4d; margin-bottom: 8px; }
.z-phone i { width: 70%; height: 8px; border-radius: 4px; background: #1c2a4d; } .z-phone i.z-s { width: 50%; }
.z-soon { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--mint); border: 1px solid rgba(95, 224, 189, .4); padding: 4px 10px; border-radius: 999px; }

/* method */
.z-method { margin-top: 72px; padding: 56px 0; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.z-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.z-num { color: var(--mint); font: 500 .9rem var(--mono); }
.z-method h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.z-method p { margin: 0; color: var(--text-2); font-size: .95rem; }

@media (max-width: 900px) {
  .z-hero-grid, .z-dossier { grid-template-columns: 1fr; }
  .z-help-grid { grid-template-columns: 1fr 1fr; }
  .z-readings, .z-pick-grid, .z-duo, .z-method-grid { grid-template-columns: 1fr; }
  .z-dossier-art { min-height: 0; height: 200px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .z-evs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .z-home { --gap: 44px; }
  .z-hero { padding: 40px 0 44px; }
  .z-hero-grid { gap: 32px; }
  .z-hero-art { width: 520px; height: 520px; inset-inline-end: -200px; top: -120px; }
  .z-lede { font-size: 1.05rem; margin: 16px 0 24px; }
  .z-ctas .z-btn { width: 100%; }
  .z-helpwrap { padding-top: 36px; }
  .z-help-grid { gap: 10px; }
  .z-help { padding: 14px; } .z-help strong { font-size: .95rem; } .z-help span { font-size: .8rem; }
  .z-dossier { border-radius: 18px; }
  .z-dossier-body { padding: 22px; } .z-dossier-body h2 { font-size: 1.45rem; }
  html[lang="ar"] .z-dossier-body h2 { font-size: 1.3rem; }
  .z-room { margin-top: 44px; padding: 40px 0; }
  .z-room-h { flex-direction: column; align-items: start; gap: 8px; } .z-room-h h2 { font-size: 1.55rem; }
  .z-big { font-size: 2.8rem; margin-top: 14px; }
  .z-evs a { white-space: normal; }
  .z-report, .z-darna { grid-template-columns: 96px 1fr; padding: 20px; gap: 16px; }
  .z-phone { width: 84px; height: 150px; padding: 7px; border-radius: 18px; }
  .z-ring { width: 40px; height: 40px; border-width: 5px; }
  .z-report-card strong { font-size: .9rem; }
  .z-method { margin-top: 44px; padding: 40px 0; } .z-method-grid { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .z-help, .z-pick-art, .z-darna { transition: none; } .z-help:hover { transform: none; } }
@media (forced-colors: active) { .z-v, .z-fresh { border: 1px solid CanvasText; } }
.z-method .z-room-more { margin-top: 28px; }
@media (max-width: 560px) { .z-row { grid-template-columns: 1fr auto; gap: 6px 12px; } .z-row .z-fresh { grid-column: 1 / -1; justify-self: start; } .z-panel-h { flex-wrap: wrap; } }

/* ===== Batch 3: source health ===== */
.sh { margin: 8px 0 34px; }
.sh h2 { font-family: var(--head); font-size: 1.6rem; margin: 0 0 6px; }
html[lang="ar"] .sh h2 { font-family: var(--font-ar-head); }
.sh-card { overflow-x: auto; }
.sh-table th[scope="row"] { min-width: 220px; }
.sh-table th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 4px; }
.sh-limit td { color: var(--muted); font-size: .8rem; padding-top: 0; border-top: 0; }
.sh-strip { display: inline-flex; gap: 3px; }
.sh-d { width: 10px; height: 18px; border-radius: 3px; background: var(--line); }
.sh-ok { background: var(--mint); } .sh-part { background: var(--gold); } .sh-fail { background: var(--critical); } .sh-none { background: var(--line); }
.sh-legend { color: var(--muted); font-size: .8rem; margin: 10px 0 0; }
.sh-dl { margin-top: 16px; } .sh-dl h3 { margin: 0 0 6px; }
@media (max-width: 760px) { .sh-table th[scope="row"] { min-width: 170px; } }

/* Home: every article, by section (Hafid, 3 Dec 2026) */
.z-all { margin-top: var(--gap); scroll-margin-top: 90px; }
.z-all-grid { columns: 3 300px; column-gap: 22px; }
.z-all-col { break-inside: avoid; display: inline-block; inline-size: 100%; margin: 0 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 14px; }
.z-all-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.z-all-h h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.z-all-h .z-link { font-size: .85rem; white-space: nowrap; }
.z-all-n { font: 500 .75rem/1 var(--mono); color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.z-all-col ul { list-style: none; margin: 0; padding: 0; }
.z-all-col li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.z-all-col li:first-child { border-top: 0; }
.z-all-col li a { color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.4; }
.z-all-col li a:hover { color: var(--mint); }
.z-all-col time { color: var(--text-2); font-size: .8rem; }
html[lang="ar"] .z-all-h h3 { font-family: var(--font-ar-head); }

/* Phones: the language buttons get their own slim row under the header, not only inside the menu (Hafid, 3 Dec 2026) */
.z-langbar { display: none; }
@media (max-width: 560px) {
  .z-langbar { display: flex; justify-content: flex-end; padding-bottom: 8px; margin-top: -4px; }
  .z-langbar .langs { padding: 2px; gap: 2px; }
  .z-langbar .langs a { min-width: 34px; padding: 6px 10px; font-size: .74rem; }
  .z-langbar .langs a[lang="ar"] { padding-top: 4px; padding-bottom: 5px; font-size: .85rem; }
}

/* Home: article slider at the top of the page (Hafid, 3 Dec 2026). Swipe or scroll sideways
   without the script; with assets/home.js it also moves by itself, with a pause button. */
.z-slider { padding: 34px 0 10px; background: radial-gradient(900px 420px at 80% 0%, rgba(95, 224, 189, .08), transparent 60%); }
.z-slides { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); }
.z-slides::-webkit-scrollbar { display: none; }
.z-slides:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.z-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 44px 48px; min-height: 360px; box-sizing: border-box; }
.z-slide-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.z-slide-t { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; margin: 0; max-width: 24ch; }
html[lang="ar"] .z-slide-t { line-height: 1.45; }
.z-slide-p { margin: 0; color: var(--text-2); font-size: 1.08rem; max-width: 58ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.z-slide .meta { color: var(--text-2); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.z-slide-go { align-self: flex-start; margin-top: 6px; }
.z-slide-art { display: block; opacity: .9; }
.z-slide-art svg { width: 100%; height: auto; max-height: 260px; }
.z-slider-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.z-dots { display: flex; gap: 8px; align-items: center; }
.z-dot-link { width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width .25s, background .25s; }
.z-dot-link:hover { background: var(--text-2); }
.z-dot-link[aria-current="true"] { width: 28px; background: var(--mint); }
.z-count { font: 500 .78rem/1 var(--mono); color: var(--text-2); min-width: 3.2em; text-align: center; }
.z-ctl { display: none; inline-size: 38px; block-size: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; font: 600 1rem/1 var(--font); align-items: center; justify-content: center; padding: 0; }
.z-ctl:hover { border-color: var(--mint); color: var(--mint); }
.z-ctl:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.z-js .z-ctl { display: inline-flex; }
.z-js .z-ctl[hidden] { display: none; }
.z-i-pause { display: inline-block; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.z-i-play { display: none; width: 0; height: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; }
html[dir="rtl"] .z-i-play { transform: scaleX(-1); }
.z-stopped .z-i-pause { display: none; }
.z-stopped .z-i-play { display: inline-block; }
.z-slider + .z-hero { padding-top: 56px; }
@media (max-width: 760px) {
  .z-slider { padding-top: 18px; }
  .z-slide { grid-template-columns: 1fr; padding: 26px 22px 28px; min-height: 0; gap: 0; align-items: start; }
  .z-slide-art { display: none; }
  .z-slide-t { font-size: 1.45rem; }
  .z-slide-p { font-size: 1rem; }
  .z-slides { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .z-dot-link { transition: none; } }

/* DGSSI publication calendar (dgssi_calendar.py): monthly review cover.
   Every class starts with "cal-"; nothing here touches other pages.
   Shape carries the DGSSI level: solid = Critique, outlined = Important,
   dotted = level not read. Hatched = not collected; small ring = collected, no bulletin. */
.cal { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head art" "body art"; column-gap: 40px; row-gap: 18px; align-items: start; }
.cal-head { grid-area: head; display: grid; gap: 12px; }
.cal-art { grid-area: art; align-self: center; position: sticky; top: 90px; background: radial-gradient(closest-side, rgba(95, 224, 189, .07), transparent 74%); }
.cal-body { grid-area: body; display: grid; gap: 18px; align-content: start; }
.cal-kicker { margin: 0; font: 500 .74rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--mint); }
.cal-title { margin: 0; font: 600 clamp(1.8rem, 4.2vw, 2.8rem)/1.12 var(--head); letter-spacing: -.018em; color: var(--text); text-wrap: balance; }
.cal-lede { margin: 0; color: var(--text); font-size: 1.08rem; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.cal-lede2 { margin: 0; color: var(--text-2); font-size: .95rem; max-width: 62ch; }

.cal-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cal-facts li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: baseline; border-top: 1px solid var(--line-soft); padding: 11px 0; }
.cal-facts li:last-child { border-bottom: 1px solid var(--line-soft); }
.cal-facts b { font: 700 2rem/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.cal-facts span { color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.cal-facts .cal-fact-none { grid-template-columns: 1fr; }

.cal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.cal-lh { margin: 0 0 6px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cal-keys li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.35; color: var(--text-2); }
.cal-keys b { font: 600 .88rem/1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-sw { display: block; width: 30px; height: 18px; }

.cal-note { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.6; border-inline-start: 3px solid var(--gold); padding-inline-start: 12px; }
.cal-data summary { cursor: pointer; color: var(--mint); font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.cal-scroll { overflow-x: auto; }
.cal-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 6px; }
.cal-table caption { text-align: start; color: var(--muted); padding-bottom: 6px; caption-side: top; }
.cal-table th, .cal-table td { padding: 5px 8px; border-top: 1px solid var(--line-soft); text-align: end; font-variant-numeric: tabular-nums; }
.cal-table thead th { color: var(--muted); font-weight: 500; vertical-align: bottom; }
.cal-table th:first-child { text-align: start; font-weight: 500; white-space: nowrap; }
.cal-table th bdi { font-family: var(--mono); }
.cal-wd { display: inline-block; min-width: 3.4em; color: var(--muted); }
.cal-table tr.cal-na td { text-align: center; color: var(--muted); font-style: italic; }
.cal-source { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.cal-source a { color: var(--text-2); }
.cal-preview-note { margin: 40px 0 32px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; }
.cal-page { padding-top: 36px; }

/* drawing */
.cal-svg { display: block; width: 100%; height: auto; direction: ltr; }
.cal-svg .cal-rtl, .cal-svg.cal-rtl { direction: rtl; unicode-bidi: embed; }
.cal-t { stroke-width: 1.8; }
.cal-crit { fill: var(--critical); stroke: var(--critical); }
.cal-imp { fill: rgba(243, 200, 75, .08); stroke: var(--medium); }
.cal-oth { fill: rgba(127, 178, 255, .18); stroke: var(--low); }
.cal-unk { fill: none; stroke: var(--text-2); stroke-dasharray: 2.5 3.5; stroke-linecap: round; }
.cal-zero { fill: none; stroke: var(--text-2); stroke-width: 2; }
.cal-nocol { fill: url(#cal-hatch); stroke: var(--line); stroke-width: 1; }
.cal-future { fill: rgba(232, 237, 248, .03); stroke: var(--muted); stroke-width: 1; opacity: .45; } /* live: day still to come, no hatch */
.cal-dn.cal-fu { fill: var(--muted); opacity: .45; }
.cal-table tr.cal-na.cal-fu td { font-style: normal; opacity: .7; }
.cal-prev { margin: 0; font-size: .9rem; color: var(--text-2); }
.cal-hatch-l { stroke: var(--muted); stroke-width: 1.6; opacity: .6; }
.cal-guide { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 7; }
.cal-guide-t { font: 500 17px var(--mono); fill: var(--muted); }
.cal-week { stroke: var(--gold); stroke-width: 1.3; opacity: .45; }
.cal-dn { font: 500 25px var(--mono); fill: var(--text-2); }
.cal-dn.cal-we { fill: var(--muted); }
.cal-nl { font: 500 18px var(--mono); letter-spacing: .06em; fill: var(--muted); }
.cal-hub { fill: var(--bg-2); stroke: var(--line); stroke-width: 1; }
.cal-seed { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .5; }
.cal-star { fill: rgba(95, 224, 189, .06); stroke: var(--mint); stroke-width: 1.4; opacity: .7; }
.cal-c, .cal-c3 { paint-order: stroke; stroke: var(--bg-2); stroke-width: 7px; stroke-linejoin: round; } /* halo: star lines never cross the letters */
.cal-c1 { font: 600 29px var(--font); fill: var(--text-2); }
.cal-c2 { font: 700 54px var(--head); fill: var(--text); letter-spacing: .01em; }
.cal-c3 { font: 500 24px var(--mono); fill: var(--mint); letter-spacing: .04em; }

/* Arabic */
html[lang="ar"] .cal-kicker, html[lang="ar"] .cal-lh { font-family: var(--font-ar-head); letter-spacing: 0; text-transform: none; font-size: .85rem; }
html[lang="ar"] .cal-title { font: 700 clamp(1.7rem, 5.6vw, 2.6rem)/1.4 var(--font-ar-head); letter-spacing: 0; }
html[lang="ar"] .cal-lede { font-family: var(--font-ar); font-size: 1.12rem; line-height: 1.9; }
html[lang="ar"] .cal-lede2, html[lang="ar"] .cal-note, html[lang="ar"] .cal-facts span, html[lang="ar"] .cal-keys li { font-family: var(--font-ar); line-height: 1.8; }
html[lang="ar"] .cal-data summary { font-family: var(--font-ar-head); }
html[lang="ar"] .cal-c1 { font: 700 34px var(--font-ar-head); }
html[lang="ar"] .cal-c3, html[lang="ar"] .cal-nl { font-family: var(--font-ar-head); letter-spacing: 0; }
html[lang="ar"] .cal-c3 { font-size: 27px; }
html[lang="ar"] .cal-nl { font-size: 21px; }
html[lang="ar"] .cal-wd { min-width: 4.6em; }

@media (max-width: 980px) {
  .cal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; row-gap: 20px; }
  .cal-art { position: static; margin-inline: -10px; }
  .cal-page { padding-top: 22px; }
}
@media (max-width: 560px) {
  .cal-legend { grid-template-columns: 1fr; }
  .cal-facts li { grid-template-columns: 56px minmax(0, 1fr); }
  .cal-facts b { font-size: 1.75rem; }
  .cal-table th, .cal-table td { padding: 5px 5px; }
}

/* Inside an article column the figure is narrower than the page: lay it out by its own width. */
.cal-wrap { container-type: inline-size; margin: 28px 0 36px; }
@container (max-width: 900px) {
  .cal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; row-gap: 20px; }
  .cal-art { position: static; width: min(100%, 560px); margin-inline: auto; }
}
@container (max-width: 560px) {
  .cal-legend { grid-template-columns: 1fr; }
  .cal-facts li { grid-template-columns: 56px minmax(0, 1fr); }
}

/* ===== Incident evidence board + per-dossier box (evidence_page.py) — logical properties ===== */
.ev-s-confirmed { --ev: var(--v-ok); }
.ev-s-claimed { --ev: var(--v-warn); }
.ev-s-unresolved { --ev: var(--v-open); }
.ev-s-denied { --ev: var(--critical); }
.ev-s-superseded { --ev: var(--muted); }

.ev-tally { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-n { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ev) 40%, transparent); color: var(--ev); font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--ev) 8%, transparent); }
.ev-n b { font: 600 .95rem/1 var(--mono); }
html[lang="ar"] .ev-n { font-family: var(--font-ar-head); font-size: .85rem; }

/* box under the dossier title */
.ev-box { margin-block: 26px 34px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(14, 24, 48, .9), rgba(10, 18, 38, .9)); }
.ev-box-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 14px; }
.ev-k { margin: 0; font: 600 .76rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
html[lang="ar"] .ev-k { font: 700 1rem/1.4 var(--font-ar-head); letter-spacing: 0; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ev-c { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding-block: 12px; border-block-start: 1px solid var(--line-soft); }
.ev-st { display: inline-flex; align-items: center; gap: 8px; align-self: start; color: var(--ev); font-weight: 700; font-size: .8rem; }
html[lang="ar"] .ev-st { font-family: var(--font-ar-head); font-size: .9rem; }
.ev-st i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); flex: none; }
.ev-s-superseded .ev-t { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--text-2); }
.ev-body { min-width: 0; }
.ev-t { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.5; }
.ev-by { margin: 4px 0 0; color: var(--text-2); font-size: .84rem; }
.ev-who-l { color: var(--muted); }
.ev-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.ev-meta a { color: var(--text-2); }
.ev-meta a:hover { color: var(--mint); }
.ev-nosrc { font-style: italic; }
.ev-sup, .ev-cor { margin: 6px 0 0; font-size: .82rem; color: var(--text-2); }
.ev-note, .ev-legend { margin: 12px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.ev-note { padding-block-start: 12px; border-block-start: 1px solid var(--line-soft); }

/* board at the top of the Incidents section */
.ev-board { margin-block: 8px 44px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #070e22, #0a1226); }
.ev-board-head { max-width: 760px; margin-block-end: 18px; }
.ev-board-head p:not(.z-eyebrow) { margin: 0; color: var(--text-2); line-height: 1.55; }
.ev-board-t { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 1.6rem; color: #fff; }
html[lang="ar"] .ev-board-t { font-family: var(--font-ar-head); font-weight: 700; }
.ev-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 190px; gap: 10px 22px; align-items: center; padding-block: 14px; border-block-start: 1px solid var(--line-soft); }
.ev-row-h { min-width: 0; display: grid; gap: 4px; }
.ev-row-d { font-size: .76rem; color: var(--muted); }
.ev-row-t { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35; }
.ev-row-t:hover { color: var(--mint); text-decoration: underline; }
.ev-row-v { margin: 0; display: grid; gap: 2px; font-size: .84rem; color: var(--text-2); }
.ev-row-v span { font-size: .72rem; color: var(--muted); }

@media (max-width: 860px) {
  .ev-row { grid-template-columns: 1fr; gap: 8px; }
  .ev-row-v { display: flex; gap: 8px; align-items: baseline; }
  .ev-c { grid-template-columns: 1fr; gap: 6px; }
  .ev-board { padding: 18px; }
  .ev-box { padding: 16px; }
}
@media (forced-colors: active) { .ev-n, .ev-box, .ev-board { border: 1px solid CanvasText; } }

/* ===== Measurement tools: national connectivity (tool 6) and protocol usage (tool 7) =====
   Site variables only, logical properties, no inline styles. Charts are inline SVG in
   dir="ltr" wrappers; text inside them uses these classes. */
.ms-con { display: grid; gap: 14px; }
.ms-lede { margin: 0; }
.ms-card { display: flex; flex-direction: column; gap: 12px; }
.ms-card .ops-src { margin-block-start: auto; }
.ms-empty { margin: 0; color: var(--text-2); font-size: .95rem; }

/* 30-day strip */
.ms-strip-wrap { margin-block: 4px 0; }
.ms-strip { display: block; inline-size: 100%; block-size: auto; }
.ms-axis { stroke: var(--line); stroke-width: 1; }
.ms-tick { stroke: var(--line-soft); stroke-width: 1; }
.ms-ev { stroke: var(--bg-2); stroke-width: 1; }
.ms-svg-t { fill: var(--muted); font: 500 15px var(--mono); }
html[lang="ar"] .ms-svg-t { font-family: var(--font-ar-head); }
.ms-strip-t { font-size: 20px; }
.ms-svg-l { fill: var(--text-2); font: 600 15px var(--font); }
.ms-svg-v { fill: var(--text-2); font: 600 14px var(--mono); }

/* confidence: always a word as well as a colour */
.ms-conf-high { fill: var(--gold); background: var(--gold); }
.ms-conf-mid { fill: var(--low); background: var(--low); }
.ms-conf-low { fill: var(--muted); background: var(--muted); }
.ms-conf { display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--text-2); font-size: .85rem; }
.ms-conf::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 2px; transform: rotate(45deg); background: currentColor; flex: none; }
.ms-conf.ms-conf-high { color: var(--gold); }
.ms-conf.ms-conf-mid { color: var(--low); }
.ms-conf.ms-conf-low { color: var(--text-2); }
.ms-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--muted); }
.ms-legend li { display: inline-flex; align-items: center; gap: 8px; }
.ms-key { inline-size: 10px; block-size: 10px; border-radius: 2px; flex: none; }
.ms-tablewrap { overflow-x: auto; }
.ms-table { inline-size: 100%; font-size: .88rem; }
.ms-table td, .ms-table th { text-align: start; padding-block: 6px; padding-inline: 0 12px; }

/* baseline progress */
.ms-building { margin: 0; color: var(--text-2); }
.ms-prog svg { display: block; inline-size: 100%; max-inline-size: 420px; block-size: auto; }
html[dir="rtl"] .ms-prog svg { transform: scaleX(-1); }  /* progress fills from the reading start */
.ms-seg { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.ms-seg-on { fill: var(--mint-dim); stroke: var(--mint); }
.ms-sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-sig li { display: flex; justify-content: space-between; gap: 12px; border-block-end: 1px solid var(--line-soft); padding-block: 6px; }
.ms-sig b { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ---- tool 7 */
.ms-proto .mon-ph { flex-wrap: wrap; }
.ms-chipline { margin-block: 4px 0; }
.ms-caption { margin: 6px 0 0; padding: 10px 14px; border-inline-start: 3px solid var(--gold); background: rgba(212, 179, 106, .07); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: .9rem; }
html[dir="rtl"] .ms-caption { border-radius: 10px 0 0 10px; }
.ms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 8px 6px; }
.ms-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ms-tile-l { font-weight: 600; color: var(--text-2); font-size: .92rem; }
html[lang="ar"] .ms-tile-l { font-family: var(--font-ar-head); }
.ms-tile-v { font: 600 2.4rem/1.1 var(--font); color: var(--mint); }
.ms-tile-o { font-size: .88rem; color: var(--muted); }
.ms-tile-d { margin: 6px 0 0; font-size: .86rem; color: var(--text-2); line-height: 1.5; }
.ms-legend-r { margin-block: 14px 4px; }
.ms-r-MA { fill: var(--mint); stroke: var(--mint); background: var(--mint); }
.ms-r-AF { fill: var(--low); stroke: var(--low); background: var(--low); }
.ms-r-WW { fill: var(--gold); stroke: var(--gold); background: var(--gold); }
.ms-v-MA { fill: var(--mint); }
.ms-track { fill: var(--surface-2); }
.ms-bar { stroke: none; }
.ms-bar.ms-r-AF, .ms-bar.ms-r-WW { opacity: .75; }
.ms-bars { display: block; inline-size: 100%; block-size: auto; }
.ms-mob { display: none; }
.ms-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ms-fig { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; }
.ms-fig figcaption { font-weight: 600; color: var(--text-2); font-size: .9rem; }
.ms-trend { display: block; inline-size: 100%; block-size: auto; }
.ms-grid { stroke: var(--line-soft); stroke-width: 1; }
.ms-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.ms-line.ms-r-MA { stroke-width: 3; }
.ms-line.ms-r-AF, .ms-line.ms-r-WW { stroke-dasharray: 6 5; opacity: .8; }
.ms-pq { margin-block-start: 22px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(14, 24, 48, .5); }
.ms-pq h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ms-pq p { margin: 6px 0; color: var(--text-2); font-size: .92rem; }
.ms-pq-v { font-weight: 600; color: var(--text); }
@media (max-width: 760px) {
  .ms-desk { display: none; }
  .ms-mob { display: block; }
  .ms-tiles, .ms-figs { grid-template-columns: 1fr; }
  .ms-tile-v { font-size: 2rem; }
  .ms-table { font-size: .82rem; }
  .ms-trend .ms-svg-t, .ms-trend .ms-svg-v { font-size: 19px; }
}
@media (forced-colors: active) { .ms-key, .ms-conf::before { border: 1px solid CanvasText; } }

/* ===== Protection tools (team/protect): «Arnaques documentées» and «Mises à jour à installer» =====
   Uses the site variables from assets/style.css; logical properties only (RTL-safe). */
.pt { padding-block: 44px 8px; }
.pt + .section-body, .pt ~ .section-body { padding-top: 24px; }
.pt-h { font-family: var(--head); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; margin: 0; max-width: 24ch; }
html[lang="ar"] .pt-h { font-family: var(--font-ar-head); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
.pt-lede { color: var(--text-2); font-size: 1.08rem; max-width: 62ch; margin: 14px 0 26px; }
.pt-lede2 { color: var(--text-2); font-size: .95rem; max-width: 70ch; margin: -8px 0 18px; }
.pt-muted, .pt-empty { color: var(--muted); font-size: .92rem; margin: 0; }
.pt h4 { font-size: .78rem; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
html[lang="ar"] .pt h4 { font: 700 .95rem/1.5 var(--font-ar-head); letter-spacing: 0; text-transform: none; }
.pt-ico { width: 30px; height: 30px; color: var(--k-scam); flex: none; }
.pt-dom { font-family: var(--mono); font-size: .88em; }

/* stats */
.pt-stats { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.pt-stats li { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pt-stats b { font: 500 1.9rem/1 var(--font); color: #fff; }
.pt-stats span { color: var(--text-2); font-size: .9rem; }
.pt-stats .pt-stat-f { align-items: center; background: transparent; border-style: dashed; }

/* family picker */
.pt-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.pt-card .pt-ico { width: 30px; height: 30px; margin-bottom: 6px; }
.pt-card-0 { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, rgba(19, 32, 66, .55) 14px 28px); }
.pt-card-0 .pt-ico { color: var(--muted); }

/* family panels */
.pt-fams { display: grid; gap: 10px; margin-bottom: 56px; }
.pt-fam { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); scroll-margin-top: 90px; }
.pt-fam[open] { border-color: rgba(255, 178, 77, .35); background: var(--surface); }
.pt-fam > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.pt-fam > summary::-webkit-details-marker { display: none; }
.pt-fam > summary::after { content: "+"; margin-inline-start: 4px; font: 500 1.3rem/1 var(--mono); color: var(--muted); }
.pt-fam[open] > summary::after { content: "–"; }
.pt-fam > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 16px; }
.pt-fam-i { display: inline-flex; }
.pt-fam-n { font-weight: 600; font-size: 1.08rem; flex: 1; min-width: 0; }
html[lang="ar"] .pt-fam-n { font-family: var(--font-ar-head); }
.pt-fam-c { font: 500 .8rem/1 var(--mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
html[lang="ar"] .pt-fam-c { font: 600 .85rem/1 var(--font-ar-head); }
.pt-fam-b { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 6px 20px 22px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.pt-fam-b > div { min-width: 0; }
html[dir="rtl"] .pt-ev-t[dir="ltr"] { text-align: start; unicode-bidi: isolate; }
.pt-asks { margin: 0 0 18px; color: var(--text); }
.pt-quote { margin: 0 0 22px; padding: 14px 16px; border-inline-start: 3px solid var(--k-scam); background: rgba(255, 178, 77, .06); border-radius: 0 10px 10px 0; }
html[dir="rtl"] .pt-quote { border-radius: 10px 0 0 10px; }
.pt-quote blockquote { margin: 0 0 6px; font-family: var(--head); font-size: 1.05rem; }
.pt-quote figcaption { font-size: .82rem; }
.pt-quote a, .pt-src a, .pt-evid a { color: var(--mint); }
.pt-note { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* timeline */
.pt-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.pt-tl::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 6px; width: 1px; background: var(--line); }
.pt-ev { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; padding: 0 0 18px; padding-inline-start: 24px; }
.pt-ev::before { content: ""; position: absolute; inset-inline-start: 1px; top: 7px; width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); background: var(--k-scam); box-shadow: 0 0 0 4px var(--surface); }
.pt-ev-via::before { background: transparent; border: 1.5px solid var(--k-scam); }
.pt-when { font: 500 .84rem/1.5 var(--mono); color: var(--text-2); display: flex; flex-direction: column; }
html[lang="ar"] .pt-when { font: 600 .9rem/1.6 var(--font-ar-head); }
.pt-when small { font: 400 .72rem/1.4 var(--font); color: var(--muted); }
.pt-undated { color: var(--muted); font-style: italic; }
.pt-ev-b { display: grid; gap: 4px; min-width: 0; }
.pt-issuer { font-weight: 600; font-size: .9rem; color: var(--gold); }
html[lang="ar"] .pt-issuer { font-family: var(--font-ar-head); }
.pt-ev-t { color: var(--text); text-decoration: none; line-height: 1.45; overflow-wrap: anywhere; }
.pt-ev-t:hover { color: var(--mint); text-decoration: underline; }
.pt-ev-m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; }
.pt-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid; font-size: .74rem; font-weight: 600; }
.pt-tag-ok { color: var(--v-ok); border-color: rgba(95, 224, 189, .35); }
.pt-tag-via { color: var(--v-open); border-color: rgba(154, 166, 194, .35); font-weight: 500; }
.pt-alt { color: var(--text-2); }
.pt-about { margin: 2px 0 0; color: var(--text-2); font-size: .88rem; }

/* official route */
.pt-route { background: linear-gradient(160deg, rgba(95, 224, 189, .10), rgba(14, 24, 48, .9) 70%); border: 1px solid rgba(95, 224, 189, .32); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.pt-route h4 { color: var(--mint); }
.pt-route-off { background: var(--bg-2); border-color: var(--line); border-style: dashed; }
.pt-route-off h4 { color: var(--muted); }
.pt-route-off p { margin: 0; color: var(--text-2); font-size: .92rem; }
.pt-route-l { margin: 0 0 8px; font-size: .9rem; color: var(--text-2); }
.pt-chan { margin: 0 0 12px; padding-inline-start: 18px; display: grid; gap: 6px; }
.pt-chan li::marker { color: var(--mint); }
.pt-never { margin: 0 0 12px; font-size: .92rem; }
.pt-src { margin: 0; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-arts { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: .94rem; }
.pt-arts a { color: var(--text); }
.pt-arts a:hover { color: var(--mint); }

/* blocks: seasons, clicked, method */
.pt-block { margin-bottom: 52px; }
.pt-sub { margin: 26px 0 12px; }
.pt-seasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pt-season { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: grid; gap: 12px; align-content: start; }
.pt-season h4 { margin: 0; color: var(--text); }
.pt-season-0 { background: repeating-linear-gradient(135deg, rgba(14, 24, 48, .85) 0 14px, rgba(19, 32, 66, .5) 14px 28px); }
.pt-season .z-v { justify-self: start; font-size: .8rem; padding: 6px 10px; }
.pt-tl-s .pt-ev { grid-template-columns: 1fr; padding-bottom: 6px; }
.pt-clicked .pt-cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pt-c { border: 1px solid rgba(255, 154, 77, .4); background: linear-gradient(180deg, rgba(255, 154, 77, .07), var(--surface)); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.pt-c .pt-ico { color: var(--high); }
.pt-c strong { font-size: 1.02rem; }
html[lang="ar"] .pt-c strong { font-family: var(--font-ar-head); }
.pt-c p { margin: 0; color: var(--text-2); font-size: .92rem; }
.pt-method { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-bottom: 30px; color: var(--muted); font-size: .88rem; max-width: 80ch; }
.pt-method p { margin: 0; }

/* patches */
.pt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pt-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.pt-tabs a:hover { border-color: var(--mint-dim); }
.pt-tabs b { font: 500 .8rem/1 var(--mono); color: var(--mint); }
html[lang="ar"] .pt-tabs a { font-family: var(--font-ar-head); }
.pt-cav { border: 1px dashed var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 34px; font-size: .9rem; color: var(--text-2); }
.pt-cav ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.pt-aud { margin-bottom: 40px; scroll-margin-top: 90px; }
.pt-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pt-row { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pt-x-rep { border-inline-start: 3px solid var(--critical); }
.pt-x-none { border-inline-start: 3px solid var(--v-open); }
.pt-row-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pt-row-h h4 { margin: 0; font: 600 1.08rem/1.35 var(--font); letter-spacing: 0; text-transform: none; color: #fff; }
html[lang="ar"] .pt-row-h h4 { font: 700 1.05rem/1.6 var(--font-ar-head); }
.pt-row-h .sev, .pt-row-h .z-v { flex: none; white-space: nowrap; }
.pt-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.pt-dl div { min-width: 0; }
.pt-dl dt { font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
html[lang="ar"] .pt-dl dt { font: 600 .82rem/1.5 var(--font-ar-head); letter-spacing: 0; }
.pt-dl dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.pt-dl dd small { color: var(--muted); font-size: .76rem; }
.pt-dl dd.pt-cves { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
.pt-evid { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; font-size: .86rem; color: var(--text-2); }
.pt-evid li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.pt-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-top: 4px; }
.pt-btn { padding: 10px 16px; font-size: .9rem; }
.pt-srcline { color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 30px; }

@media (max-width: 900px) {
  .pt-pick, .pt-seasons, .pt-clicked .pt-cgrid { grid-template-columns: 1fr 1fr; }
  .pt-fam-b, .pt-rows { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pt { padding-block: 30px 4px; }
  .pt-pick { gap: 8px; }
  .pt-pick .z-help { padding: 12px; }
  .pt-seasons, .pt-clicked .pt-cgrid { grid-template-columns: 1fr; }
  .pt-stats li { padding: 10px 12px; flex: 1 1 40%; }
  .pt-stats b { font-size: 1.5rem; }
  .pt-fam > summary { padding: 14px; gap: 8px 10px; flex-wrap: wrap; }
  .pt-fam-n { flex: 1 1 60%; font-size: 1rem; }
  .pt-fam-c { order: 3; flex-basis: 100%; white-space: normal; text-align: center; }
  .pt-fam > summary::after { order: 2; }
  .pt-fam-b { padding: 16px 14px 18px; }
  .pt-ev { grid-template-columns: 1fr; padding-inline-start: 22px; }
  .pt-dl { grid-template-columns: 1fr; }
  .pt-row { padding: 16px; }
  .pt-row-h { flex-direction: column; }
}
@media (forced-colors: active) { .pt-tag, .pt-fam-c { border: 1px solid CanvasText; } }

/* ===== Salle de veille (room_page.py) — site variables, logical properties ===== */
.rm { background: #040814; }
.rm-room { margin-top: 0; padding-block: 56px 72px; border-block-start: 0; }
.rm-head { max-width: 760px; margin-block-end: 36px; }
.rm-h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; color: #fff; }
html[lang="ar"] .rm-h1 { font-family: var(--font-ar-head); font-weight: 700; letter-spacing: 0; }
.rm-lede { color: var(--text-2); font-size: 1.12rem; line-height: 1.6; margin: 0 0 18px; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; color: var(--muted); font-size: .85rem; }
.rm-meta span:first-child { color: var(--text-2); }
.rm-sec { margin-block-start: 8px; }
.rm-readings { align-items: stretch; }
.rm-reading { gap: 0; }
.rm-reading .z-big { margin-block: 18px 4px; }
.rm-lab { color: var(--muted); font-size: .88rem; }
.rm-line { margin: 10px 0 0; font-size: .86rem; line-height: 1.5; color: var(--text-2); }
.rm-win { color: var(--muted); }
.rm-caveat { color: var(--v-warn); }
.rm-dir { display: flex; gap: 8px; align-items: baseline; }
.rm-dir-tag, .rm-target::before { flex: none; font: 600 .68rem/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-2); direction: ltr; unicode-bidi: isolate; }
.rm-target { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-target::before { content: "→ MA"; }
.rm-split { color: var(--text); }
.rm-sub { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-block-start: 16px; }
html[lang="ar"] .rm-sub { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.rm-reading .z-mini { margin-block-start: 8px; }

.rm-block { margin-block-start: 44px; }
.rm-chg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-chg li { position: relative; padding: 14px 18px; padding-inline-start: 34px; background: rgba(14, 24, 48, .7); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.rm-chg li::before { content: ""; position: absolute; inset-inline-start: 16px; inset-block-start: 21px; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); transform: rotate(45deg); }
.rm-chg a { color: var(--text); }
.rm-chg-none { margin: 0; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-2); }
.rm-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.rm-strip { margin-block-start: 0; }
.rm-strip-t { margin: 0; font: inherit; }
html[lang="ar"] .rm-strip-t { font-family: var(--font-ar-head); }
.rm-track { display: block; width: 100%; height: 96px; margin-block-start: 12px; }
html[dir="rtl"] .rm-track { transform: scaleX(-1); }
.rm-unc { fill: rgba(154, 166, 194, .12); stroke: rgba(154, 166, 194, .35); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rm-m-dg { fill: var(--mint); }
.rm-m-pub { fill: var(--k-incident); }
.rm-m-warn { fill: var(--k-advisory); }
.rm-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .82rem; color: var(--text-2); }
.rm-legend li { display: flex; align-items: center; gap: 8px; }
.rm-key { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.rm-k-dg { background: var(--mint); transform: none; }
.rm-k-pub { background: var(--k-incident); }
.rm-k-warn { background: var(--k-advisory); }
.rm-k-unc { background: rgba(154, 166, 194, .25); border: 1px dashed var(--v-open); transform: none; }
.rm-evs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; border-block-start: 1px solid var(--line-soft); }
.rm-ev { display: grid; grid-template-columns: 12px 64px 1fr; gap: 12px; align-items: baseline; padding-block: 10px; border-block-end: 1px solid var(--line-soft); font-size: .92rem; }
.rm-evd { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.rm-evt { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rm-evt a { color: var(--text); text-decoration: none; }
.rm-evt a:hover { color: var(--mint); text-decoration: underline; }
.rm-tag { font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--k-incident); }
html[lang="ar"] .rm-tag { font: 700 .78rem/1 var(--font-ar-head); letter-spacing: 0; }
.rm-evm { flex-basis: 100%; color: var(--muted); font-size: .8rem; }

.rm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.rm-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.rm-table th, .rm-table td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--line-soft); vertical-align: middle; }
.rm-table thead th { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(14, 24, 48, .7); }
html[lang="ar"] .rm-table thead th { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.rm-table tbody th { color: var(--text); font-weight: 600; }
.rm-table td { color: var(--text-2); white-space: nowrap; }
.rm-table .rm-num { text-align: end; }
.rm-table tbody tr:last-child > * { border-block-end: 0; }
.rm-how { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--text-2); line-height: 1.6; max-width: 820px; }

@media (max-width: 860px) {
  .rm-room { padding-block: 36px 48px; }
  .rm-ev { grid-template-columns: 12px 52px 1fr; gap: 10px; }
  .rm-table th, .rm-table td { padding: 10px; }
}
@media (max-width: 640px) {
  .rm-tablewrap { overflow: visible; border: 0; }
  .rm-table, .rm-table tbody, .rm-table tr, .rm-table th, .rm-table td { display: block; }
  .rm-table thead { display: none; }
  .rm-table tr { border: 1px solid var(--line); border-radius: 12px; margin-block-end: 10px; padding: 12px 14px; background: rgba(14, 24, 48, .6); }
  .rm-table th, .rm-table td { padding: 3px 0; border: 0; white-space: normal; text-align: start; }
  .rm-table tbody th { margin-block-end: 6px; }
  .rm-table td[data-l] { display: flex; justify-content: space-between; gap: 12px; }
  .rm-table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .78rem; }
  .rm-table .rm-num { text-align: start; }
  .rm-table .rm-empty { display: none; }
}
@media (forced-colors: active) { .rm-key, .rm-m-dg { forced-color-adjust: none; } }
