/* BRAND: UNITY IMPACT PARTNERS - the LIGHT system.
   Tokens from reference_uip_qt_brand_systems: Arial, navy #1B2A4A, teal #2A7E82,
   gold #C9A84C, white ground with a navy border, "Vision to Impact."

   THE ONE DANGEROUS COLOR, measured not eyeballed:
     #C9A84C on #ffffff  = 2.29:1   FAILS AA at every size
     #C9A84C on #F7F8FA  = 2.15:1   FAILS
     #C9A84C on navy     = 6.22:1   passes
   So on this LIGHT theme gold is FILL, RULE and BORDER only, and never text. Where the dark
   theme uses gold as an accent TEXT color, this file redirects that role to navy or to the
   darker teal #20696d (5.98:1 on #F7F8FA - the plain #2A7E82 measures 4.49:1, which is 0.01
   under AA and was caught by probe on 2026-09-25).

   Structure lives in theme.css. This file only redefines tokens and the few places where a
   light ground needs a different role, so a structural fix reaches both brands at once. */
:root{
  --bg:#F7F8FA;
  --ground:#ffffff;
  --panel:#ffffff;
  --panel2:#F7F8FA;
  --ink:#2B2B2B;
  --head:#1B2A4A;
  --muted:#667085;
  --gold:#C9A84C;          /* fills, rules, borders. NEVER text on this ground. */
  --teal:#20696d;          /* the AA-safe teal; used where teal must be readable */
  --blue:#1B2A4A;
  --ok:#1f7a3f;
  --warn:#8a6d1f;
  --bad:#a12b2b;
  --line:#E4E7EC;
  --line2:#cfd4dc;
}
body{font-family:Arial,Helvetica,sans-serif;}

/* The UIP document system is a white sheet inside a navy border. */
header.top{background:var(--ground);border-bottom:2px solid var(--head);}
.mark .n{color:var(--head);letter-spacing:.02em;}
.mark .t{color:var(--teal);font-weight:700;}
.who{background:var(--panel2);border-color:var(--line);color:var(--muted);}
.who b{color:var(--head);}

nav.tabs{background:var(--panel2);border-bottom:1px solid var(--line);}
nav.tabs a{color:var(--muted);}
nav.tabs a:hover{color:var(--head);}
nav.tabs a.on{color:var(--head);border-bottom-color:var(--gold);}

.sheet,section.blk{background:var(--ground);border-color:var(--line);}
section.blk{box-shadow:0 1px 3px rgba(27,42,74,.06);}
.kpi{background:var(--panel2);border-color:var(--line);}
.kpi .v{color:var(--head);}
.card{background:var(--panel2);border-color:var(--line);}
th{background:var(--head);color:#fff;}
tr:hover td{background:var(--panel2);}

/* Buttons: gold GROUND with near-black text is 9.4:1 and keeps the brand accent. */
button,.btn{background:var(--gold);color:#1a1204;}
button.ghost{background:transparent;color:var(--head);border:1px solid var(--line2);}

input[type=text],textarea,.filterbar select{background:#fff;color:var(--ink);
  border-color:var(--line2);}

/* Status pills: on a light ground these must be TEXT-legible, so each uses its own
   AA-safe ink rather than the accent it names. */
.pill{border-color:var(--line2);}
.pill.live{color:var(--ok);border-color:var(--ok);}
.pill.build{color:var(--warn);border-color:var(--warn);}
.pill.none{color:var(--bad);border-color:var(--bad);}

.msg{background:var(--panel2);border-color:var(--line);}
.msg .h b{color:var(--head);}      /* was gold - fails as text on white */
.msg.me{border-left-color:var(--teal);}
.chat .empty,.empty{background:var(--panel2);border-color:var(--line2);}
.empty h3{color:var(--head);}
.drop{background:var(--panel2);border-color:var(--line2);color:var(--muted);}
.drop.hot{border-color:var(--gold);color:var(--head);}
footer.site{background:var(--panel2);border-top:1px solid var(--line);}
a{color:var(--teal);}

/* Empty state. A figure with no real data behind it shows a dash, never
   an invented number with its warning label removed. Real data replaces
   this on upload. */
.zx-empty{color:#8a8f98;font-weight:400}
.zx-empty::after{content:'';}
