/* Golden State Signal — demo styles.
   Tokens copied from the live site's :root so this reads as one product,
   not a bolted-on tool. Keep these in sync if the main site's palette moves. */
/* The desk's charcoal (site/public/desk/desk.css): the demo, the sample
   runbooks and the tool now read as one product; the marketing site keeps
   its own cream and navy for now (Jay, 2026-09-20). Names are the old ones
   so no rule below changed: navy is now the raised panel, cream the page,
   gold the mint accent. */
:root {
  --navy: #171C22;
  --navy-2: #1E242C;
  --navy-3: #232A34;
  --cream: #101418;
  --cream-2: #171C22;
  --gold: #5FD3A6;
  --gold-deep: #5FD3A6;
  --poppy: #FF6B5B;
  --ink: #E6E9EE;
  --paper: #171C22;
  --muted: #8E96A3;
  --muted-dark: #AEB5C0;
  --line: #262C35;
  --line-dark: #3A4250;
  --green: #5FD3A6;
  --green-bg: #12261E;
  --gold-bg: #2A2416;
  --poppy-bg: #2A1B1B;
  --mint: #5FD3A6;
  --mintink: #0B1A14;
  --amber: #F2B35C;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.55 "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 { font-family: "Work Sans", system-ui, sans-serif; font-weight: 600; margin: 0 0 10px; }
h1 { font-size: 34px; letter-spacing: -0.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--muted-dark); }
a { color: var(--gold-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

header.gs {
  background: var(--navy);
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
header.gs .bar { display: flex; align-items: center; justify-content: space-between; }
header.gs .brand { font-family: "Work Sans", system-ui, sans-serif; font-weight: 600; font-size: 18px;
                   color: var(--ink); text-decoration: none; }
header.gs nav a { color: var(--muted); text-decoration: none; font-size: 13.5px;
                  margin-left: 22px; }
header.gs nav a:hover { color: var(--ink); }
header.gs nav a.cta { background: var(--gold); color: var(--mintink); font-weight: 700;
                      padding: 8px 14px; border-radius: 7px; }

.banner {
  background: var(--navy-2); color: var(--ink);
  padding: 34px 0 30px; border-bottom: 1px solid var(--line);
}
.banner .eyebrow { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
                   color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.banner p { color: var(--muted); max-width: 640px; margin-bottom: 0; }
.banner .live-badge { display: inline-flex; align-items: center; gap: 6px;
                      font-size: 12px; color: var(--muted); margin-top: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
           box-shadow: 0 0 0 3px rgba(46,125,91,0.25); }

main { padding: 28px 0 60px; }

.dept-switch { display: flex; gap: 8px; margin-bottom: 22px; }
.dept-switch button {
  font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 16px;
  border-radius: 8px; border: 1px solid var(--line-dark); background: #171C22;
  color: var(--muted-dark); cursor: pointer;
}
.dept-switch button.active { background: var(--mint); color: var(--mintink); border-color: var(--mint); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #171C22; border: 1px solid var(--line-dark); border-radius: 12px; padding: 16px 18px; }
.stat .n { font-family: "Work Sans", system-ui, sans-serif; font-size: 25px; font-weight: 600; }
.stat .l { font-size: 11.5px; color: var(--muted-dark); text-transform: uppercase;
          letter-spacing: 0.05em; margin-top: 3px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.panel { background: #171C22; border: 1px solid var(--line-dark); border-radius: 14px;
         padding: 22px 24px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(20,20,30,0.04); }
.panel .sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
             color: var(--muted-dark); margin-bottom: 12px; }

/* ---------------------------------------------------------- filter panel
   Mirrors the real tool's search page: multi-select picksets for the two
   dimensions you combine most (department x category), then scalar inputs.
   Every control is live — there is no submit button, because nothing is
   submitted anywhere. All filtering happens in the browser. */
.filterpanel { padding: 18px 20px; }
.filterpanel label { display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted-dark); font-weight: 700; margin-bottom: 4px; }
.filterpanel input[type="text"], .filterpanel input[type="date"], .filterpanel select {
  font: inherit; font-size: 13.5px; width: 100%; padding: 8px 11px; border-radius: 8px;
  border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink);
}
.filterpanel input:focus, .filterpanel select:focus {
  outline: 2px solid var(--gold); outline-offset: -1px; background: #171C22; }

/* align-items:start matters: without it the two-option Departments box is
   stretched to match the 16-option Categories box and the panel grows ~100px
   of dead space, pushing every result below the fold. */
.picks { display: grid; grid-template-columns: 1fr 2.1fr; gap: 14px; margin-bottom: 12px;
  align-items: start; }
.pickset { border: 1px solid var(--line-dark); border-radius: 10px; background: var(--paper);
  padding: 9px 12px; }
.pickset .hd { display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; }
.pickset .lab { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted-dark); font-weight: 700; }
.pickset .acts a { font-size: 11px; margin-left: 9px; text-decoration: none; }
.pickset .acts a:hover { text-decoration: underline; }
/* Two columns, not three. At three the column is ~229px and the longest
   category ("Physical Security & Surveillance") wraps, which makes every row
   40px instead of 19px and leaves the box TALLER than at two columns.
   nowrap on .nm is belt-and-braces so a future long label truncates instead
   of silently re-inflating the panel. */
.pickset .opts.cols { columns: 2; column-gap: 18px; }
@media (max-width: 640px) { .pickset .opts.cols { columns: 1; } }
.pickset .opt { display: flex; gap: 6px; align-items: baseline; font-size: 12px;
  padding: 1.5px 0; cursor: pointer; break-inside: avoid; }
.pickset .opt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickset .opt input { width: auto; margin: 0; accent-color: var(--gold-deep); flex-shrink: 0; }
.pickset .opt .nm { flex: 1; }
.pickset .opt .ct { color: var(--muted-dark); font-size: 11px; flex-shrink: 0;
  font-variant-numeric: tabular-nums; }
.pickset .opt.empty .nm, .pickset .opt.empty .ct { opacity: 0.4; }
.pickset .hint { font-size: 10.5px; color: var(--muted-dark); margin-top: 7px; }

.filterpanel .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; }
.filterpanel .grid .wide { grid-column: span 2; }
@media (max-width: 900px) {
  .picks { grid-template-columns: 1fr; }
  .filterpanel .grid { grid-template-columns: repeat(2, 1fr); }
  .filterpanel .grid .wide { grid-column: span 2; }
}

.filterpanel .actions { display: flex; align-items: center; gap: 12px; margin-top: 13px;
  padding-top: 12px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.filterpanel .actions .spacer { flex: 1; }
.filterpanel .chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink);
  margin: 0; cursor: pointer; }
.filterpanel .chk input { width: auto; accent-color: var(--gold-deep); }
.matchcount { font-size: 12.5px; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.matchcount b { color: var(--ink); font-weight: 700; }
.filterpanel .clear { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: none; border: 1px solid var(--line-dark); border-radius: 7px;
  padding: 6px 12px; color: var(--muted-dark); }
.filterpanel .clear:hover { background: var(--paper); color: var(--ink); }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;
  align-items: start; }
.twocol .panel { margin-bottom: 0; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }

.empty-state { font-size: 13px; color: var(--muted-dark); padding: 14px 0; }
.stale { color: var(--muted-dark); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-dark); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
     color: var(--muted-dark); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.rowcount { font-size: 12px; color: var(--muted-dark); margin-top: 8px; }

.bar-chart .row { display: grid; grid-template-columns: 200px 1fr 90px; align-items: center;
                  gap: 10px; margin-bottom: 7px; font-size: 13px; }
.bar-chart .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-chart .track { background: var(--paper); border-radius: 4px; height: 16px; overflow: hidden; }
.bar-chart .fill { background: var(--gold-deep); height: 100%; border-radius: 4px; }
.bar-chart .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-dark); }

