/* OneGIG portal design tokens. Single source for the portal and console.
   Palette per GIG Brand Usage Manual (June 2023, sec. 3.1). Do not rename. */
:root{
  /* Core palette (GIG Brand Usage Manual sec. 3.1) */
  --bg:#F2F5F4;
  --surface:#FFFFFF;
  --ink:#12262A;
  --muted:#54696B;
  --line:#DDE6E3;
  --petrol:#003D44;          /* GIG Petrol, Pantone 7477C */
  --petrol-tint:#E3EDEC;
  --green:#48822A;           /* GIG Green, Pantone 2278C */
  --lime:#C1FA00;            /* GIG Lime, Pantone 2297C */
  --amber-bg:#FCF1E1;
  --amber-ink:#8A5410;
  --danger:#B3372B;

  /* Entity accents (sampled from supplied logo artwork) */
  --c-gig:#48822A;
  --c-afico:#ED1C24;
  --c-srw:#FEB600;
  --c-bcoms:#002475;

  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(0,61,68,.05), 0 6px 18px rgba(0,61,68,.06);
  --shadow-lift:0 2px 4px rgba(0,61,68,.08), 0 12px 28px rgba(0,61,68,.11);
  --shadow-float:0 4px 10px rgba(0,61,68,.10), 0 18px 44px rgba(0,61,68,.16);
  --t-fast:150ms;
  --t-slow:250ms;
  --ease:cubic-bezier(.2,.8,.2,1);
  /* One Arabic stack for the portal, console, studio frame and (mirrored in
     /m/assets/tokens.css) the phone app. Neo Sans Arabic is the brand face and the
     one /m/ ships; Cairo is the loaded fallback on the web. Gap item D4. */
  --font-ar:"Neo Sans Arabic", "29LT Zawi", "Cairo", Tahoma, "Geeza Pro", sans-serif;
  --lh-ar:1.7;
  --font:"Neo Sans Arabic", "29LT Zawi", "Cairo", Tahoma, Verdana, sans-serif;
  --mono:"IBM Plex Mono", "Consolas", monospace;
  --maxw:1200px;
}

/* Portal design-system tokens (gap item D1). New names only; the values
   alias the tokens above, so nothing changes where they are not yet used.
   See docs/DESIGN_SYSTEM.md. */
:root{
  --og-gig:var(--c-gig);       /* #48822A */
  --og-afico:var(--c-afico);   /* #ED1C24 */
  --og-srw:var(--c-srw);       /* #FEB600 */
  --og-bcoms:var(--c-bcoms);   /* #002475 */
  --og-radius:var(--radius);        /* 12px */
  --og-radius-sm:var(--radius-sm);  /* 8px */
  --og-motion-fast:var(--t-fast);   /* 150ms */
  --og-motion-slow:var(--t-slow);   /* 250ms */
  --og-focus-ring:2px solid var(--petrol);  /* on Petrol surfaces use --og-focus-ring-on-petrol */
  --og-focus-ring-on-petrol:2px solid var(--lime);
  --og-focus-offset:2px;
}

/* Arabic typography (gap item D4): one stack and a body line height of at least
   1.6 under RTL. Specificity beats each page's own body rule; components that set
   their own line height keep it. */
html[dir="rtl"] body, body:lang(ar){font-family:var(--font-ar); line-height:var(--lh-ar);}
