/* =====================================================
   abc.project.css — PROJECT THEME OVERRIDES (ABC V1)
   Override ONLY tokens + add project-level brand utilities
   Pattern:
   - --brand / --brand-2 = identity (stable)
   - --brand-ui / --brand-2-ui = theme-adapted for UI
   ===================================================== */

/* -----------------------------------------------------
   BRIGHT (default): tokens on :root
   ----------------------------------------------------- */
:root{

  /* ======================
     BRAND (identity)
     ====================== */
--brand:     #2b2b2b;
--on-brand:  #ffffff;

--brand-2:     #f6f6f6;
--on-brand-2:  #2b2b2b;
/* =====================================================
   CLIENT BRAND — EDIT ONLY THIS BLOCK ABOVE!
   Everything else below is system behavior.
   ===================================================== */




  /* ======================
     BRAND (UI derived) — bright = same as identity
     ====================== */
  --brand-ui:      var(--brand);
  --on-brand-ui:   var(--on-brand);

  --brand-2-ui:    var(--brand-2);
  --on-brand-2-ui: var(--on-brand-2);

  /* ======================
     MAP to system tokens
     ====================== */
  --accent: var(--brand-ui);

  --selection-bg: var(--accent);
  --selection-text: var(--on-brand-ui);

  /* ======================
     Surfaces (museum/heritage tuned)
     Keep primary/secondary as surfaces, NOT brand colors
     ====================== */
  --bg: #ffffff;
  --bg-soft: #f4f1ec;
  --bg-hard: #e9e4dc;

  /* Text + borders */
  --text: #141414;
  --text-soft: #3a3a3a;
  --text-mute: #6b6b6b;

  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);

  --primary: var(--bg-hard);
  --secondary: var(--bg-soft);
}


/* -----------------------------------------------------
   DARK: MUST match system class (ABC uses theme-dark)
   ----------------------------------------------------- */
body.theme-dark{

  /* System surfaces */
  --bg: #101010;
  --bg-soft: #101010;
  --bg-hard: #000000;

  --text: #f2f6ff;
  --text-soft: rgba(242,246,255,0.82);
  --text-mute: rgba(242,246,255,0.62);

  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  --primary: var(--bg-hard);
  --secondary: var(--bg-soft);

  /* --------------------------------
     BRAND UI derived (fallback first)
     -------------------------------- */
  /* Fallback values (work everywhere) */
  --brand-ui: #7fd1c7;
  --on-brand-ui: #0b0f14;

  --brand-2-ui: #1a2426;
  --on-brand-2-ui: #f2f6ff;

  /* Modern override (better, automatic-ish) */
  --brand-ui: color-mix(in oklab, var(--brand) 65%, white 35%);
  --brand-2-ui: color-mix(in oklab, var(--brand-2) 25%, black 75%);

  /* Map accent + selection */
  --accent: var(--brand-ui);

  --selection-bg: var(--accent);
  --selection-text: var(--on-brand-ui);
}


/* =====================================================
   Brand utilities (use -ui tokens ONLY)
   ===================================================== */

.BGCBrand{
  background-color: var(--brand-ui);
  color: var(--on-brand-ui);
}

.BGCBrand2{
  background-color: var(--brand-2-ui);
  color: var(--on-brand-2-ui);
}

/* Optional helpers you will likely want everywhere */
.FCBrand{ color: var(--brand-ui); }
.FCBrand2{ color: var(--brand-2-ui); }

.BorderBrand{ border-color: var(--brand-ui); }
.BorderBrand2{ border-color: var(--brand-2-ui); }

/* keep text readable on hover/focus (base.css forces a:hover color: var(--accent)) */
a.BGCBrand:hover, a.BGCBrand:focus-visible { color: var(--on-brand); text-decoration: none; }
a.BGCBrand2:hover, a.BGCBrand2:focus-visible { color: var(--on-brand-2); text-decoration: none; }
a.BGCPrimary:hover, a.BGCPrimary:focus-visible { color: inherit; text-decoration: none; }