.tier-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
             padding: 3px 9px; border-radius: 20px; display: inline-block; }
.tier-badge.confirmed { background: var(--green-bg); color: var(--green); }
.tier-badge.publicized { background: var(--gold-bg); color: var(--gold-deep); }
.tier-badge.inferred { background: var(--poppy-bg); color: var(--poppy); }
.harvested-flag { font-size: 10.5px; color: var(--muted-dark); margin-left: 6px; }
.harvested-flag::before { content: "read from PO text"; }

/* ------------------------------------------------------- record pagination
   The record table is the longest thing on the page and used to push the
   workforce panel far below it. Cap it and give it its own scroll: the
   pointer inside the box scrolls rows, outside it scrolls the page.
   overscroll-behavior:contain stops the page from lurching onward when the
   inner list hits its end. */
.tablebox { max-height: 430px; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line-dark); border-radius: 8px; }
.tablebox table { margin: 0; }
.tablebox thead th { position: sticky; top: 0; z-index: 1; background: #171C22;
  box-shadow: inset 0 -1px 0 var(--line-dark); }
.tablebox td:first-child, .tablebox th:first-child { padding-left: 12px; }

.pager { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.pager .rowcount { margin: 0; flex: 1; }
.pgbtns { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.pgbtns button { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: #171C22; border: 1px solid var(--line-dark); border-radius: 7px;
  padding: 5px 11px; color: var(--ink); }
.pgbtns button:hover:not(:disabled) { background: var(--paper); }
.pgbtns button:disabled { opacity: 0.4; cursor: default; }

/* ------------------------------------------------- workforce signal legend */
.signal-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 14px 0 16px; }
@media (max-width: 820px) { .signal-key { grid-template-columns: 1fr; } }
.signal-key .sk { background: var(--paper); border: 1px solid var(--line-dark);
  border-radius: 10px; padding: 12px 14px; }
.signal-key .sk-h { font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  margin-bottom: 5px; color: var(--ink); }
.signal-key .sk:nth-child(2) { border-color: rgba(201,150,43,0.45);
  background: var(--gold-bg); }
.signal-key .sk p { font-size: 12.5px; margin: 0; line-height: 1.5; }

.wf-role { font-size: 12px; color: var(--muted-dark); margin-top: 3px; }
.wf-role b { color: var(--ink); font-weight: 600; }
.wf-row { border-bottom: 1px solid var(--line-dark); padding: 12px 0; }
.wf-row:last-child { border-bottom: 0; }
.wf-tech { font-weight: 700; font-size: 14px; }
.wf-evidence { font-size: 13px; color: var(--muted-dark); font-style: italic; margin: 4px 0; }
.wf-source { font-size: 12px; }
.confidence-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
                  padding: 2px 7px; border-radius: 10px; margin-left: 8px; font-weight: 700; }
