/* Edara Extensions — Edara Brand Guidelines v1.0 (October 2026), the fleet token half.
 * Lifted from Edara HR, which shipped it first; copied byte-identical by sync.sh.
 *
 * Load order: fonts.css -> edara-tokens.css -> components.css -> shell.css -> main.css
 * -> org-switcher.css -> this file. Last, so the brand's token values win over the
 * fleet defaults in edara-tokens.css. When edara-tokens.css takes the guidelines, this
 * file goes away. An app's own rules (weights, the lockup, avatars) stay in its main.css.
 */

/* ── Typefaces (p.18) ── edara-tokens.css names Inter, Manrope and, under RTL, Cairo, on ANY
   [dir=rtl] element: HR wraps Arabic names in dir=rtl spans, so the override covers those too. */
:root,[dir="rtl"]{--font-family:'Roboto','Noto Sans Arabic',Arial,Tahoma,sans-serif;--font-headline:var(--font-family)}
/* Body text never below 14px (p.19). The brand scale has labels at 14 and 11 only; Edara HR
   keeps the fleet's 12px label-md as well (owner's decision, 2026-11-24): a row's second line,
   a column heading and a chip carry real information here and 11px was a third of all text on
   screen. 11px (label-sm) stays for legends, chart ticks and overlines. The Extensions Hub's
   copy of this block still aliases label-md to label-sm. */
:root{--typo-body-sm:var(--typo-body-md); --typo-body-sm-lh:var(--typo-body-md-lh);
  --typo-body-sm-ls:var(--typo-body-md-ls)}

/* ── Colour (p.13-17) ──────────────────────────────────────────────────────────── */
/* Roles that are another family are aliases, so they follow light and dark with no
   second value: .dark sits on <html>, the same element as :root. A literal set here
   also applies in dark (:root and .dark weigh the same), which is why .dark below
   restates every literal that differs there. */
:root{
  /* The fleet's secondary-container is its selection fill (the rail's active item, a
     pressed chip, the avatar). The product marks selection in blue (p.23). */
  --secondary:var(--primary); --secondary-container:var(--primary-container);
  --on-secondary-container:var(--on-primary-container);
  --info:var(--primary); --info-container:var(--primary-container); --on-info-container:var(--on-primary-container);
  /* Jade is product status and data: the fleet's success, and the accent role, whose
     purple is not in the palette. */
  --success:#376851; --success-container:#b9eed1; --on-success-container:#002113;
  --accent:var(--success);
  --accent-container:var(--success-container); --on-accent-container:var(--on-success-container);
  /* Gold: tertiary accents and warnings. Tone 40, #775a00, is already the fleet's tertiary. */
  --warning:var(--tertiary); --warning-container:var(--tertiary-container);
  --on-warning-container:var(--on-tertiary-container);
  /* Status: tone-90 containers with tone-10 text (p.23); neutral is slate. */
  --st-neutral-bg:var(--surface-variant); --st-neutral-fg:var(--on-surface-variant);
  --st-info-bg:var(--info-container);       --st-info-fg:var(--on-info-container);
  --st-success-bg:var(--success-container); --st-success-fg:var(--on-success-container);
  --st-warning-bg:var(--warning-container); --st-warning-fg:var(--on-warning-container);
  --st-error-bg:var(--error-container);     --st-error-fg:var(--on-error-container);
  --outline-variant:#c2c7cf;
  /* Charts: blue, gold and jade steps plus slate. Twelve series from three hues are
     harder to tell apart than the fleet's twelve hues; the legend carries the names. */
  --chart-1:var(--primary); --chart-2:#b58a00; --chart-3:var(--success); --chart-4:#6cb0f1;
  --chart-5:#82b69b; --chart-6:#775a00; --chart-7:#003354; --chart-8:#f7be00;
  --chart-9:#1e4f3a; --chart-10:#72777f; --chart-11:#4f96d4; --chart-12:var(--on-surface-variant);
  /* No 4px step in the brand's shape scale (p.21): the smallest is 8. */
  --shape-xs:8px;
  /* Logo (p.8): the symbol in Edara Blue, the wordmark in Logo Grey. */
  --logo-symbol:var(--primary); --logo-wordmark:#424242;
}
/* Light only, so dark keeps the fleet's values: neutral surfaces (p.12, p.15) and
   gold's tone-90 container. */
:root:not(.dark){
  --tertiary-container:#ffdf99;
  --surface-container-low:#f9f9fd; --surface-container:#f3f3f7;
  --surface-container-high:#e2e2e5; --surface-container-highest:var(--surface-variant);
}
/* The guidelines show dark only as the #1a1c1e surface, which the fleet already uses;
   the dark container ladder is left as it is. */
.dark{
  --success:#9ed2b5; --success-container:#1e4f3a; --on-success-container:#b9eed1;
  --on-accent:#003824;
  --on-tertiary-container:#ffdf99;
  --outline-variant:var(--surface-variant);
  --chart-2:#f7be00; --chart-4:#4f96d4; --chart-5:#689b82; --chart-6:#d6a400;
  --chart-7:#cfe5ff; --chart-8:#ffdf99; --chart-9:#b9eed1; --chart-10:#a6abb3; --chart-11:#6cb0f1;
  /* On a dark surface, the on-navy version: sky symbol, white wordmark (p.12). */
  --logo-wordmark:#fff;
}

/* ── Logo (p.5-12): the wordmark is currentColor, so it takes Logo Grey, or white on dark. */
.edara-lockup-logo{color:var(--logo-wordmark)}
