/* =====================================================
   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:     #4fb4d8;
--on-brand:    #ffffff;

--brand-2:     #cec0b7;
--on-brand-2:  #2f3a40;
/* =====================================================
   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: #0b0f14;
  --bg-soft: #111821;
  --bg-hard: #182230;

  --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; }

form button.Box.WFull,
form input[type="submit"].Box.WFull{
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ProDialogBackdrop{
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.42);
}

.ProDialogBackdrop[hidden]{
  display: none;
}

.ProDialog{
  width: min(420px, 100%);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.ProDialogMessage{
  line-height: 1.5;
}

.ProDialogActions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.ProDisabledCard{
  opacity: .46;
  cursor: not-allowed;
}

.ProDisabledCard:hover{
  cursor: not-allowed;
}

