/* ============================================================
   سؤال الشبكة — Su'al Al-Shabaka
   Dark-slate FAQ helpdesk console · RTL Arabic default.
   Palette: ink #0f172a · slate #1e293b · indigo #4f46e5 (accent only).
   Fonts: Syne (brand) · IBM Plex Sans Arabic (body) · IBM Plex Mono (meta).
   Console edition — NOT magazine, NOT editorial.
   ============================================================ */

/* ─── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* surfaces */
  --void:     #060c17;
  --ink:      #0f172a;
  --base:     #1e293b;
  --lift:     #243453;
  --raised:   #2e4065;
  --border:   rgba(51, 65, 85, 0.6);
  --border-hi:rgba(99, 116, 143, 0.65);

  /* text */
  --chalk:     #f1f5f9;
  --chalk-s:   #cbd5e1;
  --chalk-m:   #94a3b8;
  --chalk-d:   #64748b;

  /* accent — indigo, spot color ONLY */
  --sig:       #4f46e5;
  --sig-hi:    #6366f1;
  --sig-lo:    rgba(79,70,229,0.09);
  --sig-med:   rgba(79,70,229,0.18);
  --sig-ring:  rgba(79,70,229,0.40);

  /* semantic */
  --ok:        #059669;
  --warn:      #d97706;

  /* typography */
  --f-brand:   'Syne', sans-serif;
  --f-body:    'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* layout */
  --max-w:     1340px;
  --rail-w:    228px;
  --bar-h:     54px;
  --row-h:     50px;
  --sticky:    calc(var(--bar-h) + var(--row-h));

  /* radii */
  --r1: 2px;
  --r2: 4px;
  --r3: 6px;
  --r4: 8px;
  --r5: 12px;

  /* easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 1, 0.45);
}

/* ─── 2. RESET & BASE ─────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--void);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background: var(--base);
  color: var(--chalk);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sig-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}

/* ─── 3. TYPOGRAPHY HELPERS ───────────────────────────────── */
.f-mono { font-family: var(--f-mono); }
.f-brand { font-family: var(--f-brand); }
.tx-chalk { color: var(--chalk); }
.tx-mute  { color: var(--chalk-m); }
.tx-dim   { color: var(--chalk-d); }
.tx-sig   { color: var(--sig-hi); }

/* ─── 4. LANGUAGE SWITCHING ───────────────────────────────── */
html[lang="ar"] .lang-en,
html[lang="ar"] [data-lang="en"] { display: none !important; }
html[lang="en"] .lang-ar,
html[lang="en"] [data-lang="ar"] { display: none !important; }

/* ─── 5. SKIP LINK ────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--sig);
  color: #fff;
  border-radius: var(--r3);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* ─── 6. GLOBAL SHELL (max-width wrapper) ─────────────────── */
.shell {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ─── 7. CONSOLE BAR ──────────────────────────────────────── */
.console-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--bar-h);
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.45);
}

.console-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Brand mark */
.console-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.console-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--sig);
  border-radius: var(--r2);
  flex-shrink: 0;
}

.console-node svg { width: 16px; height: 16px; }

.console-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.console-name .lang-ar {
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--chalk);
}
.console-name .lang-en {
  font-family: var(--f-brand);
  font-size: 0.95rem;
  color: var(--chalk);
}

/* Search wrap */
.console-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}

.console-search-wrap svg {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--chalk-d);
  pointer-events: none;
}

.console-search {
  width: 100%;
  height: 36px;
  padding-inline: 2.25rem 0.875rem;
  background: var(--lift);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  color: var(--chalk);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.console-search::placeholder { color: var(--chalk-d); }
.console-search:focus {
  outline: none;
  border-color: var(--sig);
  box-shadow: 0 0 0 3px var(--sig-ring);
}

/* Bar actions (lang toggle + mobile nav) */
.console-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.console-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  color: var(--chalk-m);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s;
}
.console-lang:hover {
  color: var(--chalk);
  border-color: var(--border-hi);
}
.console-lang svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Mobile nav toggle (hidden on desktop) */
.console-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  color: var(--chalk-m);
}
.console-hamburger svg { width: 18px; height: 18px; }

