/* RASISAC website. Colours: option D «الأخضر والرملي» forest green and sand, approved by the President on 2026-11-12.
   --brand forest-green bars; --accent sand fill with --accent-ink text on it; --ox green as text/links (the name is kept);
   --brass dark sand for eyebrows, the motto and thin text accents (4.5:1 or more on the page); --accent-soft green tint;
   --hero-glow-1/-2 and --hero-grid colour the hero's background. Fonts: Noto Kufi Arabic for Arabic letters, IBM Plex Sans
   Arabic's Latin subset for Latin letters and digits (fonts/fonts.css). */
:root {
  color-scheme: light;
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #FAF8F3;
  --ink: #10241A;
  --text: #34463C;
  --muted: #59665E;
  --line: #E0DACB;
  --brand: #0F3D2A;
  --on-brand: #F6F3EC;
  --on-brand-muted: #C9D8CE;
  --on-brand-accent: #E3C48F;
  --accent: #D3B07A;
  --accent-ink: #1F1606;
  --accent-soft: #E6EFE9;
  --ox: #17603F;
  --brass: #6E4B1A;
  --brass-soft: #F3E9D6;
  --ph-bg: #FFE9A8;
  --ph-ink: #3D2E00;
  --ph-line: #C79A1E;
  --focus: #17603F;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 36, 26, .05), 0 10px 28px rgba(16, 36, 26, .07);
  --hero-glow-1: rgba(23, 96, 63, .10);
  --hero-glow-2: rgba(211, 176, 122, .16);
  --hero-grid: rgba(15, 61, 42, .05);
}
/* The dark palette is the site's fixed look whatever the visitor's device setting (the President's choice, 2026-11-12);
   the light tokens above are kept as the base the dark ones override. */
@media all {
  :root {
    color-scheme: dark;
    --bg: #0B1510;
    --surface: #122019;
    --surface-2: #0F1B15;
    --ink: #EEF3EF;
    --text: #C8D5CD;
    --muted: #93A49A;
    --line: #22352B;
    --brand: #0E2419;
    --on-brand: #EEF3EF;
    --on-brand-muted: #BACBC0;
    --on-brand-accent: #E3C48F;
    --accent: #D9B985;
    --accent-ink: #1F1606;
    --accent-soft: #183126;
    --ox: #A9D9A2;
    --brass: #E3C48F;
    --brass-soft: #2A2416;
    --ph-bg: #4A3A0E;
    --ph-ink: #FFE6A3;
    --ph-line: #D9A94E;
    --focus: #E3C48F;
    --shadow: none;
    --hero-glow-1: rgba(70, 160, 100, .14);
    --hero-glow-2: rgba(217, 185, 133, .08);
    --hero-grid: rgba(255, 255, 255, .035);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis-weight: none; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  /* Keeps the text at the visual size of the earlier fonts (x-height 0.516 of the font size) whatever the px size. */
  font-size-adjust: ex-height 0.516;
  line-height: 1.9;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', Tahoma, sans-serif; color: var(--ink); font-weight: 600; line-height: 1.55; margin: 0; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.3; }
p { margin: 0; }
a { color: var(--ox); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }

/* Language: Arabic by default; the toggle switches html[lang]. */
html[lang="ar"] .en, html[lang="en"] .ar, [hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.bar :focus-visible, .foot :focus-visible { outline-color: var(--on-brand-accent); }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 820px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Placeholders the owner must fill before publishing: always highlighted. */
.ph { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed var(--ph-line); border-radius: 6px; padding: 0 6px; font-weight: 600; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: var(--on-brand); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.menu a { color: var(--on-brand-muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: 15px; }
.menu a:hover { color: var(--on-brand); background: rgba(255, 255, 255, .08); }
.lang { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--on-brand); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 14px; min-height: 36px; }
.lang:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 860px) {
  .bar { position: static; }
  html { scroll-padding-top: 0; }
  .menu { order: 3; width: 100%; justify-content: center; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }
  .menu a { padding: 4px 8px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { color: var(--brass); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--text); max-width: 62ch; }
.motto { font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; color: var(--brass); font-size: 17px; }

/* Hero treatment (CSS only, no images): two soft glows and a faint grid that fades out, mirrored for English,
   a pill eyebrow, a bolder title and an accent rule on the path card. */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% 18%, var(--hero-glow-1), transparent 66%),
    radial-gradient(760px 460px at 92% 96%, var(--hero-glow-2), transparent 70%);
}
html[dir="ltr"] .hero {
  background-image:
    radial-gradient(900px 520px at 88% 18%, var(--hero-glow-1), transparent 66%),
    radial-gradient(760px 460px at 8% 96%, var(--hero-glow-2), transparent 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 20%, transparent 75%);
}
html[dir="ltr"] .hero::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; }
.hero .eyebrow { align-self: flex-start; background: var(--brass-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.hero h1 { font-weight: 700; font-size: clamp(30px, 5vw, 54px); line-height: 1.5; }
html[lang="en"] .hero h1 { letter-spacing: -.01em; line-height: 1.2; }
.hero .path { border-top: 3px solid var(--accent); }

/* The hero's path card: the four stages of every engagement. */
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.path-title { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.path li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.path li:last-child::before { display: none; }
.path .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ox); font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: 15px; }
.path li:last-child .dot { background: var(--accent); color: var(--accent-ink); }
.path b { display: block; color: var(--ink); font-weight: 600; }
.path small { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Launch notice */
.notice { background: var(--brass-soft); border-bottom: 1px solid var(--line); }
.notice p { padding-block: 14px; color: var(--ink); font-size: 15px; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-lead { max-width: 70ch; font-size: 17px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 12px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 19px; }
/* Replaces an inline style, so the site works under a CSP without 'unsafe-inline'. */
.mt16 { margin-top: 16px; }
.card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--ox); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; }
.card .tag.brass { color: var(--brass); background: var(--brass-soft); }
.card ul, .list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.card.feature { border-top: 4px solid var(--accent); }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ox); flex: none; }
.icon svg { width: 22px; height: 22px; }

