/* 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; }
.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: 6px; 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: 9px; color: var(--text-2); text-decoration: none; font-size: .98rem; font-weight: 600; padding: 10px 16px; 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: 1rem; 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;
}

.tla-year {
  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);
}

.tla-in:checked ~ .tla-stamp,
.tla-in:checked ~ .tla-year {
  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; } }

/* 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; } }