/* Mobile nav drawer */
.console-nav-drawer {
  display: none;
}

/* ─── 8. TOPROW (first-viewport chips band) ───────────────── */
.toprow {
  position: sticky;
  top: var(--bar-h);
  z-index: 190;
  height: var(--row-h);
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}

.toprow-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.toprow-chips {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.toprow-meta {
  margin-inline-start: auto;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--chalk-d);
  white-space: nowrap;
}
.toprow-meta strong { color: var(--chalk-m); }

/* ─── 9. CHIPS ────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: transparent;
  color: var(--chalk-m);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.chip:hover {
  color: var(--chalk);
  border-color: var(--border-hi);
  background: var(--lift);
  text-decoration: none;
}
.chip.is-active,
.chip--active {
  color: var(--sig-hi);
  border-color: var(--sig);
  background: var(--sig-lo);
}
.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ─── 10. CONSOLE BODY (two-column: rail + pane) ─────────── */
.console-body {
  display: flex;
  min-height: calc(100vh - var(--sticky));
  align-items: flex-start;
}

/* ─── 11. RAIL ────────────────────────────────────────────── */
.rail {
  width: var(--rail-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--sticky);
  height: calc(100vh - var(--sticky));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ink);
  border-inline-end: 1px solid var(--border);
  padding: 1.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.rail-label {
  padding-inline: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-d);
}

.rail-list {
  list-style: none;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  color: var(--chalk-m);
  font-size: 0.875rem;
  text-decoration: none;
  border-inline-start: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  position: relative;
}
.rail-link:hover {
  color: var(--chalk-s);
  background: var(--lift);
  text-decoration: none;
}

.rail-item.is-active .rail-link {
  color: var(--chalk);
  background: var(--sig-lo);
  border-inline-start-color: var(--sig);
}

.rail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rail-icon svg { width: 14px; height: 14px; }
.rail-item.is-active .rail-icon { opacity: 1; color: var(--sig-hi); }

.rail-text { flex: 1; min-width: 0; line-height: 1.3; }

.rail-count {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--chalk-d);
  background: var(--raised);
  padding: 0.1rem 0.35rem;
  border-radius: var(--r1);
  flex-shrink: 0;
}
.rail-item.is-active .rail-count {
  background: var(--sig-med);
  color: var(--sig-hi);
}

.rail-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 1.1rem;
}

/* ─── 12. PANE (main FAQ area) ────────────────────────────── */
.pane {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.25rem;
  max-width: 840px;
}

/* ─── 13. THREAD (FAQ category section) ──────────────────── */
.thread {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--sticky) + 1.5rem);
}
.thread:last-child { margin-bottom: 1.5rem; }

.thread-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.thread-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--chalk);
  letter-spacing: -0.01em;
}
html[lang="en"] .thread-title {
  font-family: var(--f-brand);
  font-size: 1rem;
}

.thread-q-count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--chalk-d);
  margin-inline-start: auto;
}

.thread-icon {
  width: 20px;
  height: 20px;
  color: var(--sig);
  flex-shrink: 0;
}

/* ─── 14. FAQ COMPONENTS ──────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

/* hidden when search filters it out */
.faq-item.is-hidden { display: none; }

.faq-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 0;
  text-align: start;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--chalk-s);
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.faq-trigger:hover { color: var(--chalk); }
.faq-item.is-open .faq-trigger { color: var(--chalk); }

.faq-mark {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sig);
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s;
  user-select: none;
  min-width: 1.1em;
  text-align: center;
}
.faq-item.is-open .faq-mark { opacity: 1; }

.faq-q { flex: 1; text-align: start; }

.faq-chev {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--chalk-d);
  transition: transform 0.25s var(--ease-out), color 0.15s;
}
.faq-item.is-open .faq-chev {
  transform: rotate(180deg);
  color: var(--sig-hi);
}

/* Accordion panel — grid trick for height animation */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-body {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--chalk-m);
  padding-bottom: 1.1rem;
  padding-inline-start: 1.85rem;
}
.faq-body p + p { margin-top: 0.6rem; }
.faq-body ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin-top: 0.5rem;
}
.faq-body li { margin-bottom: 0.25rem; }
.faq-body strong { color: var(--chalk-s); font-weight: 600; }
.faq-body code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--lift);
  padding: 0.1em 0.4em;
  border-radius: var(--r1);
  color: var(--sig-hi);
}