.confidence-tag.explicit { background: var(--green-bg); color: var(--green); }
.confidence-tag.implied { background: var(--gold-bg); color: var(--gold-deep); }

.gate {
  background: var(--navy); color: var(--ink); border-radius: 14px;
  padding: 26px 28px; text-align: center; margin-top: 8px;
}
.gate h3 { color: var(--ink); }
.gate p { color: var(--muted); max-width: 480px; margin: 0 auto 16px; }
.gate a.cta { display: inline-block; background: var(--gold); color: var(--mintink);
             font-weight: 700; padding: 11px 22px; border-radius: 8px; text-decoration: none;
             font-size: 14px; }

/* The two sample runbooks are the thing a visitor should open. Buttons, the
   same weight as Request a Briefing, not a sentence with links in it. */
.runbooks { background: var(--navy); color: var(--ink); border-radius: 14px;
            padding: 20px 24px; margin-bottom: 14px; display: flex; flex-wrap: wrap;
            gap: 14px 24px; align-items: center; justify-content: space-between; }
.runbooks-text { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.runbooks-text b { color: var(--ink); }
.runbooks-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.runbooks-btns.center { justify-content: center; }
.runbooks-btns a.btn { display: inline-block; background: var(--gold); color: var(--mintink);
                       font-weight: 700; padding: 11px 18px; border-radius: 8px;
                       text-decoration: none; font-size: 14px; }
.runbooks-btns a.btn:hover { filter: brightness(1.06); }
.runbooks-btns a.btn.alt { background: transparent; color: var(--ink);
                           border: 1px solid var(--muted); font-weight: 600; }
.locked-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
              color: var(--muted-dark); background: var(--paper); border: 1px dashed var(--line-dark);
              border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }

footer.gs { border-top: 1px solid var(--line-dark); padding: 22px 0; text-align: center;
           font-size: 12px; color: var(--muted-dark); }
