/* =====================================================================
   AKRUA Design Language — colours and fonts (tokens)  (v0.1, 22 Nov 2026)
   Copied from the AKRUA design language (A00 Company Strategy/design-language). Fonts load in base.html.
   Every AKRUA app links this file. Apps with their own components point
   their variables at these; new apps also take akrua-theme.css.
   One file for every AKRUA app. A client brand is one attribute:
     <html data-brand="akrua">   AKRUA  — navy + red on white
     <html data-brand="jago">    JAGO   — red + white (buttons in ink)
     <html data-brand="af">      Anytime Fitness — purple
   Dark mode: <html data-theme="dark">, or follows the device if unset.
   Rule: only the BRAND block changes per client. Paper, ink, lines and
   status colours (ok / warn / bad) are the same everywhere.
   ===================================================================== */


:root {
  /* type */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* neutrals: warm paper, near-black ink, hairlines */
  --paper: #f6f5f1;
  --card: #ffffff;
  --sunken: #f1efea;
  --line: #e3e1db;
  --line-soft: #efede8;
  --ink: #14161a;
  --ink-2: #464a52;
  --muted: #6f7179;   /* 4.9:1 on white: readable for small text */

  /* status: fixed across all brands, always shown with a word */
  --ok: #2f7d4e;   --ok-soft: #e8f3ec;
  --warn: #9a6a1f; --warn-soft: #f8eedb;
  --bad: #b42318;  --bad-soft: #fbeae8;

  /* shape */
  --r: 8px; --r-sm: 6px; --r-pill: 999px;
  --gap: 16px;

  /* BRAND (default = AKRUA) */
  --brand: #0f2547;        /* identity: logo, active nav, tab underline, links */
  --brand-soft: #e9edf4;   /* selected row, active nav background */
  --accent: #c8202f;       /* second brand colour: logo dot, one highlight per page */
  --action: #0f2547;       /* main button */
  --action-ink: #ffffff;
  --focus: #0f2547;
}

/* ---------- brands ---------- */
[data-brand="akrua"] {
  --brand: #0f2547; --brand-soft: #e9edf4; --accent: #c8202f;
  --action: #0f2547; --action-ink: #fff; --focus: #0f2547;
  /* AKRUA work area: a slightly cool paper that sits with navy (decided 22 Nov 2026) */
  --paper: #f4f6f9; --sunken: #eef2f7; --line: #e1e6ee; --line-soft: #edf0f5;
  --ink: #14202f; --ink-2: #3d4a5c; --muted: #66727f;
}
/* MENU: every brand has a dark menu in its deep shade, with its bright colour mixed in:
   current page marker, the count of things waiting on you, the top stripe. */
:root, [data-brand="akrua"] { --menu: #0f2547; --menu-ink: #ffffff; --menu-hot: #c8202f; --menu-hot-ink: #ff6b75; }
[data-brand="jago"] { --menu: #271110; --menu-ink: #ffffff; --menu-hot: #ee2737; --menu-hot-ink: #ff6b75; }
[data-brand="af"]   { --menu: #1a1a2a; --menu-ink: #ffffff; --menu-hot: #9b6dd0; --menu-hot-ink: #c4a3ee; }

[data-brand="jago"] {
  /* red is the identity; buttons stay ink so red never reads as "danger" */
  --brand: #ee2737; --brand-soft: #fdeaeb; --accent: #271110;
  --action: #14161a; --action-ink: #fff; --focus: #ee2737;
}
[data-brand="af"] {
  --brand: #6b3fa0; --brand-soft: #f0ebf8; --accent: #9b6dd0;
  --action: #6b3fa0; --action-ink: #fff; --focus: #6b3fa0;
}

/* ---------- dark mode ---------- */
[data-theme="dark"] {
  --paper: #121316; --card: #1a1c20; --sunken: #16181b;
  --line: #2b2e34; --line-soft: #23262b;
  --ink: #f1f0ec; --ink-2: #c4c5c9; --muted: #8b8d94;
  --ok: #7fc79a; --ok-soft: #16281d;
  --warn: #e3b260; --warn-soft: #2e2412;
  --bad: #f08a80; --bad-soft: #321816;
}
[data-theme="dark"][data-brand="akrua"], [data-theme="dark"]:not([data-brand]) {
  --brand: #9db4e0; --brand-soft: #1c2638; --accent: #ef5a64;
  --action: #9db4e0; --action-ink: #0b1526; --focus: #9db4e0;
}
[data-theme="dark"][data-brand="jago"] {
  --brand: #ff4b59; --brand-soft: #34181a; --accent: #ff4b59;
  --action: #f1f0ec; --action-ink: #14161a; --focus: #ff4b59;
}
[data-theme="dark"][data-brand="af"] {
  --brand: #b993ea; --brand-soft: #2a2038; --accent: #b993ea;
  --action: #b993ea; --action-ink: #1a1026; --focus: #b993ea;
}

