/* ELX website — design tokens + components. RTL-first (logical properties everywhere). */

:root {
  --navy-950: #061a2e;
  --navy-900: #0a2540;
  --navy-800: #0f3257;
  --navy-700: #16436f;
  --cyan-400: #33ccff;
  --cyan-500: #00bffe;
  --cyan-700: #0073b1;
  --amber-400: #fcc15f;
  --amber-500: #fbb03b;
  --amber-600: #e8961a;
  --wa-600: #117a5b;
  --wa-700: #0c6149;

  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --bg-elev: #ffffff;
  --text: #0d1b2a;
  --text-muted: #4a5b6d;
  --border: #dbe4ee;
  --border-strong: #7d8fa3;   /* form field boundaries: 3.32:1 on #fff (WCAG 1.4.11) */
  --link: #0068a3;
  --link-hover: #004f7d;
  --link-on-dark: #7fdcff;    /* links on navy surfaces: 10:1 on navy-900 */
  --accent: var(--amber-500);
  --focus: #0a2540;           /* focus ring on light surfaces: 15.5:1 on #fff, 14.4:1 on bg-soft */
  --shadow-sm: 0 1px 2px rgb(10 37 64 / 6%), 0 1px 3px rgb(10 37 64 / 8%);
  --shadow-md: 0 6px 24px -8px rgb(10 37 64 / 18%);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1200px;
  --header-h: 68px;

  --font-ar: "Segoe UI", "SF Arabic", "Noto Sans Arabic", "Noto Kufi Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-en: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font: var(--font-ar);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07121f;
    --bg-soft: #0b1b2d;
    --bg-elev: #0e2136;
    --text: #e7eef6;
    --text-muted: #a6b6c7;
    --border: #1d3550;
    --border-strong: #56789b; /* 4.08:1 on #07121f, 3.53:1 on #0e2136 */
    --link: #5fd4ff;
    --link-hover: #9ae4ff;
    --focus: #ff9d00;         /* 9.03:1 on #07121f */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 8px 28px -10px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.85;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.lang-en { --font: var(--font-en); line-height: 1.7; font-size: 1.0625rem; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; text-wrap: balance; }
/* letter-spacing only for Latin script: tracking a cursive script (Arabic) breaks joins in some engines */
.lang-en h1, .lang-en h2, .lang-en h3 { letter-spacing: -.02em; line-height: 1.2; }
.lang-en h4 { letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
/* Navy surfaces (fixed dark in both themes): light links + amber focus ring. The underline stays, because the
   link colour alone is only ~1.1:1 against the surrounding light-blue body text. */
.hero, .pagehead, .cta-band, .cta-box, .tone-dark, .site-footer { --focus: #fcc15f; } /* 9.57:1 on navy-900 */
.hero a:not(.btn), .pagehead a:not(.btn), .cta-band a:not(.btn), .cta-box a:not(.btn), .tone-dark a:not(.btn) { color: var(--link-on-dark); text-decoration-color: rgb(127 220 255 / 60%); }
.hero a:not(.btn):hover, .pagehead a:not(.btn):hover, .cta-band a:not(.btn):hover, .cta-box a:not(.btn):hover, .tone-dark a:not(.btn):hover { color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--amber-500); color: #1b1300; padding: .6em 1em; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: #1b1300; }
.muted { color: var(--text-muted); }
.count { color: var(--text-muted); font-weight: 600; font-size: .7em; }
.center { text-align: center; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: #1b1300; }
.btn-primary:hover { background: var(--amber-400); color: #1b1300; }
.btn-wa { background: var(--wa-600); color: #fff; }
.btn-wa:hover { background: var(--wa-700); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 45%); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--link); border-color: currentColor; }
.btn-outline:hover { background: var(--bg-soft); }
.btn-sm { min-height: 38px; padding: .35em 1em; font-size: .95rem; }
.btn-lg { min-height: 52px; padding: .7em 1.6em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; display: block; }
.nav-desktop { flex: 1; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav-desktop a, .nav-mobile-panel a:not(.btn) { display: block; padding: .45em .8em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-desktop a { white-space: nowrap; }
.nav-desktop a:hover { background: var(--bg-soft); color: var(--text); }
.nav-desktop a[aria-current="page"], .nav-mobile-panel a[aria-current="page"] { color: var(--link); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: .35em; padding: .4em .7em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--border); }
.lang-switch:hover { background: var(--bg-soft); color: var(--text); }
.nav-mobile { position: relative; display: none; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: inline; }
.nav-mobile-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(88vw, 320px); padding: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
  /* reflow (400% zoom / landscape phones): the panel scrolls instead of running off-screen */
  max-height: calc(100vh - var(--header-h) - 16px); max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.nav-mobile-panel ul { list-style: none; margin: 0 0 10px; padding: 0; }
.nav-mobile-panel a:not(.btn) { padding: .7em .8em; }
.header-cta { min-height: 44px; }
.ls-short { display: none; }

/* 1140px: the Arabic desktop nav needs ~1114px; below that it would wrap and grow the sticky header */
@media (max-width: 1140px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand img { width: 124px; }
  .header-actions .lang-switch .ls-long { display: none; }
  .header-actions .lang-switch .ls-short { display: inline; font-weight: 700; }
}
@media (max-height: 480px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
}

/* ---------- hero / page head ---------- */
.hero, .pagehead {
  position: relative; color: #e9f3fb; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgb(0 191 254 / 22%), transparent 60%),
    radial-gradient(900px 480px at 0% 110%, rgb(251 176 59 / 16%), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.hero::before, .pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero { padding-block: clamp(56px, 8vw, 110px); }
.pagehead { padding-block: clamp(44px, 6vw, 80px); }
.hero h1, .pagehead h1 { color: #fff; max-width: 22ch; }
.lang-en .hero h1, .lang-en .pagehead h1 { max-width: 26ch; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero-split .hero-inner { grid-template-columns: 1.15fr .85fr; }
.hero-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: #c8d9ea; max-width: 62ch; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .45em; }
.hero-bullets li { display: flex; gap: .6em; align-items: flex-start; color: #dcebf7; }
.hero-bullets .icon { color: var(--cyan-500); margin-top: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--cyan-700); margin-bottom: .8em; }
.lang-en .eyebrow { letter-spacing: .04em; text-transform: uppercase; }
.eyebrow-light { color: var(--cyan-400); background: rgb(0 191 254 / 12%); border: 1px solid rgb(0 191 254 / 30%); padding: .2em .8em; border-radius: 999px; }
.hero-visual { display: flex; justify-content: center; }
.flow-card { width: 100%; max-width: 420px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.flow-title { font-weight: 800; color: #fff; margin-bottom: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); color: #e3eef8; font-weight: 600; }
.flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 29px; bottom: -11px; width: 2px; height: 12px; background: rgb(0 191 254 / 50%); }
.flow-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(0 191 254 / 16%); color: var(--cyan-400); flex: none; }
.flow li:last-child .flow-dot { background: rgb(251 176 59 / 20%); color: var(--amber-400); }
@media (max-width: 900px) { .hero-split .hero-inner { grid-template-columns: 1fr; } .hero-visual { order: 2; } }
/* Phones: the demo/WhatsApp buttons move up under the lead (first screen); the decorative flow card
   (aria-hidden duplicate of the stages list) is dropped. Bullets hold no focusable content, so the
   visual reorder does not change the tab order. */
@media (max-width: 640px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy > .eyebrow { align-self: flex-start; }
  .hero-actions { order: 1; margin: 4px 0 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bullets { order: 2; margin-bottom: 0; }
  .hero-visual { display: none; }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3em; list-style: none; margin: 0; padding: 14px 0; font-size: .92rem; color: var(--text-muted); }
/* U+203A is Bidi_Mirrored: in RTL it renders as "‹" (pointing forward) automatically — no RTL override. */
.breadcrumb li:not(:last-child)::after { content: "›"; margin-inline-start: .45em; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- sections, cards, grids ---------- */
.section { padding-block: clamp(48px, 6vw, 88px); }
.tone-soft { background: var(--bg-soft); }
.tone-dark { background: var(--navy-900); color: #e3eef8; }
.tone-dark h2, .tone-dark h3 { color: #fff; }
.tone-dark .card { background: rgb(255 255 255 / 5%); border-color: rgb(255 255 255 / 12%); color: #d6e5f3; }
.tone-dark .lead, .tone-dark .card p { color: #b9cde0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head .lead { font-size: 1.12rem; color: var(--text-muted); }
.grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .45em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }
.card-link { transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cyan-500); border-color: color-mix(in srgb, var(--cyan-500) 50%, var(--border)); }
@media (hover: none) { .card-link:hover { transform: none; } }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* Whole-card focus ring where :has() exists; otherwise the default ring stays on the title link. */
@supports selector(:has(*)) {
  .card-link h3 a:focus-visible, .article-card h3 a:focus-visible { outline: none; }
  .card-link:has(h3 a:focus-visible), .article-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
}
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px; color: var(--cyan-700); background: rgb(0 191 254 / 14%); background: color-mix(in srgb, var(--cyan-500) 14%, transparent); }
.card-icon .icon { width: 26px; height: 26px; }
.card-more { display: inline-flex; align-items: center; gap: .35em; margin-top: 12px; font-weight: 700; color: var(--link); font-size: .95rem; }
.mini-list { margin: 10px 0 0; padding-inline-start: 1.1em; color: var(--text-muted); font-size: .96rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.timeline li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.timeline-num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: var(--amber-500); font-weight: 800; }
.timeline h3 { margin-bottom: .25em; }
.timeline p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-art { display: grid; place-items: center; gap: 16px; min-height: 260px; border-radius: 24px; padding: 28px;
  background: radial-gradient(400px 220px at 70% 20%, rgb(0 191 254 / 22%), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--cyan-400); }
.split-icon .icon { width: 84px; height: 84px; stroke-width: 1.3; }
.split-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.split-points li { background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); color: #e3eef8; padding: .25em .8em; border-radius: 999px; font-size: .92rem; font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-copy { order: 0; } }

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: .55em; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; }
.checklist .icon { color: var(--wa-600); margin-top: .3em; }
.checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 700px) { .checklist-grid { grid-template-columns: 1fr; } }

.chips ul, .chips-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .4em 1em; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--cyan-500); color: var(--link); }
.chip span { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .3em; border-radius: 999px; background: var(--bg-soft); font-size: .8rem; }
.tag { display: inline-block; padding: .1em .7em; border-radius: 999px; background: rgb(0 191 254 / 14%); background: color-mix(in srgb, var(--cyan-500) 14%, transparent); color: var(--cyan-700); font-weight: 700; font-size: .82rem; text-decoration: none; position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { .tag, .card-icon, .eyebrow { color: var(--cyan-400); } }

.article-card { display: flex; flex-direction: column; }
.article-card h3 { font-size: 1.12rem; }
.article-card p { font-size: .98rem; }
.article-card .article-meta { font-size: .88rem; }
.article-card .card-more { margin-top: auto; padding-top: 10px; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--cyan-500); border-color: color-mix(in srgb, var(--cyan-500) 50%, var(--border)); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8em; font-size: .88rem; color: var(--text-muted); margin-bottom: .7em; }
.article-meta span { display: inline-flex; align-items: center; gap: .3em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.06rem; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); font-weight: 800; color: var(--link); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); }
.faq-a p { margin: 0; }

/* ---------- CTA ---------- */
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 36px 0; padding: 26px 28px; border-radius: 20px; color: #e3eef8;
  background: radial-gradient(500px 200px at 90% 0%, rgb(0 191 254 / 25%), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.cta-box-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .3em; }
.aside-cta .cta-box-title { color: var(--text); margin-bottom: .8em; }
.cta-box-text { flex: 1 1 320px; }
.cta-box-text p:last-child { margin: 0; color: #c2d5e7; }
.cta-box-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band { background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); color: #d6e5f3; }
.cta-band-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cde0; max-width: 60ch; margin: 0; }

/* ---------- article ---------- */
.article-top { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; padding-block: 36px 64px; }
/* width:100% — a grid item with margin-inline:auto is fit-content sized, so a wide table would otherwise
   widen the whole column (and the mobile layout viewport). Tables scroll inside .table-wrap instead. */
.article { width: 100%; max-width: 780px; min-width: 0; }
.article-header h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.article-summary { font-size: 1.18rem; color: var(--text-muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: .92rem; color: var(--text-muted); border-block: 1px solid var(--border); padding-block: .7em; }
.quick-answer { display: flex; gap: 14px; margin: 28px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); background: color-mix(in srgb, var(--cyan-500) 9%, var(--bg)); border: 1px solid var(--border); border: 1px solid color-mix(in srgb, var(--cyan-500) 35%, var(--border)); border-inline-start: 5px solid var(--cyan-500); }
.quick-answer > .icon { color: var(--cyan-700); margin-top: .3em; width: 1.6em; height: 1.6em; }
.quick-answer h2 { font-size: 1.05rem; margin-bottom: .3em; color: var(--cyan-700); }
@media (prefers-color-scheme: dark) { .quick-answer h2, .quick-answer > .icon { color: var(--cyan-400); } }
.quick-answer p { margin: 0; font-size: 1.08rem; }
.takeaways { margin: 0 0 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.takeaways h2 { font-size: 1.1rem; }
.takeaways .checklist { margin: 0; }
.article-aside { position: relative; }
/* TOC + CTA share ONE sticky wrapper, so the CTA can never cover the end of a long TOC. */
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.toc-desktop { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); max-height: calc(100vh - var(--header-h) - 240px); overflow: auto; overscroll-behavior: contain; }
.toc-title { font-weight: 800; margin-bottom: .5em; }
.toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: .35em; font-size: .93rem; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--link); text-decoration: underline; }
.aside-cta { position: static; }
.toc-mobile { display: none; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; background: var(--bg-elev); }
.toc-mobile summary { font-weight: 800; cursor: pointer; }
.toc-mobile nav { margin-top: 10px; }
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article { max-width: 820px; margin-inline: auto; }
  .article-aside { display: none; }
  .toc-mobile { display: block; }
}
.sources ol { padding-inline-start: 1.3em; font-size: .95rem; overflow-wrap: anywhere; }
.related-features, .article-faq, .sources { margin-top: 40px; }

/* ---------- prose ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol:not(.steps) { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--cyan-700); }
@media (prefers-color-scheme: dark) { .prose li::marker { color: var(--cyan-400); } } /* 10:1 on #07121f (cyan-700 was 3.66:1) */
.prose strong { color: var(--text); }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { caption-side: top; text-align: start; padding: 10px 14px; font-weight: 700; color: var(--text-muted); }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 800; }
@media (min-width: 720px) { thead th { white-space: nowrap; } }
.prose, .article-header, .faq, .sources { overflow-wrap: anywhere; }
.prose table { overflow-wrap: normal; min-width: 520px; }
/* Section tables (feature/landing pages) outside .prose: 3+ columns scroll inside .table-wrap instead of squeezing. */
.table-wrap table:has(thead th:nth-child(3)) { min-width: 520px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
.callout { display: flex; gap: 12px; margin: 0 0 1.4em; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-soft); }
.callout .icon { margin-top: .3em; color: var(--cyan-700); }
.callout p { margin: 0; }
.callout-title { font-weight: 800; margin-bottom: .2em !important; }
.callout-tip { border-inline-start: 4px solid var(--wa-600); }
.callout-note { border-inline-start: 4px solid var(--cyan-500); }
.callout-warn { border-inline-start: 4px solid var(--amber-600); }
.callout-warn .icon { color: var(--amber-600); }
@media (prefers-color-scheme: dark) { .callout-tip .icon, .callout-note .icon { color: var(--cyan-400); } }
.quote { margin: 0 0 1.4em; padding: 18px 22px; border-inline-start: 4px solid var(--amber-500); background: var(--bg-soft); border-radius: var(--radius-sm); }
.quote blockquote { margin: 0; font-size: 1.12rem; font-weight: 600; }
.quote figcaption { margin-top: .5em; color: var(--text-muted); font-size: .92rem; }
.steps { list-style: none; counter-reset: step; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 18px; padding-inline-start: 62px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: var(--amber-500); font-weight: 800; }
/* Dark mode: navy badges on navy cards vanish (1.05:1) — use a tinted amber ring instead (digits 6.4:1). */
@media (prefers-color-scheme: dark) {
  .timeline-num, .steps li::before { background: rgb(251 176 59 / 16%); box-shadow: inset 0 0 0 1px rgb(251 176 59 / 45%); }
}
.steps p { margin: 0; }
.step-title { font-weight: 800; margin-bottom: .2em !important; }
.deflist { margin: 0 0 1.4em; display: grid; gap: 10px; }
.deflist div { padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); }
.deflist dt { font-weight: 800; }
.deflist dd { margin: .2em 0 0; color: var(--text-muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { padding: clamp(20px, 3vw, 34px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: .35em; font-size: .97rem; }
.req { color: #c2410c; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6em .85em; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field ::placeholder { color: var(--text-muted); opacity: 1; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--link); box-shadow: none; }
.field [aria-invalid="true"] { border-color: #c2410c; }
/* .contact-form prefix: the form is also a .card, and `.card p` would otherwise turn the errors grey */
.contact-form .field-err { margin: .35em 0 0; color: #c2410c; font-size: .9rem; font-weight: 600; } /* 5.18:1 */
@media (prefers-color-scheme: dark) { .contact-form .field-err, .req { color: #fb923c; } .field [aria-invalid="true"] { border-color: #fb923c; } } /* 7.2:1 */
.consent { display: flex; gap: .5em; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.consent .icon { margin-top: .25em; color: var(--wa-600); }
.form-status:not(:empty) { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); background: color-mix(in srgb, var(--wa-600) 12%, var(--bg)); border: 1px solid var(--wa-600); border: 1px solid color-mix(in srgb, var(--wa-600) 40%, var(--border)); font-weight: 600; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-cards .card { display: flex; gap: 14px; padding: 18px; }
.contact-cards .card > .icon { color: var(--wa-600); width: 28px; height: 28px; }
.contact-cards h3 { font-size: 1rem; margin-bottom: .2em; }
.contact-cards p { margin: 0; }
.contact-aside .section-head { margin-bottom: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #b6c8da; padding-top: 56px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 160px; margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.site-footer a:not(.btn) { color: #b6c8da; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
/* bottom padding keeps the floating WhatsApp button (58px + 20px) clear of the footer language switch */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-block: 20px 96px; border-top: 1px solid rgb(255 255 255 / 10%); }
.footer-bottom p { margin: 0; }
.footer-bottom .lang-switch { color: #d6e5f3; border-color: rgb(255 255 255 / 20%); }
.footer-bottom .lang-switch:hover { background: rgb(255 255 255 / 8%); color: #fff; }

/* ---------- floating WhatsApp ---------- */
/* z-index below the sticky header (50) so the open mobile menu is never covered */
.wa-float { position: fixed; z-index: 40; bottom: 20px; inset-inline-end: 20px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-600); color: #fff; box-shadow: 0 10px 30px -8px rgb(0 0 0 / 45%); transition: transform .15s, background-color .15s; }
.wa-float:hover { transform: scale(1.06); background: var(--wa-700); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }
/* the contact page form already opens WhatsApp; the float would sit on top of its full-width submit button */
.page-contact .wa-float { display: none; }

.notfound h1 span { display: block; font-size: .6em; color: #c8d9ea; margin-top: .3em; }
.section-sources { padding-block: 24px 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .wa-float, .skip-link, .article-aside, .cta-box, .cta-band, .toc-mobile, .hero-actions, .hero-visual, .split-art, .breadcrumb, .chips, .related-features { display: none !important; }
  body { font-size: 11pt; line-height: 1.6; background: #fff; color: #000; }
  .hero, .pagehead, .tone-dark, .tone-soft { background: none !important; padding-block: 0 12pt; }
  .hero::before, .pagehead::before { display: none; }
  .hero *, .pagehead *, .tone-dark * { color: #000 !important; }
  .eyebrow-light { background: none; border-color: #000; }
  .timeline-num, .steps li::before { background: none !important; color: #000 !important; border: 1px solid #000; box-shadow: none !important; }
  .card, .faq-item, .callout, .steps li, tr { break-inside: avoid; box-shadow: none; }
  .table-wrap { overflow: visible; }
  .prose a[href^="http"]::after, .sources a::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  a { color: #000; }
}