/* ─── 15. SEARCH CLEAR BUTTON ─────────────────────────────── */
.console-search-clear {
  position: absolute;
  inset-inline-end: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chalk-d);
  border-radius: var(--r1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, color 0.15s;
}
.console-search-clear svg { width: 13px; height: 13px; }
.console-search-clear.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.console-search-clear:hover { color: var(--chalk); }

/* Search result feedback */
.search-feedback {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--chalk-d);
  font-size: 0.875rem;
  display: none;
}
.search-feedback.is-visible { display: block; }

/* ─── 16. CONSOLE FOOTER ──────────────────────────────────── */
.console-foot {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.console-foot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.foot-block-label {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-d);
  margin-bottom: 0.65rem;
}

.foot-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--chalk);
  margin-bottom: 0.35rem;
}
html[lang="en"] .foot-brand-name { font-family: var(--f-brand); }

.foot-brand-desc {
  font-size: 0.8rem;
  color: var(--chalk-d);
  line-height: 1.55;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.foot-link {
  font-size: 0.82rem;
  color: var(--chalk-m);
  text-decoration: none;
  transition: color 0.15s;
}
.foot-link:hover { color: var(--chalk); text-decoration: none; }

.foot-contact-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--chalk-m);
  margin-bottom: 0.4rem;
}
.foot-contact-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--chalk-d); }
.foot-contact-item a { color: var(--chalk-m); }
.foot-contact-item a:hover { color: var(--chalk); }

.foot-copy {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot-copy-text {
  font-size: 0.75rem;
  color: var(--chalk-d);
  font-family: var(--f-mono);
}

.foot-copy-links {
  display: flex;
  gap: 1rem;
}
.foot-copy-link {
  font-size: 0.75rem;
  color: var(--chalk-d);
  text-decoration: none;
}
.foot-copy-link:hover { color: var(--chalk-m); }

/* ─── 17. ARTICLE PAGE LAYOUT ────────────────────────────── */
.article-topband {
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}

.article-topband-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--chalk-d);
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.article-breadcrumb a { color: var(--chalk-d); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--chalk-m); }
.article-breadcrumb svg { width: 10px; height: 10px; }

.article-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sig-hi);
  margin-bottom: 0.5rem;
}

.article-h1 {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--chalk);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
html[lang="en"] .article-h1 { font-family: var(--f-brand); }

.article-lead {
  font-size: 0.925rem;
  color: var(--chalk-m);
  max-width: 600px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--chalk-d);
}
.article-meta-item svg { width: 12px; height: 12px; }

/* Article body */
.article-body {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-top: 2.25rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-content { min-width: 0; }

.article-sidebar {
  position: sticky;
  top: calc(var(--sticky) + 1.5rem);
}

.article-sidebar-block {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.sidebar-label {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-d);
  margin-bottom: 0.65rem;
}

.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-link {
  font-size: 0.82rem;
  color: var(--chalk-m);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sidebar-link svg { width: 11px; height: 11px; flex-shrink: 0; }
.sidebar-link:hover { color: var(--chalk); text-decoration: none; }

/* ─── 18. SUPPORTING PAGE LAYOUT (about / contact / policy) ─ */
.support-body {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-block: 2.5rem;
}

.support-h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--chalk);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
html[lang="en"] .support-h2 { font-family: var(--f-brand); }

.support-body p {
  color: var(--chalk-m);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.support-body ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--chalk-m);
  font-size: 0.9rem;
  line-height: 1.75;
}

.support-body a { color: var(--sig-hi); }
.support-body strong { color: var(--chalk-s); }

/* Contact form */
.contact-form {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--chalk-m);
  margin-bottom: 0.35rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--lift);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  color: var(--chalk);
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--chalk-d); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sig);
  box-shadow: 0 0 0 3px var(--sig-ring);
}
.form-textarea { min-height: 140px; resize: vertical; }

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--sig);
  color: #fff;
  border: none;
  border-radius: var(--r3);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.form-btn:hover { background: var(--sig-hi); }
