/* FCMB One brand tokens: ONE set for every page, so the pages can never drift apart again.
   FCMB Brand Guideline 5D (approved by Zamran on 25 Nov 2026); values from shared/brand/tokens.json?v=d333243cefef.
   Light theme (the default): client pages on my.fcmb.ae, emails, reports.  Navy theme (class "fc-navy"): the team page, the sign-in
   page and the Lender Desk. Every page loads this file first and takes its colours, fonts and sizes from here only.
   Tests (tests/brand.test.js) fail if a page uses a colour outside this set or a monospace font. */
:root{
  /* the palette */
  --fc-navy-900:#0b2236;   /* FCMB Navy */
  --fc-navy-800:#12304a;   /* raised cards on navy */
  --fc-navy-line:#23415c;  /* borders on navy */
  --fc-navy-700:#165078;   /* deep blue (depth on navy, never small text) */
  --fc-blue-600:#0e6bb3;   /* FCMB Blue */
  --fc-blue-400:#1c8fd8;   /* light blue on navy (large text) */
  --fc-blue-300:#5baee6;   /* links and small blue text on navy */
  --fc-blue-100:#e3f0fa;   /* blue tint */
  --fc-gold-400:#f2a541;   /* Saffron Gold: the ONE main action button only, always navy text */
  --fc-gold-700:#9a5b00;   /* gold text on light */
  --fc-gold-100:#fdf1de;   /* gold tint */
  --fc-paper:#f6f4ef; --fc-sand:#e7e3da; --fc-white:#ffffff;
  --fc-grey-600:#4a5763;   /* muted text on light */
  --fc-grey-500:#7a8592;   /* control edges on light (not text) */
  --fc-grey-200:#e2ded4;   /* hairlines on light */
  --fc-grey-navy:#b9c2cc;  /* muted text on navy */
  --fc-control-navy:#6b8aa6;
  --fc-success-light:#1e7a4c; --fc-success-navy:#5cc48f;
  --fc-error-light:#b42318;   --fc-error-navy:#f08a80;

  /* type */
  --fc-font:Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fc-font-display:Newsreader, Georgia, serif;   /* big page headings only */
  --fc-font-arabic:"IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;   /* later */

  /* shape and size */
  --fc-control-h:48px; --fc-control-h-sm:40px; --fc-touch-min:44px;
  --fc-radius-input:6px; --fc-radius-card:12px; --fc-radius-lg:16px; --fc-radius-pill:999px;
  --fc-shadow-card:0 1px 2px rgba(11,34,54,0.06), 0 8px 24px rgba(11,34,54,0.08);
  --fc-shadow-raised:0 2px 4px rgba(11,34,54,0.08), 0 18px 40px rgba(11,34,54,0.16);
  --fc-logo-h:32px; --fc-logo-h-phone:28px;   /* the height of the logo drawing itself (guideline) */
  /* the approved files carry their clear space inside them: the drawing is 69.5% of the full logo's height and 65.8% of the
     short logo's (measured from the 2000 px PNGs, 25 Nov 2026), so the file is sized to make the DRAWING 32 / 28 px tall */
  --fc-logo-ink:0.695; --fc-logo-ink-short:0.658;
}

/* Light theme (client pages): white and paper grounds, navy text, FCMB Blue links, Saffron Gold for the main button */
:root, .fc-light{
  --fc-bg:var(--fc-white); --fc-bg-alt:var(--fc-paper); --fc-surface:var(--fc-white); --fc-surface-2:var(--fc-paper);
  --fc-text:var(--fc-navy-900); --fc-muted:var(--fc-grey-600); --fc-link:var(--fc-blue-600);
  --fc-border:var(--fc-grey-200); --fc-border-control:var(--fc-grey-500); --fc-focus:var(--fc-blue-600);
  --fc-action:var(--fc-gold-400); --fc-action-text:var(--fc-navy-900);
  --fc-select:var(--fc-blue-600); --fc-select-text:var(--fc-white); --fc-tint:var(--fc-blue-100);
  --fc-brand:var(--fc-navy-900); --fc-on-brand:var(--fc-white);
  /* status colours: always with the word next to them */
  --fc-success:var(--fc-success-light); --fc-error:var(--fc-error-light); --fc-cond:var(--fc-gold-700); --fc-gap:var(--fc-blue-600);
  --fc-notice-bg:var(--fc-gold-100); --fc-notice-text:var(--fc-navy-900); --fc-notice-line:var(--fc-gold-400);
  color-scheme:light;
}
/* Navy theme (team page, sign-in, Lender Desk) */
.fc-navy{
  --fc-bg:var(--fc-navy-900); --fc-bg-alt:var(--fc-navy-800); --fc-surface:var(--fc-navy-800); --fc-surface-2:var(--fc-navy-900);
  --fc-text:var(--fc-white); --fc-muted:var(--fc-grey-navy); --fc-link:var(--fc-blue-300);
  --fc-border:var(--fc-navy-line); --fc-border-control:var(--fc-control-navy); --fc-focus:var(--fc-blue-300);
  --fc-action:var(--fc-gold-400); --fc-action-text:var(--fc-navy-900);
  --fc-select:var(--fc-blue-600); --fc-select-text:var(--fc-white); --fc-tint:var(--fc-navy-700);
  --fc-brand:var(--fc-navy-700); --fc-on-brand:var(--fc-white);
  --fc-success:var(--fc-success-navy); --fc-error:var(--fc-error-navy); --fc-cond:var(--fc-gold-400); --fc-gap:var(--fc-blue-300);
  --fc-notice-bg:var(--fc-gold-100); --fc-notice-text:var(--fc-navy-900); --fc-notice-line:var(--fc-gold-400);
  color-scheme:dark;
}

/* the basics every page shares */
body{font-family:var(--fc-font); background:var(--fc-bg); color:var(--fc-text)}
/* tabular figures for numbers only (money, rates, percentages). Not for the whole page: in Inter they also give hyphens and other
   punctuation a fixed width ("made - up", "FCMB - 2026 - 0001"; found by Zamran, 25 Nov 2026) */
.num, .fc-num, input.amt, input[type=number]{font-variant-numeric:tabular-nums}
button, input, select, textarea, code, pre, kbd, samp{font-family:var(--fc-font)}   /* no monospace anywhere */
a{color:var(--fc-link)}
:focus-visible{outline:2px solid var(--fc-focus); outline-offset:2px}
.fc-display{font-family:var(--fc-font-display); font-weight:400}

/* the logo: only the approved files, never stretched, never a box behind it, clear space around it */
.fc-logo{display:block; height:calc(var(--fc-logo-h) / var(--fc-logo-ink)); width:auto; max-width:100%; background:none; padding:0; margin:0}   /* full logo: drawing 32 px tall; the file's own margin is the clear space */
.fc-logo-phone{display:none}
@media (max-width:600px){
  .fc-logo{height:calc(var(--fc-logo-h-phone) / var(--fc-logo-ink))}   /* full logo on phones: drawing 28 px tall */
  .fc-logo-wide.fc-has-phone{display:none} .fc-logo-phone{display:block}
  .fc-logo-phone.fc-logo-short{height:calc(var(--fc-logo-h-phone) / var(--fc-logo-ink-short))}   /* the short FCMB logo: team pages on phones only */
}