/* Focus topics */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-weight: 600; font-size: 15px; }
.pillar.licensed { border-style: dashed; }

/* Steps */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; margin-bottom: 4px; }
html[lang="ar"] .steps li::before { content: counter(s, arabic-indic); }
.steps b { color: var(--ink); font-size: 17px; font-weight: 600; }
.steps span { font-size: 15px; }

/* Review chain (maker–checker) */
.chain { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chain li { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 6px 12px; font-size: 15px; font-weight: 600; }
.chain li:not(:last-child)::after { content: "←"; color: var(--brass); font-weight: 700; }
html[lang="en"] .chain li:not(:last-child)::after { content: "→"; }
.note { font-size: 14px; color: var(--muted); }

/* Contact */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 12px; }
.contact dl { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 0; color: var(--ink); min-width: 0; }
@media (max-width: 420px) { .contact dl { grid-template-columns: minmax(0, 1fr); } .contact dd { margin-bottom: 8px; } }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Legal pages */
.draft { background: var(--ph-bg); color: var(--ph-ink); border-bottom: 1px dashed var(--ph-line); font-weight: 600; }
.draft .wrap { padding-block: 10px; }
.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc h1 { font-size: clamp(26px, 4vw, 36px); }
.doc h2 { font-size: 21px; margin-top: 12px; }
.doc ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.for { color: var(--muted); font-size: 14px; }

/* Footer */
.foot { background: var(--brand); color: var(--on-brand-muted); padding-block: 28px; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; }
.foot-brand { color: var(--on-brand); font-weight: 600; }
.foot p + p { margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--on-brand); }
.foot .ph { font-weight: 600; }

/* Regulatory guides (website/guides/, generated by scripts/build-guides.js) */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 8px; color: var(--brass); }
html[lang="en"] .crumbs li + li::before { content: "›"; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.guide .lead { font-size: 17px; }
.g-dates { font-size: 14px; color: var(--muted); }
.g-notice { background: var(--brass-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-size: 15px; font-weight: 600; }
.g-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.g-toc h2 { font-size: 17px; margin-bottom: 8px; }
.g-toc ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.g-law dl { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
.g-law dt { color: var(--muted); font-size: 14px; }
.g-law dd { margin: 0; color: var(--ink); min-width: 0; }
@media (max-width: 520px) { .g-law dl { grid-template-columns: minmax(0, 1fr); } .g-law dd { margin-bottom: 8px; } }
.g-legend { border-block: 1px solid var(--line); padding-block: 16px; display: flex; flex-direction: column; gap: 8px; }
.g-legend h2 { font-size: 19px; }
.g-section { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; scroll-margin-top: 84px; }
.g-section h2, .g-legend h2, .g-related h2 { margin-top: 8px; }
.g-block { margin: 0; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-block h3, .g-block h4 { font-size: 17px; }
.g-binding { border-inline-start-color: var(--ox); }
.g-reading { border-inline-start-color: var(--brass); }
.g-guidance { border-inline-start-color: var(--accent); border-style: dashed; border-inline-start-style: solid; }
.g-label { align-self: flex-start; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 12px; }
.g-binding .g-label { color: var(--ox); background: var(--accent-soft); }
.g-reading .g-label { color: var(--brass); background: var(--brass-soft); }
.g-guidance .g-label { color: var(--ink); background: var(--surface-2); border: 1px dashed var(--line); }
.g-quote-text { margin: 0; white-space: pre-line; color: var(--ink); font-size: 16px; line-height: 1.9; text-align: start; }
blockquote.g-quote-text { padding-inline-start: 14px; border-inline-start: 2px solid var(--accent-soft); }
.g-block figcaption, .g-basis { font-size: 14px; color: var(--muted); }
.g-amend { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.g-amend .g-quote-text { font-size: 15px; }
.g-amend summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.g-amend-h { font-size: 14px; color: var(--muted); }
.g-faq { display: flex; flex-direction: column; gap: 10px; }
.g-faq > h3 { font-size: 18px; margin-top: 6px; }
.g-cta { border-top: 4px solid var(--accent); margin-top: 16px; scroll-margin-top: 84px; }
.g-cta h2 { font-size: 21px; }
/* The advertisement label on the guides' closing offer (E-Commerce Implementing Regulation Art. 10(1)(a)). */
.g-ad { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--brass); background: var(--brass-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.g-area { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.g-area h2 { font-size: 22px; }
.g-area .card h3 a { color: var(--ink); text-decoration: none; }
.g-area .card h3 a:hover { color: var(--ox); text-decoration: underline; }
.home-guides .row { margin-top: 4px; }
