/* Copy of brand/tokens.css from hseel-property-intelligence (read only there), for the
   Sanad estimator pages. Two interim departures, to be confirmed by the owner:
   1. The four @font-face blocks for Thmanyah Sans are removed: the font licence is not
      settled, so no font file is embedded.
   2. --font is a system Arabic stack, and --w-body is 400 (system Arabic fonts rarely
      carry a Light weight).
   No colour is added or changed. When the Thmanyah licence is settled, restore the
   original lines from brand/tokens.css. */

/* Hseeltech brand 2026 (MEEM V0.3) design tokens for every report, dashboard and chart in this system.
   Source of truth: brand/BRAND.md. Do not add colours outside this file. */

:root {
  /* primary palette */
  --h-black: #111111;
  --h-white: #F6F5F3;
  --h-blue: #2436F2;

  /* tints (sampled from the guidelines) */
  --h-blue-600: #606EF6;
  --h-blue-300: #9DA6FB;
  --h-blue-100: #D9DEFF;
  --h-blue-panel: #E9EBFE;
  --h-grey-700: #5D5D5C;
  --h-grey-400: #AAA9A8;

  /* semantic, light surface */
  --bg: var(--h-white);
  --surface: #FFFFFF00;               /* surfaces stay on Warm White; separate with hairlines, not cards */
  --panel: var(--h-blue-panel);
  --text: var(--h-black);             /* 17.3:1 */
  --text-muted: var(--h-grey-700);    /* 6.1:1 */
  --accent: var(--h-blue);            /* 6.7:1, safe for text */
  --hairline: var(--h-grey-400);

  /* data colours (no off-palette red/green: direction is shown by sign, arrow and label, never colour alone) */
  --data-1: var(--h-blue);            /* main series, our estimate */
  --data-2: var(--h-black);           /* comparison series, market / official index */
  --data-3: var(--h-grey-700);        /* third series */
  --data-4: var(--h-blue-600);        /* fourth series, marks only (3.8:1) */
  --band-80: var(--h-blue-100);       /* forecast fan, 80% interval */
  --band-50: var(--h-blue-300);       /* forecast fan, 50% interval */
  --seq-1: var(--h-blue-panel); --seq-2: var(--h-blue-100); --seq-3: var(--h-blue-300); --seq-4: var(--h-blue-600); --seq-5: var(--h-blue);
  --negative: var(--h-black);         /* falls / losses: black with a minus sign */
  --positive: var(--h-blue);          /* rises / gains: blue with a plus sign */

  --font: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --w-body: 400; --w-regular: 400; --w-head: 500; --w-strong: 700;
  --chamfer: 18px;                    /* chamfered frame corner cut for photo masks */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--h-black);
    --text: var(--h-white);
    --text-muted: var(--h-grey-400);  /* 8.0:1 */
    --accent: var(--h-blue-300);      /* Royal Blue on black is 2.6:1, so text uses #9DA6FB (8.4:1) */
    --panel: #1B1B1B;
    --hairline: var(--h-grey-700);
    --data-1: var(--h-blue-300); --data-2: var(--h-white); --data-3: var(--h-grey-400); --data-4: var(--h-blue-600);
    --band-80: #1F2580; --band-50: var(--h-blue);
    --positive: var(--h-blue-300); --negative: var(--h-white);
  }
}
:root[data-theme="dark"] {
  --bg: var(--h-black); --text: var(--h-white); --text-muted: var(--h-grey-400); --accent: var(--h-blue-300);
  --panel: #1B1B1B; --hairline: var(--h-grey-700);
  --data-1: var(--h-blue-300); --data-2: var(--h-white); --data-3: var(--h-grey-400); --data-4: var(--h-blue-600);
  --band-80: #1F2580; --band-50: var(--h-blue);
  --positive: var(--h-blue-300); --negative: var(--h-white);
}

html { direction: rtl; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: var(--w-body); }
h1, h2, h3 { font-weight: var(--w-head); }
.two-tone .second { color: var(--accent); }   /* headline: first clause black, second clause blue */
/* numbers are isolated LTR runs so signs, % and hex codes stay in place inside Arabic text ("+3.2%", not "3.2%+") */
.num, .ltr { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .num, [dir="rtl"] .ltr { text-align: right; }   /* block-level numbers keep the Arabic column alignment */
hr, .hairline { border: 0; border-top: 1px solid var(--hairline); }
