/* Royal Horizon ERP tokens, in Nova Business School Africa's colours and type (Papa, 18 Nov 2026). The values are
   Nova's own, from the nova.edu.gh rebuild (Clients/nova/site/src/styles/global.css): navy #001551 and gold #BF9460.
   White on gold fails contrast (2.8:1), so gold carries navy text, and gold text on light uses deep gold #84613A.
   Every colour, size, radius, shadow and timing in app.css comes from here. The brand is this file's first part (down
   to the type sizes), js/brand.js and index.html. Royal Horizon's version (its own repo) has its brand in the same places. */

/* Nova's type: Gambetta for page titles and big figures, Metropolis for everything else (assets/fonts). */
@font-face { font-family: "Gambetta"; src: url("../assets/fonts/gambetta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../assets/fonts/gambetta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../assets/fonts/gambetta-600.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/metropolis-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/metropolis-500.woff2") format("woff2"); font-weight: 450 549; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/metropolis-600.woff2") format("woff2"); font-weight: 550 649; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/metropolis-700.woff2") format("woff2"); font-weight: 650 900; font-display: swap; }

:root {
  /* Brand: Nova */
  --navy: #001551;
  --navy-deep: #000c33;
  --navy-2: #0b2266;            /* raised surface on navy */
  --navy-3: #1a3278;            /* hover on navy-2; the hatch for "waiting" */
  --accent: #bf9460;            /* fills; navy text on it (6.2:1) */
  --accent-hover: #cba578;      /* navy text 7.5:1 */
  --accent-ink: #84613a;        /* gold text on white (5.6:1) and on canvas (5.1:1) */
  --accent-on-navy: #d8b98f;    /* gold text and focus on navy (9.2:1) */
  --focus: #84613a;             /* focus ring on light surfaces; navy surfaces switch it to --accent-on-navy */
  --mark: url("../assets/nova-mark.png");   /* the logo's mark, drawn as a tone of navy behind the sign-in */
  --mark-ratio: 215 / 256;
  --mark-backdrop: 0.16;        /* the mark behind the demo guide, on navy */

  /* Surfaces and text: Nova's warm paper */
  --canvas: #f5f3ee;
  --canvas-glass: rgba(245, 243, 238, 0.82);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --sunk: #ece8df;
  --ink: #001551;
  --text: #1c2340;
  --mute: #5c6278;              /* 6.1:1 on white */
  --line: #e3ded3;
  --field: #82879b;             /* control borders, 3.6:1 on white */
  --edge: rgba(0, 21, 81, 0.07);/* scroll edge under floating chrome */
  --scrim: rgba(0, 12, 46, 0.46);
  --on-navy: #ffffff;
  --on-navy-mute: #c7cde0;      /* 10.8:1 on navy */
  --on-navy-line: rgba(255, 255, 255, 0.16);
  --on-navy-hover: rgba(255, 255, 255, 0.07);
  --on-navy-press: rgba(255, 255, 255, 0.13);

  /* Where a request is. Gold means one thing: this needs you. */
  --needs-bg: #f4ece0;  --needs-fg: #84613a;
  --with-bg: #edf0f7;   --with-fg: #001551;
  --ok-bg: #e6f2eb;     --ok-fg: #1e6b45;     --ok: #1e6b45;
  --no-bg: #fbe9e7;     --no-fg: #b42318;     --no-strong: #8e1c16;   /* destructive button, hover */
  --quiet-bg: #efede8;  --quiet-fg: #5c6278;

  /* Type: Metropolis for the interface, Gambetta for titles and figures (Nova's pair) */
  --font: "Metropolis", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --display-weight: 600;
  --display-stretch: normal;
  --display-tracking: -0.01em;
  --t-xs: 0.8125rem;
  --t-s: 0.875rem;
  --t-m: 1rem;
  --t-l: 1.0625rem;
  --t-lead: clamp(1.3125rem, 1.05rem + 0.9vw, 1.75rem);
  --t-h4: 1.125rem;             /* date tiles */
  --t-h3: 1.25rem;              /* sheet titles, the large avatar, a short lead */
  --t-h2: 1.375rem;             /* the decision panel's title */
  --t-xl: 1.625rem;
  --t-2xl: 2rem;
  --t-num: 2.75rem;
  --t-hero: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --t-note: 1rem;               /* explanatory sentences: 16px on phones (Owlake floor), --t-s from 861px */
  --w-narrow: 92%;
  --w-wide: 112.5%;

  /* Space, 4px base, with half steps for tight inner gaps */
  --s05: 0.125rem; --s1: 0.25rem; --s15: 0.375rem; --s2: 0.5rem; --s25: 0.625rem; --s3: 0.75rem;
  --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem;

  /* Sizes */
  --tap: 44px;                  /* minimum touch target */
  --field-h: 48px;              /* text inputs and selects */
  --node: 26px;                 /* trail and timeline nodes */
  --av: 2.5rem;                 /* avatar, type icon tile (rem, so initials stay inside at large text) */

  /* Radius grows with the surface */
  --r-chip: 999px;
  --r-xs: 4px;                  /* calendar cells, legend keys */
  --r-s: 6px;                   /* focus ring */
  --r-ctl: 10px;
  --r-panel: 14px;
  --r-sheet: 22px;

  /* Elevation: only floating things cast a shadow; resting panels use a border */
  --shadow-lift: 0 1px 2px rgba(0, 21, 81, 0.12), 0 2px 6px -2px rgba(0, 21, 81, 0.1);
  --shadow-pop: 0 1px 2px rgba(0, 21, 81, 0.08), 0 14px 36px -12px rgba(0, 21, 81, 0.32);
  --shadow-float: 0 2px 6px rgba(0, 21, 81, 0.08), 0 28px 56px -24px rgba(0, 21, 81, 0.42);

  /* Motion: timed curves for things nobody grabs; springs (js/spring.js) for anything touched */
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.9, 0.3);   /* mirror of ease-out for exits */
  --t-in: 320ms;
  --t-out: 200ms;
  --t-press: 90ms;

  /* Frame */
  --side: 16rem;                /* grows with the browser's text size, so names in it don't break */
  --top: 78px;                  /* desktop header bar: where you are, then the title */
  --top-m: 56px;
  --tabs: 64px;
  --act-space: 6.5rem;          /* room under the page for the floating action button on phones */
  --max: none;                  /* pages use the whole width, as in the wireframes */
}
