/* =============================================================
   paystub-brand.css
   Brand alignment stylesheet for paystub.burbank.gop
   Matches burbank.gop visual identity
   Apply by linking AFTER the existing site stylesheet.
   ============================================================= */

/* 1. DESIGN TOKENS
   Replace existing :root entirely with these tokens from burbank.gop */
:root {
  --paper:       #f7f5ef;   /* warm off-white page background */
  --paper-warm:  #fff8f1;   /* card / panel surfaces */
  --white:       #ffffff;
  --ink:         #172032;   /* primary body text */
  --ink-soft:    #242c3c;
  --muted:       #596276;   /* secondary / supporting text */
  --navy:        #101f4d;   /* headings, brand authority */
  --navy-soft:   #183876;   /* KPI band, section backgrounds */
  --blue:        #285da8;   /* links, interactive accent */
  --red:         #c91f2f;   /* primary CTA, alerts, OT flag */
  --red-dark:    #981827;   /* red hover */
  --gold:        #f6cd62;   /* accent highlight (use sparingly) */
  --gold-deep:   #c7a54d;   /* gold hover / border */
  --hairline:    rgba(16, 31, 77, 0.16);
  --line:        rgba(16, 31, 77, 0.14);
  --line-strong: rgba(16, 31, 77, 0.26);
  --shadow-sm:   0 12px 28px rgba(16, 31, 77, 0.08);
  --shadow:      0 18px 50px rgba(16, 31, 77, 0.13);
  --radius:      8px;
  --max:         1080px;
}

/* 2. GLOBAL BODY & TYPOGRAPHY */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

/* 3. HEADER / TOPBAR */
.topbar {
  background: rgba(247, 245, 239, 0.96);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 24px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

/* Logo / brand cluster */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.brand strong {
  display: block;
  color: var(--navy);
  font-weight: 760;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Remove old .seal lettermark */
.seal { display: none; }

/* Eyebrow / subdomain badge */
.eyebrow {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sign In link */
.signin {
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 760;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.signin:hover { background: var(--red-dark); }

/* 4. KPI / METRICS HERO BAND */
.hero {
  background: var(--navy-soft);
  color: var(--white);
  padding: 28px 26px 16px;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--red);
  padding-left: 12px;
  margin-bottom: 20px;
}

.metric {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.metric .lab {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.metric .val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 4px 0;
}

/* Overtime value */
.metric .val.red { color: var(--red); }

.metric .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Gold highlight for key sub-figures */
.metric .sub b { color: var(--gold); }

/* 5. TAB NAVIGATION */
.tabs {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 0 20px;
  display: flex;
  gap: 0;
}

.tab {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 18px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover { color: var(--navy); }

.tab.on {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Count pill badge (e.g. "1858" next to The Ledger) */
.pill {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 6. PUBLIC RECORD BANNER */
.banner.pub {
  background: rgba(16, 31, 77, 0.06);
  border: 1px solid rgba(16, 31, 77, 0.16);
  border-radius: var(--radius);
  color: var(--navy);
  padding: 12px 16px;
  font-size: 14px;
}
.banner.pub b { color: var(--navy); }
.banner.pub .ic { color: var(--blue); }

/* 7. SEARCH CONTROLS & FORM ELEMENTS */
.controls {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search input,
#q {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-family: Inter, sans-serif;
  padding: 9px 14px 9px 36px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus,
#q:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 93, 168, 0.12);
  outline: none;
}

.selbox {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-family: Inter, sans-serif;
  padding: 9px 12px;
  cursor: pointer;
}
.selbox:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 93, 168, 0.12);
  outline: none;
}

/* 8. DATA TABLE / LEDGER */
.ledger,
#ledger {
  background: var(--white);
}

/* Table header row */
.lhead {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 20px;
}

/* Sortable column header buttons */
.lhead button {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-family: Inter, sans-serif;
}
.lhead button.sorted { color: var(--navy); }

/* Data rows */
.lrow {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  transition: background 0.1s;
}
.lrow:hover { background: var(--paper-warm); }
.lrow:nth-child(even) { background: var(--paper); }
.lrow:nth-child(even):hover { background: var(--paper-warm); }

/* Employee name */
.lrow .nm {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

/* Job title */
.lrow .nm small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* Numeric values */
.lrow .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* OT flag badge */
.ot.flag,
.flag {
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  margin-left: 6px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* 9. LOAD MORE BUTTON */
.loadmore {
  background: rgba(247, 245, 239, 0.75);
  color: var(--navy);
  border: 1.8px solid rgba(16, 31, 77, 0.24);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 760;
  font-family: Inter, sans-serif;
  cursor: pointer;
  display: block;
  margin: 20px auto;
  transition: background 0.15s, border-color 0.15s;
}
.loadmore:hover {
  background: var(--white);
  border-color: var(--navy);
}

/* 10. FOOTER */
.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 28px 26px;
  text-align: center;
}
.foot b { color: var(--navy); font-weight: 700; }
.foot a { color: var(--blue); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* 11. SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* 12. RESPONSIVE / MOBILE */
@media (max-width: 640px) {
  .metrics { flex-direction: column; }
  .metric {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .controls { flex-direction: column; }
  .search input,
  #q,
  .selbox { width: 100%; }
  .topbar .brand small { display: none; }
}

/* fix: keep logo beside the wordmark (legacy .brand used flex-direction:column) */
.topbar .brand { flex-direction: row; flex: 0 0 auto; }
.topbar .brand span { display: flex; flex-direction: column; justify-content: center; }

/* ── House rules (Burbank Republican Party) ─────────────────────────────────
   1) Never render type in ALL CAPITALS. The rule below neutralises every
      text-transform:uppercase across both stylesheets — and anything added
      later. text-transform affects letter case only; it never alters layout.
   2) Never break the party name. .brand strong / .brand small are nowrap above.
   ─────────────────────────────────────────────────────────────────────────── */
* { text-transform: none !important; }
/* Labels that used to be drawn in wide-tracked capitals get gentle, normal-case
   tracking so they read cleanly in sentence / Title case. */
.brand .eyebrow, .eyebrow, .hero .kicker, .kicker, .metric .lab, .lhead,
.lhead button, .dhead .dept, .ccell .l, .sect-t, .vx .vxh .t,
.bdr-ctl label, .bdr-stat .s .l, .ot-ticker-label {
  letter-spacing: 0.02em !important;
}