footer.gs a { color: var(--gold-deep); }

/* ------------------------------------------------------------------ chat
   Floating guide. Sits above the page but never over the pager or the
   footer links on small screens. */
.gsc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; font: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  background: var(--navy); border: 1px solid var(--navy); border-radius: 26px;
  padding: 12px 20px; box-shadow: 0 6px 22px rgba(11,18,32,0.28); }
.gsc-fab:hover { background: var(--navy-2); }
.gsc-fab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,179,65,0.25); flex-shrink: 0; }

.gsc-window { position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: 380px; max-width: calc(100vw - 32px); height: 540px;
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: #171C22; border: 1px solid var(--line-dark); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11,18,32,0.30); overflow: hidden; }
.gsc-window[hidden] { display: none; }
.gsc-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 14px 16px; background: var(--navy); color: var(--ink); }
.gsc-head strong { font-family: "Work Sans", system-ui, sans-serif; font-size: 15px; font-weight: 600; }
.gsc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.gsc-close { background: none; border: 0; color: var(--muted); font-size: 22px;
  line-height: 1; cursor: pointer; padding: 0 2px; }
.gsc-close:hover { color: var(--ink); }

.gsc-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px; background: var(--cream); }
.gsc-msg { margin-bottom: 12px; font-size: 13.5px; line-height: 1.55; }
.gsc-msg p { margin: 0 0 8px; }
.gsc-msg p:last-child { margin-bottom: 0; }
.gsc-ai { color: var(--ink); }
.gsc-user { background: var(--navy); color: var(--ink); border-radius: 12px 12px 3px 12px;
  padding: 9px 13px; margin-left: auto; max-width: 85%; width: fit-content; }
.gsc-user p { color: var(--ink); }

.gsc-typing { display: flex; gap: 4px; padding: 4px 0 12px; }
.gsc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-dark);
  opacity: 0.4; animation: gsc-blink 1.3s infinite; }
.gsc-typing span:nth-child(2) { animation-delay: 0.18s; }
.gsc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes gsc-blink { 0%,60%,100% { opacity: 0.25; } 30% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .gsc-typing span { animation: none; } }

.gsc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px;
  background: var(--cream); }
.gsc-chip { font: inherit; font-size: 12px; cursor: pointer; background: #171C22;
  border: 1px solid var(--line-dark); border-radius: 16px; padding: 6px 12px;
  color: var(--ink); text-align: left; }
.gsc-chip:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.gsc-input-row { display: flex; gap: 8px; padding: 11px 12px;
  border-top: 1px solid var(--line-dark); background: #171C22; }
.gsc-input { flex: 1; font: inherit; font-size: 13.5px; resize: none;
  border: 1px solid var(--line-dark); border-radius: 9px; padding: 9px 11px;
  background: var(--paper); color: var(--ink); max-height: 110px; }
.gsc-input:focus { outline: 2px solid var(--gold); outline-offset: -1px; background: #171C22; }
.gsc-send { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--gold); color: var(--mintink); border: 0; border-radius: 9px;
  padding: 0 15px; }
.gsc-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 520px) {
  .gsc-fab { right: 12px; bottom: 12px; padding: 11px 16px; font-size: 13px; }
  .gsc-window { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 70px); }
}


/* ---- charcoal: what the tokens never reached ---------------------------- */
html { color-scheme: dark; }
input, select, textarea { background: var(--cream); color: var(--ink); border: 1px solid var(--line-dark); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 2px rgba(95,211,166,.18); }
button, .btn, a.cta { background: var(--mint); color: var(--mintink); }
th { background: var(--navy-2); color: var(--muted); }
th, td { border-bottom-color: var(--line); }
code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; color: var(--amber); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-dark); border-radius: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }

/* --paper was two things on the light site: the light text on navy panels and
   a light surface. In charcoal the surface is a panel and the text is ink, so
   every `color: var(--paper)` above reads var(--ink); the raised chat pieces
   get a step of their own so they stand off the window behind them. */
.gsc-user { background: var(--navy-2); border: 1px solid var(--line-dark); }
.gsc-fab { background: var(--mint); color: var(--mintink); border-color: var(--mint); }
.gsc-fab:hover { background: var(--mint); filter: brightness(1.06); }
