/* Lone Star UI: the shared look for every dashboard (home, admin, departments, staff, Civilian
   Services). Night navy with Texas red and a gold star accent; Archivo, wide cuts for display.
   Pages add their own layout on top; these are the tokens, the shell and the shared parts. */
:root {
  --ls-ground: #090B10;
  --ls-surface: #10131A;
  --ls-raised: #161A23;
  --ls-hover: #1C2130;
  --ls-line: #252B38;
  --ls-line-soft: #1A1F2A;
  --ls-ink: #F3F4F7;
  --ls-muted: #9AA1B2;
  --ls-faint: #646B7C;
  --ls-red: #E0263F;
  --ls-red-soft: rgb(224 38 63 / .14);
  --ls-navy: #3A5FC8;
  --ls-navy-soft: rgb(58 95 200 / .16);
  --ls-gold: #F2C15E;
  --ls-good: #4CCB8A;
  --ls-warn: #F2B84B;
  --ls-bad: #FF6B6B;
  --ls-r: 16px;
  --ls-r-sm: 10px;
  --ls-font: 'Archivo', system-ui, sans-serif;
  --ls-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ls-shadow: 0 18px 40px -24px rgb(0 0 0 / .8);
}
.ls { background: var(--ls-ground); color: var(--ls-ink); font: 400 14.5px/1.55 var(--ls-font); -webkit-font-smoothing: antialiased; min-height: 100vh; margin: 0; }
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }
.ls .hidden { display: none !important; }
.ls a { color: inherit; }
.ls-wide { font-variation-settings: 'wdth' 118; letter-spacing: -.01em; }
.ls-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ls-muted); }
.ls-eyebrow .star { color: var(--ls-red); margin-right: 6px; }

/* ---------- top bar ---------- */
.ls-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: rgb(9 11 16 / .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ls-line-soft); }
.ls-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--ls-red) 0 33%, #fff 33% 34%, var(--ls-navy) 34% 100%); opacity: .55; }
.ls-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.ls-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.ls-brand b { display: block; font-size: 15px; font-variation-settings: 'wdth' 112; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-brand small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ls-muted); }
.ls-top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ls-search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; border-radius: 11px; background: var(--ls-surface); border: 1px solid var(--ls-line); color: var(--ls-muted); font: inherit; font-size: 13.5px; cursor: pointer; min-width: 220px; }
.ls-search:hover { color: var(--ls-ink); border-color: #323a4c; }
.ls-search svg { width: 16px; height: 16px; }
.ls-search span { flex: 1; text-align: left; }
.ls-search kbd { font: 600 11px var(--ls-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--ls-line); }
@media (max-width: 640px) { .ls-search { min-width: 0; width: 38px; padding: 0; justify-content: center; } .ls-search span, .ls-search kbd { display: none; } .ls-brand small { display: none; } }

/* ---------- page ---------- */
.ls-page { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.ls-sec { margin-top: 30px; }
.ls-sec-h { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ls-sec-h h2 { margin: 0; font-size: 19px; font-variation-settings: 'wdth' 115; }
.ls-sec-h p { margin: 2px 0 0; color: var(--ls-muted); font-size: 13.5px; }
.ls-sec-h .ls-sec-r { margin-left: auto; display: flex; gap: 6px; }

/* ---------- buttons ---------- */
.ls-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ls-line); background: var(--ls-raised); color: var(--ls-ink); font: 600 13px var(--ls-font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.ls-btn:hover { background: var(--ls-hover); border-color: #323a4c; }
.ls-btn svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.ls-btn.primary { background: var(--ls-red); border-color: transparent; color: #fff; }
.ls-btn.primary:hover { background: #F03A52; }
.ls-btn.ghost { background: transparent; }
.ls-icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
.ls-icon-btn.on { background: var(--ls-hover); color: #fff; }

/* ---------- pills and stats ---------- */
.ls-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--ls-raised); border: 1px solid var(--ls-line); color: var(--ls-muted); white-space: nowrap; }
.ls-pill.gold { color: var(--ls-gold); border-color: rgb(242 193 94 / .35); background: rgb(242 193 94 / .08); }
.ls-pill.red { color: #FF8A99; border-color: rgb(224 38 63 / .4); background: var(--ls-red-soft); }
.ls-pill.mono { font-family: var(--ls-mono); color: var(--ls-ink); }
.ls-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ls-faint); display: inline-block; }
.ls-dot.live { background: var(--ls-good); box-shadow: 0 0 0 3px rgb(76 203 138 / .18); }
