/* SOURCE: clearpoint-build/code/graphite-light.css, copied verbatim below this comment
   (2026-09-28). Edit the pack and re-copy; never hand-edit it here. */

/* ============================================================
   Clearpoint Graphite — Light (the client portal)

   Load AFTER graphite.css. It overrides values only: every
   variable name, every class, every component is identical.
   That is what lets one component library serve both apps —
   a primitive reads var(--ink-2) and never knows which app
   it is in.

   Two things genuinely differ, and both are deliberate:
     1. the palette (a GC opens this outdoors, in sunlight)
     2. the density (44px targets, sometimes with gloves on)
   ============================================================ */

:root {
  /* -- grounds ------------------------------------------------ */
  --bg:        #F4F7FB;
  --surf:      #FFFFFF;
  --raise:     #EDF2F8;
  --over:      #FFFFFF;

  /* -- ink ---------------------------------------------------- */
  --ink:       #0D2B4E;   /* 13.27 on --bg — the brand navy */
  --ink-2:     #4A5F78;   /*  6.11 */
  --ink-3:     #6E8299;   /*  3.68 — FAILS AA. Decoration only:
                                    a timestamp also stated elsewhere,
                                    a placeholder, a column of units.
                                    Anything a client must read is --ink-2. */

  --rule:      #E1E8F0;
  --rule-2:    #CBD6E3;

  /* -- accent -------------------------------------------------
   * The interactive colour on light is the MID BLUE, not the
   * brand cyan. #29ABE2 as text on white is 2.44 and fails.    */
  --accent:    #1565C0;   /*  5.35 */
  --accent-h:  #0D47A1;   /*  8.03 */
  --accent-t:  rgba(21,101,192,0.08);
  --accent-b:  rgba(21,101,192,0.30);

  --ok:        #1B7F4B;   /*  4.67 */
  --warn:      #8A5A00;   /*  5.52 */
  --bad:       #C2303C;   /*  5.17 */
  --ok-t:      rgba(27,127,75,0.10);
  --warn-t:    rgba(138,90,0,0.10);
  --bad-t:     rgba(194,48,60,0.09);

  /* -- THE RULE, FLIPPED --------------------------------------
   * In HQ a label on a fill is near-black. Here it is WHITE:
   *   white on --accent  5.75  ✓
   *   white on --ok      5.02  ✓
   *   white on --bad     5.55  ✓
   * The one exception is the brand cyan, which is too light for
   * white anywhere. On a cyan fill the label is navy (5.44).
   * Cyan is a FILL ONLY in the portal — never text, never an icon. */
  --on-fill:   #FFFFFF;
  --cyan:      #29ABE2;
  --on-cyan:   #0D2B4E;

  --navy:      #081C34;   /* footer */

  --ph-from:   #DCE6F2;
  --ph-to:     #BFD1E6;

  /* -- type: one step larger across the board ----------------- */
  --t-display:  21px;  --t-display-lh:  26px;
  --t-title:    15px;  --t-title-lh:    22px;
  --t-body:     14px;  --t-body-lh:     21px;
  --t-small:    13px;  --t-small-lh:    20px;
  --t-meta:     11.5px;--t-meta-lh:     17px;
  --t-eyebrow:  10.5px;

  /* -- density: COMFORTABLE ----------------------------------- */
  --h-row:      44px;
  --h-head:     38px;
  --h-control:  40px;   /* 44px on the one primary action per view */
  --h-control-s:34px;
  --h-topbar:   62px;
  --w-rail:     0;      /* no rail — horizontal nav, then a tab bar */

  --shadow-over: 0 12px 30px rgba(13,43,78,.13), 0 1px 3px rgba(13,43,78,.10);
  --shadow-card: 0 1px 2px rgba(13,43,78,.05);

  --focus: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--accent);
}

.card { box-shadow: var(--shadow-card); }

/* The one primary action on a view is 44px — a thumb, outdoors. */
.btn--primary { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--primary.btn--sm { height: var(--h-control-s); padding: 0 12px; font-size: 12.5px; }

.field__box { background: var(--surf); border-color: var(--rule-2); }
.btn--secondary { background: var(--surf); border-color: var(--rule-2); }
.btn--ghost { color: var(--accent); }

/* Cyan is a fill only. If you are ever tempted to write
   color: var(--cyan) in the portal, that is the bug. */
.chip--cyan { background: var(--cyan); color: var(--on-cyan); }

/* ============================================================ mobile
   The portal is opened on a phone more than on a desktop.
   Four tabs, because a fifth makes every target narrower than a thumb. */
@media (max-width: 767px) {
  :root { --h-control: 44px; }
  .rail, .tabs--desktop { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px;
    background: var(--surf); border-top: 1px solid var(--rule);
    display: flex; align-items: center; padding: 0 6px 6px; z-index: 40; }
  .tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding-top: 9px; font-family: var(--font-head); font-weight: 600;
    font-size: 10.5px; color: var(--ink-3); text-decoration: none; }
  .tabbar__item[aria-current="page"] { color: var(--accent); font-weight: 700; }

  /* Pay, filter and share are SHEETS, not pages — the list stays
     behind them, so dismissing never loses your place. */
  .ov--modal-s, .ov--modal-m, .ov--modal-l, .ov--sheet {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto;
    border-radius: var(--r-modal) var(--r-modal) 0 0;
    max-height: 88vh; overflow: auto;
  }
  .ov__foot { position: sticky; bottom: 0; }

  /* A 44px minimum is not a guideline here. */
  .btn, .tab, .menu__item, .rail__item { min-height: 44px; }

  body { padding-bottom: 64px; }
}