.form-btn:active { transform: scale(0.98); }

/* Contact info cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.contact-card-icon {
  width: 36px;
  height: 36px;
  background: var(--sig-lo);
  border: 1px solid var(--sig-med);
  border-radius: var(--r3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sig-hi);
  flex-shrink: 0;
}
.contact-card-icon svg { width: 18px; height: 18px; }
.contact-card-label {
  font-size: 0.72rem;
  font-family: var(--f-mono);
  color: var(--chalk-d);
  margin-bottom: 0.2rem;
}
.contact-card-value {
  font-size: 0.875rem;
  color: var(--chalk-s);
  font-weight: 500;
}

/* ─── 19. COOKIE CONSENT BANNER ───────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 1000;
  width: min(380px, calc(100vw - 3rem));
  background: var(--ink);
  border: 1px solid var(--border-hi);
  border-radius: var(--r4);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.cookie-banner.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  font-size: 0.82rem;
  color: var(--chalk-m);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.cookie-text a { color: var(--sig-hi); }

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  flex: 1;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r2);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cookie-btn--accept {
  background: var(--sig);
  color: #fff;
  border: 1px solid var(--sig);
}
.cookie-btn--accept:hover { background: var(--sig-hi); }
.cookie-btn--decline {
  background: transparent;
  color: var(--chalk-m);
  border: 1px solid var(--border);
}
.cookie-btn--decline:hover { border-color: var(--border-hi); color: var(--chalk); }

/* ─── 20. SCROLL CHIP (mobile horizontal scroller) ───────── */
.chip-scroller {
  display: none;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chip-scroller::-webkit-scrollbar { display: none; }
.chip-scroller .chip { flex-shrink: 0; }

/* ─── 21. MOBILE SEARCH BAR ───────────────────────────────── */
.mobile-search-row {
  display: none;
  padding: 0.6rem 1rem;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-search-row .console-search-wrap { max-width: 100%; margin: 0; }

/* ─── 22. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --bar-h: 50px;
    --row-h: 0px; /* toprow hidden on mobile */
  }

  /* hide desktop search from bar */
  .console-bar .console-search-wrap { display: none; }

  /* show hamburger */
  .console-hamburger { display: flex; }

  /* hide toprow on mobile (replaced by chip-scroller) */
  .toprow { display: none; }

  /* show mobile extras */
  .mobile-search-row { display: flex; }
  .chip-scroller { display: flex; }

  /* collapse two-col to single */
  .console-body { display: block; }

  /* hide desktop rail */
  .rail { display: none; }

  .pane {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  /* article body single col */
  .article-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article-sidebar { position: static; }

  /* contact cards single col */
  .contact-cards { grid-template-columns: 1fr; }

  /* footer single col */
  .console-foot-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .foot-copy { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 600px) {
  .console-bar-inner { gap: 0.5rem; }
  .console-name .lang-ar { font-size: 0.95rem; }
  .console-name .lang-en { font-size: 0.85rem; }

  .toprow-chips { gap: 0.3rem; }

  .article-h1 { font-size: 1.25rem; }

  .support-body { padding-block: 1.5rem; }
  .contact-form { padding: 1rem; }
}

/* Mobile nav drawer */
@media (max-width: 900px) {
  .console-nav-drawer {
    display: none;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .console-nav-drawer.is-open { display: flex; }
  .console-nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--chalk-m);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
  }
  .console-nav-link:hover { color: var(--chalk); background: var(--lift); }
}

/* ─── 23. PRINT ───────────────────────────────────────────── */
@media print {
  .console-bar,
  .toprow,
  .rail,
  .chip-scroller,
  .mobile-search-row,
  .cookie-banner,
  .console-foot { display: none !important; }
  .console-body { display: block; }
  .pane { padding: 0; max-width: 100%; }
  .faq-panel { display: block !important; grid-template-rows: 1fr !important; }
  .faq-body { overflow: visible; padding-bottom: 0.5rem; }
}

/* ─── 24. NO-JS FALLBACK ──────────────────────────────────── */
html.no-js .faq-panel {
  display: block;
  grid-template-rows: 1fr;
}
html.no-js .faq-chev { display: none; }
