/* Staff 360 · design tokens (from design-handoff/design-tokens.css, paths made absolute).
   Self-hosted Inter (variable, weights 100–900; licence in /brand/fonts/Inter-LICENSE.txt). */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/brand/fonts/InterVariable.woff2) format("woff2")}

/* =====================================================================
   Staff 360 · by Regional & Branch Management — design tokens
   Source of truth for colours, theme, motion and brand placement.
   Font: Inter (400/500/600/700/800/900, plus 300 for the "360").
   ===================================================================== */

/* ---------- Theme: set class on <html> or <body>: t-light | t-dark ---------- */
.t-light{
  --bg:#F4F4F5; --card:#FFFFFF; --text:#0A0A0A; --muted:#52525B;
  --line:#E4E4E7; --soft:#F4F4F5; --border:#D4D4D8; --track:#E4E4E7;
  --btn:#0A0A0A; --btnText:#FFFFFF;              /* primary neutral button */
  --hover:#FDEDED;                                /* row hover tint (light red) */
  --green:#15803D; --greenText:#15803D; --greenSoft:#DCFCE7;   /* done / at post / submitted */
  --redSoft:#FDE8E8; --redText:#B91C1C;           /* behind / action needed */
  --th:#18181B;                                   /* table header */
  --brand:#EC1E25;                                /* CBG red (same in both themes) */
  --scrim:rgba(10,10,11,.55);                     /* behind pop-ups */
}
.t-dark{
  --bg:#0A0A0B; --card:#18181B; --text:#FAFAFA; --muted:#A1A1AA;
  --line:#27272A; --soft:#232326; --border:#3F3F46; --track:#2E2E33;
  --btn:#FAFAFA; --btnText:#0A0A0A;
  --hover:#2A1517;
  --green:#15803D; --greenText:#4ADE80; --greenSoft:#0F2A1A;
  --redSoft:#2A1517; --redText:#F87171;
  --th:#000000;
  --brand:#EC1E25;
  --scrim:rgba(0,0,0,.7);
}
/* Brand red is fixed in both themes: #EC1E25 (headings, main Submit, the 360, alerts).
   No yellow/amber anywhere. No blue/indigo tones. Status = green (done) or red (behind). */

/* ---------- Logo switching ---------- */
.t-light .only-dark{display:none!important}
.t-dark  .only-light{display:none!important}
/* <img class="only-light" src="/brand/cbg-logo-light.png">  black lettering, for light theme
   <img class="only-dark"  src="/brand/cbg-logo-dark.png">   white lettering, for dark theme
   cbg-logo-white.png = all-white logo, only on CBG-red surfaces (sign-in panel). */

/* ---------- Emblem watermark (fine-line CBG emblem) ---------- */
.t-light .wm-ink{background:url(/brand/cbg-emblem-lines-black.svg) center/contain no-repeat;opacity:.05}
.t-dark  .wm-ink{background:url(/brand/cbg-emblem-lines-white.svg) center/contain no-repeat;opacity:.06}
.wm-white{background:url(/brand/cbg-emblem-lines-white.svg) center/contain no-repeat}  /* on red or on the pop-up scrim */
.wmroot{position:relative;overflow:clip}             /* page root that carries a watermark */
.wmroot>header,.wmroot>main{position:relative;z-index:1}
/* Page watermark element (first child of .wmroot):
   <div class="wm-ink" aria-hidden="true" style="position:absolute;width:1000px;height:1000px;right:-400px;top:40px;pointer-events:none;z-index:0"></div>
   Pop-up watermark (first child of the scrim):
   <div class="wm-white" aria-hidden="true" style="position:absolute;width:1200px;height:1200px;left:-460px;bottom:-520px;opacity:.12;pointer-events:none"></div>
   Sign-in red panel: two .wm-red layers (white lines) — 1100px at right:-460px;bottom:-420px;opacity:.22 and 420px at left:-170px;top:-150px;opacity:.12. */

/* ---------- Motion ---------- */
.btn{transition:transform .15s ease, filter .15s ease}
.btn:hover{transform:translateY(-1px);filter:brightness(1.12)}

.lift{transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease}
.lift:hover{transform:translateY(-4px);box-shadow:0 18px 36px -18px rgba(0,0,0,.35)}

/* Branch-home task cards: whole card turns CBG red on hover (Apple-style) */
.task{transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, background-color .35s ease, color .35s ease}
.task:hover{transform:translateY(-8px) scale(1.012);background:#EC1E25!important;color:#FFFFFF!important;box-shadow:0 30px 60px -20px rgba(236,30,37,.55)}
.task .tk-muted,.task .tk-icon,.task .tk-btn,.task .tk-track,.task .tk-fill,.task .tk-chip{transition:all .35s ease}
.task:hover .tk-muted{color:rgba(255,255,255,.88)!important}
.task:hover .tk-icon{background:rgba(255,255,255,.18)!important;color:#FFFFFF!important}
.task:hover .tk-btn{background:#FFFFFF!important;color:#0A0A0A!important}
.task:hover .tk-track{background:rgba(255,255,255,.28)!important}
.task:hover .tk-fill{background:#FFFFFF!important}
.task:hover .tk-chip{background:#FFFFFF!important;color:#B91C1C!important}
.tk-arrow{transition:transform .35s ease}
.task:hover .tk-arrow{transform:translateX(6px)}

/* List rows (cards): tint + red ring + lift */
.row{transition:background-color .2s ease, box-shadow .25s ease, transform .25s ease}
.row:hover{background:var(--hover)!important;box-shadow:0 0 0 2px #EC1E25, 0 14px 30px -18px rgba(236,30,37,.5);transform:translateY(-2px)}
/* Flat list rows (inside a card): tint + 5px red left bar */
.row-flat{transition:background-color .18s ease, box-shadow .18s ease}
.row-flat:hover{background:var(--hover)!important;box-shadow:inset 5px 0 0 #EC1E25}
/* Table rows */
.trow td{transition:background-color .18s ease, box-shadow .18s ease}
.trow:hover td{background:var(--hover)!important}
.trow:hover td:first-child{box-shadow:inset 5px 0 0 #EC1E25}
.trow:hover .nm{color:#EC1E25}

/* Report cards */
.rep{transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .3s ease}
.rep:hover{transform:translateY(-6px);border-color:#EC1E25!important;box-shadow:0 26px 50px -24px rgba(236,30,37,.5)}
.rep:hover .rp-icon{background:#EC1E25!important;color:#FFFFFF!important}

/* Tabs, choice buttons, inputs */
.tab:hover{border-bottom-color:#EC1E25!important}
.pick:hover,.seg:hover,.opt:hover{border-color:#EC1E25!important}
.field:focus{outline:none;border-color:#EC1E25!important;box-shadow:0 0 0 4px rgba(236,30,37,.18)}

/* Pop-up entrance */
.pop{animation:pop .35s cubic-bezier(.2,.8,.2,1)}
@keyframes pop{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}

/* Staff 360 mark arc entrance (sign-in page only) */
.arc{transform-origin:24px 24px;animation:turn 1.4s cubic-bezier(.2,.8,.2,1) both}
@keyframes turn{from{transform:rotate(-120deg);opacity:0}to{transform:rotate(0);opacity:1}}

@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

/* ---------- Sizes ---------- */
/* Radius: cards 18–24px, buttons 12–16px, chips 999px.
   Touch targets ≥ 44px; primary buttons 56–62px tall, 18–20px bold text.
   Page max-width 1200–1240px, 32px side padding. H1 38–42px weight 800, CBG red. */

/* Sign-in red panel watermark (white lines) */
.wm-red{background:url(/brand/cbg-emblem-lines-white.svg) center/contain no-repeat}

/* ---------- Task names: the words ALL and ONLY (capitals, bold, another colour) ----------
   On ink (and grey) text: brand red. On red headings: the ink colour (black light, white dark).
   Contrast of brand red: 4.39:1 on light cards, 4.00:1 on the light page, 4.03:1 on dark cards,
   4.50:1 on the dark page (AA for large/bold text; under 4.5:1 for small text, owner's choice). */
.em-w{font-weight:800;color:var(--brand)}
.b3-h1 .em-w,.em-ink .em-w{color:var(--text)}
.task:hover .em-w{color:inherit}
