/* ============================================================================
   HitchAI global search — shared styles for the inline (home omni) dropdown,
   the Ctrl/Cmd-K palette, and the topbar trigger. Token-driven per the
   Universal UX Guide (§7 modal/finder reference); fallbacks cover pages that
   don't load hitch-tokens.css.
   ========================================================================== */

/* ---- topbar trigger: a wide search box (2026-10-30) ----
   It looks like a field and opens the Ctrl/Cmd-K palette. In a top bar it
   GROWS into the free space the menus leave (flex-grow), from a 140px floor
   (under the old pill's 148px) to a 420px cap — so the menus keep priority and fold
   into More no sooner than they did beside the pill (a 200px floor folded a
   menu at 1150-1250px on four pages, measured 2026-10-30). Under 760px it is
   the small pill again, label "Search" only. The home page shows none: its
   own box is the page (global-search.js init). */
.gs-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  flex: 2 1 140px; min-width: 140px; max-width: 420px; line-height: 1.2;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.8rem; letter-spacing: 0; text-transform: none; text-align: left;
  color: var(--ink-faint, #8a877c);
  background: color-mix(in srgb, var(--ink, #f4f1ea) 4%, transparent);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 4px 6px 4px 13px; cursor: text;
  transition: all 0.2s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  white-space: nowrap; margin-left: 10px;
}
.gs-trigger:hover { color: var(--ink-dim, #9a988f); border-color: var(--ink-dim, #9a988f); }
.gs-trigger .gs-glyph { color: var(--accent-ink,var(--accent, #e8a13c)); font-size: 0.95rem; flex: none; }
.gs-trigger .gs-tl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; contain: inline-size; }
/* contain: the hint text adds nothing to the box's own minimum width — without
   it the long hint made the box refuse to shrink inside a contracts .h-actions,
   and the page scrolled sideways at 800-900px */
.gs-trigger kbd {
  flex: none; margin-left: auto;
  font-family: var(--mono, "Inter", system-ui, sans-serif); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 1px 7px;
}
/* a contracts page keeps the box in its header's .h-actions, which does not
   grow — so let that cluster take the header's free space (its items stay at
   the right) and the box grow inside it, by the same floor and cap. :where()
   keeps this below any page's own .h-actions rule (search.html's flex:none). */
@media (min-width: 761px) {
  :where(body > header .h-actions:has(> .gs-trigger)) { flex: 1 1 auto; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .gs-trigger {
    flex: none; min-width: auto; max-width: none; padding: 4px 8px 4px 12px; gap: 7px;
  }
  .gs-trigger .gs-tl-more { display: none; }
  .gs-trigger .gs-tl { contain: none; }   /* the pill is as wide as "Search" */
}

/* ---- palette overlay + sheet ---- */
.gs-overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: color-mix(in srgb, var(--bg, #050608) 78%, transparent); backdrop-filter: blur(3px);
}
.gs-overlay.open { display: block; }

/* ---- pattern G: the ⌘K palette as a native-G surface (openPalette) ---- */
.gs-gsurface {
  /* theme-aware dim: the results sit directly on this scrim, so it must follow
     --bg (dark in dark mode, cream in light) or --ink text goes unreadable */
  background:
    radial-gradient(80% 55% at 50% 0, rgba(232, 161, 60, 0.10), rgba(232, 161, 60, 0) 55%),
    color-mix(in srgb, var(--bg, #0a0b0d) 90%, transparent);
  backdrop-filter: blur(8px) saturate(1.1); overflow-y: auto;
}
/* Wide enough for the console below it; the head and the field stay at the
   reading width they were designed for and centre inside it, which is the
   mockup's own composition — a centred field over a wider result surface. */
.gs-gcard { width: min(1180px, 94vw); margin: 12vh auto 0; padding: 0 6px 10vh; }
.gs-ghead, .gs-gfield { width: min(880px, 100%); margin-left: auto; margin-right: auto; }
.gs-ghead { display: flex; align-items: center; gap: 12px; padding: 0 4px 14px; }
.gs-gorb { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 14px rgba(232, 161, 60, 0.32)); }
.gs-gmark { font-family: var(--serif, "Instrument Serif", Georgia, serif); font-size: 1.7rem; color: var(--ink, #f4f1ea); line-height: 1; }
.gs-gmark i { font-style: italic; color: var(--accent-ink,var(--accent, #e8a13c)); }
.gs-gkbd {
  margin-left: auto; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #6b675d); border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 5px; padding: 3px 7px;
}
.gs-gfield {
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)), var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1)); border-radius: 16px;
  padding: 1rem 1.1rem; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gs-gfield:focus-within { border-color: rgba(232, 161, 60, 0.45); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(232, 161, 60, 0.1); }
.gs-gfield input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink, #f4f1ea); font-size: 1.02rem; font-weight: 300; font-family: var(--sans, "Inter", system-ui, sans-serif); }
.gs-gfield input::placeholder { color: var(--ink-faint, #6b675d); }
.gs-gsurf { margin-top: 6px; }
.gs-sheet {
  width: min(640px, 92vw); margin: 12vh auto 0;
  background: var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
}
.gs-inputrow {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
}
.gs-inputrow .gs-glyph { color: var(--accent-ink,var(--accent, #e8a13c)); font-size: 1.05rem; }
.gs-inputrow input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink, #f4f1ea); font-size: 1rem; font-weight: 300;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}
.gs-inputrow input::placeholder { color: var(--ink-faint, #8a877c); }
.gs-kbd {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 4px; padding: 2px 6px;
}

/* ============================================================================
   THE RESULTS CONSOLE — three panes over one result set.
   Design + rationale: docs/global-search-v3-console-design.md; the approved
   mockup is mockups/global-search-results-v3.html (direction A, with direction
   C's row typography).

     .gs-rail   where the matches are — every domain the query touched, with its
                full match count and a bar proportional to it
     .gs-res    the ranked list: badge gutter, serif name, facets, value
     .gs-pv     the active row, previewed from the index alone

   The rail and the preview are chrome a NARROW skin cannot afford, so below
   1080px both are display:none and .gs-res is exactly the single column this
   panel used to be. Nothing in the JS branches on width.
   ========================================================================== */
.gs-panel { display: none; }
.gs-panel.open { display: block; }
/* The panel positions; the CONSOLE inside it carries the surface (card, border,
   shadow). One card, whichever skin is mounted — an inline dropdown that drew
   its own border around a console that draws one too reads as two panels. */
.gs-panel.gs-inline {
  position: absolute; top: calc(100% + 8px); left: -1px; right: -1px; z-index: 60;
}
.gs-panel.gs-inline .gs-res { max-height: min(58vh, 520px); overflow: hidden auto; }
.gs-panel.gs-palette .gs-res { max-height: 56vh; overflow: hidden auto; }

.gs-console {
  display: grid; grid-template-columns: 206px minmax(0, 1fr) 348px;
  background: var(--bg-soft, #101216);
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
}
/* The preview needs a card's worth of height whatever the list found — a
   two-row query would otherwise scroll the headline, the tiles and the actions
   inside 90 pixels. The plain skin has no preview and takes its rows' height. */
.gs-console { min-height: 340px; }
.gs-console.gs-plain { grid-template-columns: minmax(0, 1fr); min-height: 0; }
/* in-lane on the home surface: the console is the full width of the lane and
   its panes get their own scroll, so the page never scrolls to reach a row */
.gs-panel.gs-surface .gs-res, .gs-panel.gs-surface .gs-pv {
  max-height: min(62vh, 640px); overflow: hidden auto;
}

/* ---- domain identity -------------------------------------------------------
   The badge hues below, promoted from badge-only to the domain's colour: one
   dot in the rail, one dot in the group header, one hairline on the active row.
   Desaturated on purpose — the platform gold stays the accent, and these only
   ever have to separate nine adjacent labels from each other. */
[data-dom] { --dh: var(--accent, #e8a13c); }
[data-dom="mkt"] { --dh: #e8a13c; } [data-dom="opp"]  { --dh: #e39b7d; }
[data-dom="civ"] { --dh: #9ecb8f; } [data-dom="ven"]  { --dh: #b3a0d6; }
[data-dom="agc"] { --dh: #8fb2d9; } [data-dom="bud"]  { --dh: #d9c08f; }
[data-dom="proj"]{ --dh: #c9b48c; } [data-dom="act"]  { --dh: #a8a08a; }
[data-dom="con"] { --dh: #7cc2b1; } [data-dom="veh"]  { --dh: #7cc2b1; }
[data-dom="ppl"] { --dh: #c39bd3; } [data-dom="it"]   { --dh: #8fb2d9; }
[data-dom="inv"] { --dh: #d6a38f; }
/* the light theme (explorer/appearance.js body.light) puts these on cream,
   where every one of them is too pale to read — darkened to the same hue */
body.light [data-dom="mkt"] { --dh: #a86f18; } body.light [data-dom="opp"]  { --dh: #b4643f; }
body.light [data-dom="civ"] { --dh: #4f8a44; } body.light [data-dom="ven"]  { --dh: #6f52a8; }
body.light [data-dom="agc"] { --dh: #3d6b9e; } body.light [data-dom="bud"]  { --dh: #8a7133; }
body.light [data-dom="proj"]{ --dh: #7d6b45; } body.light [data-dom="act"]  { --dh: #6b6552; }
body.light [data-dom="con"] { --dh: #227e69; } body.light [data-dom="veh"]  { --dh: #227e69; }
body.light [data-dom="ppl"] { --dh: #7a4f96; } body.light [data-dom="it"]   { --dh: #3d6b9e; }
body.light [data-dom="inv"] { --dh: #9a5a3e; }

/* ---- the rail ---- */
.gs-rail {
  border-right: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055));
  background: var(--bg-panel, #0d0f12); padding: 15px 0 10px;
}
.gs-railh, .gs-railf {
  font-family: var(--mono, "Inter",system-ui,sans-serif);
  color: var(--ink-faint, #6b675d);
}
.gs-railh {
  font-size:.6875rem; letter-spacing: 0.17em; text-transform: uppercase;
  padding: 0 16px 10px;
}
.gs-railf {
  font-size:.6875rem; line-height: 1.9; letter-spacing: 0.06em;
  margin-top: 12px; padding: 11px 16px 0;
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055));
}
.gs-railf b { color: var(--ink-dim, #9a988f); font-weight: 400; }
.gs-dom {
  display: block; width: 100%; text-align: left; position: relative;
  background: none; border: none; cursor: pointer; padding: 7px 16px 8px;
  transition: background 0.16s;
}
.gs-dom:hover { background: rgba(232, 161, 60, 0.08); }
.gs-dom.on { background: rgba(232, 161, 60, 0.14); }
.gs-dom.on::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--dh);
}
/* a domain the row budget never reached: its count is still the truth, but
   there is no row to jump to, so it is not a control */
.gs-dom.off { opacity: 0.45; cursor: default; }
.gs-dom.off:hover { background: none; }
.gs-domtop { display: flex; align-items: baseline; gap: 7px; }
.gs-domdot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--dh);
  flex: none; position: relative; top: -1px;
}
.gs-domnm {
  flex: 1; min-width: 0; font-size: 0.84rem; color: var(--ink-dim, #9a988f);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gs-dom.on .gs-domnm { color: var(--ink, #f4f1ea); }
.gs-domct {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  font-variant-numeric: tabular-nums; color: var(--ink-faint, #6b675d);
}
.gs-dom.on .gs-domct { color: var(--dh); }
.gs-dombar {
  display: block; height: 3px; margin-top: 6px; border-radius: 2px;
  background: var(--line-soft, rgba(244, 241, 234, 0.055)); overflow: hidden;
}
.gs-dombar i { display: block; height: 100%; background: var(--dh); opacity: 0.72; }
.gs-dom.on .gs-dombar i { opacity: 1; }
/* the defense book is a LADDER: projects and activities are grains of the row
   above them, not siblings of Vendors. Indenting says so without spending the
   same three words on three lines. */
.gs-dom.kid { padding-left: 29px; }
.gs-dom.kid .gs-domnm { font-size: 0.8rem; color: var(--ink-faint, #6b675d); }
.gs-dom.kid .gs-domnm::before {
  content: "└ "; color: var(--line, rgba(244, 241, 234, 0.1));
  font-family: var(--mono, "Inter",system-ui,sans-serif);
}
.gs-dom.kid.on .gs-domnm { color: var(--ink-dim, #9a988f); }

/* ---- group headers ---- */
.gs-group {
  display: flex; align-items: baseline; gap: 9px;
  padding: 15px 18px 7px; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, var(--bg-soft, #101216) 72%, transparent);
  backdrop-filter: blur(6px);
}
.gs-gdot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--dh);
  flex: none; position: relative; top: -2px;
}
.gs-gnm {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--dh);
  white-space: nowrap;
}
.gs-grule { flex: 1; height: 1px; background: var(--line-soft, rgba(244, 241, 234, 0.055)); }
.gs-gcount, .gs-gall {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.08em; color: var(--ink-faint, #6b675d);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.gs-gall {
  background: none; border: none; border-bottom: 1px solid transparent;
  cursor: pointer; padding: 0; transition: color 0.15s;
}
.gs-gall:hover, .gs-gall:focus-visible {
  color: var(--accent-ink,var(--accent, #e8a13c)); border-color: currentColor; outline: none;
}

/* ---- a result row ---------------------------------------------------------
   Badges run from TO to SA-IDIQ, so leading them ragged-left starts every name
   at a different x and there is no column to scan. Right-aligned in a fixed
   gutter, the names share one axis and the badges read as their own strip.

   The gutter is 120px because the widest badge is now PRESOLICITATION, not
   SUBACTIVITY. It was 82px while every opportunity badge was a four-to-six
   letter bucket (EARLY / OPEN); naming the real SAM notice type instead is
   what bought the extra 38px, taken out of the name column, which ellipsizes
   anyway.
   ⚠ MEASURE A NEW LABEL, DO NOT COMPUTE IT. The first pass here reasoned from
   0.5rem mono + 0.12em tracking at ~0.6em/char and set 104px; PRESOLICITATION
   actually renders 109 and overhung the gutter, because the generic `monospace`
   fallback is wider than that (JetBrains Mono may not have loaded, and sizing
   for the loaded font alone is sizing for the lucky case). Measured in a real
   browser at the fallback: PRESOLICITATION 109, SOURCES SOUGHT / SPECIAL NOTICE
   102.5, SURPLUS SALE / SOLICITATION 89.6, SUBACTIVITY 83.1.
   The extra 4px over that widest label buys the LIVE DOT (3.9px + the column's
   4px gap), which .gs-bdgcol puts beside the badge on a live-resolver row.
   That row's badge is now its real notice type (any label up to
   PRESOLICITATION) and the pair fits — the margin is here so the gutter holds without depending on which
   badges happen to be able to appear next to a dot.
   .gs-bdg is `flex: none; white-space: nowrap`, so an over-long badge does not
   wrap or shrink — it overhangs the row's left edge, into the panel's padding,
   where nothing clips it. */
.gs-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; position: relative;
  padding: 8px 18px; transition: background 0.13s;
}
.gs-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--dh); opacity: 0; transition: opacity 0.13s;
}
.gs-row:hover { background: rgba(232, 161, 60, 0.08); }
.gs-row.on { background: rgba(232, 161, 60, 0.14); }
.gs-row.on::before { opacity: 1; }
.gs-bdgcol { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.gs-mid { min-width: 0; }
/* display:block is load-bearing — an inline span ignores overflow:hidden, and a
   long award title then runs straight under the value column. */
.gs-name {
  display: block; min-width: 0;
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.08rem; font-weight: 400; line-height: 1.25;
  color: var(--ink, #f4f1ea); letter-spacing: 0.004em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-name b { color: var(--accent-ink,var(--accent, #e8a13c)); font-weight: 400; font-style: italic; }
.gs-sub { display: flex; align-items: baseline; gap: 7px; min-width: 0; margin-top: 2px; }
.gs-org {
  font-family: var(--sans, "Inter", system-ui, sans-serif); font-size: 0.76rem;
  color: var(--ink-dim, #9a988f);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-kind {
  flex: none; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-faint, #6b675d);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-org:not(:empty) + .gs-kind::before {
  content: "·"; margin-right: 7px; color: var(--line, rgba(244, 241, 234, 0.1));
}
/* the value — the figure the builder already computed to RANK the row, which is
   also the one that decides whether the row is worth a click */
.gs-val {
  text-align: right; white-space: nowrap;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.78rem;
  font-variant-numeric: tabular-nums; color: var(--ink, #f4f1ea);
}
.gs-val.gs-due { color: var(--accent-ink,var(--accent, #e8a13c)); }
.gs-val.gs-past { color: var(--ink-faint, #6b675d); }
.gs-val i {
  display: block; font-style: normal; font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-faint, #6b675d); margin-top: 2px;
}

/* ---- entity-type badges (v2) — semantic hue, desaturated so the gold
       accent stays the accent; codes in docs/global-search-v2-design.md ---- */
.gs-bdg {
  flex: none; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 1.5px 5px;
  position: relative; top: -1px; white-space: nowrap;
}
.gs-bdg-ma { color: #e0b268; border-color: rgba(232, 161, 60, 0.4); }
.gs-bdg-fs { color: #d9c08f; border-color: rgba(240, 201, 138, 0.32); }
.gs-bdg-bp { color: #7cc2b1; border-color: rgba(124, 194, 177, 0.35); }
.gs-bdg-to { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.35); }
.gs-bdg-df { color: #a3c48e; border-color: rgba(163, 196, 142, 0.35); }
.gs-bdg-sa { color: #b3a0d6; border-color: rgba(179, 160, 214, 0.35); }
.gs-bdg-pe { color: #e0b268; border-color: rgba(232, 161, 60, 0.4); }
.gs-bdg-pj { color: #b9b5a8; border-color: rgba(244, 241, 234, 0.22); }
.gs-bdg-li { color: #94917f; border-color: rgba(244, 241, 234, 0.14); }
/* Opportunity lifecycle stages — cool = pre-RFP (SOURCES SOUGHT /
   PRESOLICITATION / SPECIAL NOTICE / SURPLUS SALE, all `ey`), gold = posted
   solicitation, green = awarded, violet = recompete, dim = forecast. The hue is
   the ladder read at a glance; the label names the exact SAM notice type.
   ⚠ `fc` IS NO LONGER ONE-TO-ONE WITH FORECAST: the finder's `LOOK UP` badge —
   the unverified archive front door, which names no record type at all — wears
   it too, because both mean "nothing to open yet". It is a HUE, not an
   identity; nothing keys on `fc`. See web/CLAUDE.md → "Global search may not
   INVENT a record". */
.gs-bdg-ey { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.3); }
.gs-bdg-op { color: #e0b268; border-color: rgba(232, 161, 60, 0.42); }
.gs-bdg-aw { color: #a3c48e; border-color: rgba(163, 196, 142, 0.38); }
.gs-bdg-rc { color: #b3a0d6; border-color: rgba(179, 160, 214, 0.35); }
.gs-bdg-fc { color: #9a9686; border-color: rgba(244, 241, 234, 0.16); }
/* On cream, every hue above is a pale wash and three of them draw their border
   out of white alpha — invisible. Same hues, darkened to the values the rail's
   domain dots use, so a badge and its domain still read as one colour. The
   badge gutter is load-bearing in the console; it cannot go blank in a theme
   the platform ships. */
body.light .gs-bdg-ma, body.light .gs-bdg-pe, body.light .gs-bdg-op {
  color: #a86f18; border-color: rgba(168, 111, 24, 0.45);
}
body.light .gs-bdg-fs { color: #8a7133; border-color: rgba(138, 113, 51, 0.4); }
body.light .gs-bdg-bp { color: #227e69; border-color: rgba(34, 126, 105, 0.4); }
body.light .gs-bdg-to, body.light .gs-bdg-ey {
  color: #3d6b9e; border-color: rgba(61, 107, 158, 0.4);
}
body.light .gs-bdg-df, body.light .gs-bdg-aw {
  color: #4f8a44; border-color: rgba(79, 138, 68, 0.42);
}
body.light .gs-bdg-sa { color: #6f52a8; border-color: rgba(111, 82, 168, 0.4); }
body.light .gs-bdg-rc { color: #7a4f96; border-color: rgba(122, 79, 150, 0.4); }
body.light .gs-bdg-pj { color: #6b6552; border-color: rgba(26, 18, 6, 0.3); }
body.light .gs-bdg-li, body.light .gs-bdg-fc {
  color: #7a756a; border-color: rgba(26, 18, 6, 0.22);
}

/* live-tier rows (from the resolver) — a hairline dot marks the deeper hit */
/* a corporate family's registration, listed under its family (nestFamilies):
   no badge; the name is indented and an L-shaped connector joins it to the
   family row above, so the pair reads as one company with two registrations */
.gs-row.gs-child { padding-top: 2px; padding-bottom: 6px; }
.gs-row.gs-child .gs-mid { position: relative; padding-left: 26px; }
.gs-row.gs-child .gs-mid::before {
  content: ""; position: absolute; left: 6px; top: -10px; width: 12px; height: 22px;
  border-left: 1.5px solid var(--dh, #b3a0d6); border-bottom: 1.5px solid var(--dh, #b3a0d6);
  border-bottom-left-radius: 4px; opacity: 0.55;
}
.gs-row.gs-child .gs-name { font-size: 0.98rem; }
.gs-live-dot { color: var(--accent-ink,var(--accent, #e0b268)); opacity: 0.6; font-size: 0.7rem; }

/* collapsed-pool note under a vehicle row */
.gs-note {
  display: block; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.06em;
  color: var(--ink-faint, #8a877c); padding-top: 3px;
}
.gs-note::before { content: "▸ "; color: var(--dh); }

/* ---- the preview ----------------------------------------------------------
   Everything here is either something the row carries or something the index
   can prove (a program element's projects, a pool's collapsed members, the rest
   of the domain). No fetch — so it keeps up with the arrow key that moved onto
   the row, and it can never contradict the row above it. */
.gs-pv {
  border-left: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055));
  background: var(--bg-panel, #0d0f12); padding: 18px;
  display: flex; flex-direction: column; gap: 13px;
}
.gs-pveye {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dh);
}
.gs-pveye .gs-domdot { top: 0; }
.gs-pvh {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.42rem; line-height: 1.16; color: var(--ink, #f4f1ea);
  text-wrap: pretty;
}
.gs-pvh.long { font-size: 1.12rem; line-height: 1.24; }
.gs-pvsub {
  font-family: var(--sans, "Inter", system-ui, sans-serif); font-size: 0.78rem;
  line-height: 1.55; color: var(--ink-dim, #9a988f); }
.gs-pvwhy {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.07em; line-height: 1.7; color: var(--ink-faint, #6b675d);
  border-left: 2px solid var(--dh); padding-left: 8px;
}
.gs-pvwhy b { color: var(--ink-dim, #9a988f); font-weight: 400; }
.gs-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft, rgba(244, 241, 234, 0.055));
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055));
  border-radius: 10px; overflow: hidden;
}
.gs-stat { background: var(--bg-panel, #0d0f12); padding: 9px 10px 10px; min-width: 0; }
/* A row with nothing but a domain count (a market, an agency) would otherwise
   stretch one tile across the whole pane and read as a headline. Browsers
   without :has() get today's full-width tile, which is untidy, not broken. */
.gs-stats:has(> .gs-stat:only-child) { max-width: 190px; }
.gs-stat i {
  display: block; font-style: normal;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-faint, #6b675d); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-stat b {
  display: block; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink, #f4f1ea); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-stat b.gs-code { font-size: 0.76rem; letter-spacing: 0; }
.gs-stat b.gs-due { color: var(--accent-ink,var(--accent, #e8a13c)); }
/* ---- the FY strip ---------------------------------------------------------
   The same three states ask-hitch.js's trend strip draws, from the same dataset
   (explorer/fydp): what was enacted, what is requested, what is planned. The
   request year is gold because it is the year the reader is deciding about; the
   outyears are outlines because they are a plan, not money. */
.gs-splabel {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint, #6b675d);
  margin-bottom: -4px;
}
.gs-spark { display: flex; align-items: flex-end; gap: 5px; height: 76px; }
.gs-spcol {
  flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; gap: 4px;
}
.gs-spbar {
  display: block; width: 100%; border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--dh) 34%, transparent);
}
.gs-spbar.req { background: var(--accent, #e8a13c); }
.gs-spbar.out {
  background: none; border: 1px dashed color-mix(in srgb, var(--dh) 46%, transparent);
}
.gs-spx {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  color: var(--ink-faint, #6b675d); letter-spacing: 0.04em;
}
.gs-spkey {
  display: flex; gap: 11px; margin-top: -6px;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint, #6b675d);
}
.gs-spkey i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.gs-spkey i::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: color-mix(in srgb, var(--dh) 34%, transparent);
}
.gs-spkey i.req::before { background: var(--accent, #e8a13c); }
.gs-spkey i.out::before {
  background: none; border: 1px dashed color-mix(in srgb, var(--dh) 46%, transparent);
}

.gs-pvlist { border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055)); }
.gs-pvli {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.055));
  padding: 6px 2px; font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.76rem; color: var(--ink-dim, #9a988f);
}
.gs-pvli span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-pvli b {
  margin-left: auto; flex: none; font-weight: 400;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.72rem;
  font-variant-numeric: tabular-nums; color: var(--ink, #f4f1ea);
}
.gs-pvgo { cursor: pointer; transition: color 0.13s; }
.gs-pvgo:hover, .gs-pvgo:focus-visible { color: var(--accent-ink,var(--accent, #e8a13c)); outline: none; }
.gs-pvacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.gs-pact {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.05em; color: var(--ink-dim, #9a988f); cursor: pointer;
  background: none; border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 6px 13px; transition: all 0.15s var(--ease, ease);
}
.gs-pact:hover, .gs-pact:focus-visible {
  color: var(--accent-ink,var(--accent, #e8a13c)); border-color: var(--accent, #e8a13c); outline: none;
}
.gs-pact.pri {
  color: #1a1206; background: var(--accent, #e8a13c);
  border-color: var(--accent, #e8a13c); font-weight: 500;
}
.gs-pact.pri:hover, .gs-pact.pri:focus-visible { color: #1a1206; opacity: 0.9; }

/* ---- scoped full-search chip bar (bottom of the list) ----
   Each destination chip wears ITS OWN domain hue — the same --dh the rail dot
   and group header for that domain carry (global-search.js stamps data-dom per
   chip), so "Vendors" here is the colour Vendors is everywhere else in the
   console, in both themes. The Ask chip has no data-dom and stays the accent. */
.gs-scopes { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 18px 14px; }
/* what the Vendors group covers, when no vendor matched (VEN_SCOPE_NOTE) */
.gs-scopenote {
  padding: 0 18px 12px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.06em; color: var(--ink-faint, #8a877c);
}
.gs-scope {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--ink-dim, #9a988f); background: none; cursor: pointer;
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 6px 13px;
  transition: all 0.15s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.gs-scope[data-dom]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dh); flex: none;
}
.gs-scope[data-dom] {
  color: var(--dh);
  border-color: color-mix(in srgb, var(--dh) 42%, transparent);
  background: color-mix(in srgb, var(--dh) 7%, transparent);
}
.gs-scope:hover, .gs-scope.on {
  color: var(--accent-soft, #f0c98a);
  border-color: rgba(232, 161, 60, 0.45);
  background: rgba(232, 161, 60, 0.08);
}
.gs-scope[data-dom]:hover, .gs-scope[data-dom].on {
  color: var(--dh);
  border-color: var(--dh);
  background: color-mix(in srgb, var(--dh) 16%, transparent);
}
.gs-scope:focus-visible { outline: 1px solid var(--accent, #e8a13c); outline-offset: 1px; }

.gs-foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint, #8a877c);
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  padding: 8px 18px;
}

/* deepSearch()'s in-flight line — plain text, never a .gs-row (not clickable,
   not keyboard-reachable). Sits above .gs-foot while a full-corpus scan (up to
   ~15s) is running; disappears the moment it resolves, whether or not it found
   anything to merge in. */
.gs-deepstatus {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  color: var(--ink-faint, #8a877c);
  padding: 6px 18px; opacity: 0.8;
}

/* ---- the Guided card (guideSearch) ------------------------------------------
   The one row in the panel that should JUMP OUT: a gold-tinted card with a
   gold rail and a filled badge, so a reader who typed a request sees the door
   before the list. Every colour is a token — dossier pages flip --ink on Light.
   .gs-grow is the row; .gs-gguide is its group header. */
.gs-group.gs-gguide .gs-gnm { color: var(--accent-soft, #f0c98a); }   /* accent-soft: gold TEXT must clear 4.5:1 on the light ground */
.gs-group.gs-gguide .gs-gdot { background: var(--accent, #e8a13c); box-shadow: 0 0 6px var(--accent, #e8a13c); }
.gs-group.gs-gguide .gs-gcount { color: var(--accent-soft, #f0c98a); }
.gs-row.gs-grow {
  margin: 2px 10px 6px; width: calc(100% - 20px); padding: 12px 14px 12px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(232, 161, 60, 0.16), rgba(232, 161, 60, 0.07));
  border: 1px solid color-mix(in srgb, var(--accent, #e8a13c) 45%, transparent);
  box-shadow: 0 0 0 1px rgba(232, 161, 60, 0.08), 0 6px 18px -10px rgba(232, 161, 60, 0.5);
}
.gs-row.gs-grow::before { left: 0; width: 3px; opacity: 1; background: var(--accent, #e8a13c); border-radius: 8px 0 0 8px; }
.gs-row.gs-grow:hover, .gs-row.gs-grow.on {
  background: linear-gradient(180deg, rgba(232, 161, 60, 0.28), rgba(232, 161, 60, 0.14));
  border-color: var(--accent, #e8a13c);
}
.gs-row.gs-grow .gs-name { font-size: 1.22rem; }
.gs-row.gs-grow .gs-note { color: var(--ink-faint, #8a877c); font-size:.6875rem; letter-spacing: 0.04em; }
.gs-row.gs-grow .gs-note::before { content: "→ "; color: var(--accent-ink,var(--accent, #e8a13c)); }
.gs-bdg-guide {
  color: #0a0b0d; background: var(--accent, #e8a13c);
  border-color: var(--accent, #e8a13c); font-weight: 600;
}

/* Narrow: the rail and the preview are the first things to go — they are the
   panes that need width to be worth anything, and without them the list is the
   panel this always was.

   The question is how wide the PANEL is, not how wide the window is: the inline
   dropdown is as wide as the search box it hangs under, which on a wide screen
   can still be half the viewport. So the container query is the real rule and
   the media query is the floor for a browser without one (and for a phone,
   where both answers agree anyway). */
.gs-panel { container-type: inline-size; }
@container (max-width: 1080px) {
  .gs-console { grid-template-columns: minmax(0, 1fr); }
  .gs-rail, .gs-pv { display: none; }
}
@media (max-width: 1080px) {
  .gs-console { grid-template-columns: minmax(0, 1fr); }
  .gs-rail, .gs-pv { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-trigger, .gs-row, .gs-scope, .gs-dom, .gs-pact { transition: none; }
}

/* ============================================================================
   Ask Hitch — the answer sheet (assets/js/ask-hitch.js). Same token language
   as the palette; the loading treatment is the CIT "joyful loading" port.
   ========================================================================== */
.gs-bdg-ask {
  color: #0a0b0d; background: var(--accent, #e8a13c);
  border-color: var(--accent, #e8a13c);
}

/* pattern G — the opportunity-page Ask Hitch look: a wider, gold-tinted card */
.ask-sheet {
  width: min(880px, 94vw); margin: 9vh auto 0;
  max-height: 84vh; overflow: hidden auto;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)),
              var(--bg-soft, #101216);
}
.ask-head {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05), rgba(0, 0, 0, 0)),
              var(--bg-soft, #101216);
}
/* the exact Ask Hitch wordmark: serif, "Ask" in ink + "Hitch" in gold italic
   (matches home.css .askhero__mark, sized down) — NOT the ✦/mono/gold-A form */
.ask-mark {
  flex: none; font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-weight: 400; font-size: 1.12rem; letter-spacing: 0.004em; line-height: 1;
  color: var(--ink, #f4f1ea);
}
.ask-mark i { font-style: italic; color: var(--accent-ink,var(--accent, #e8a13c)); }
/* live indicator (opportunity-card language): accent + pulsing while Hitch
   works, mint-green when the verdict lands. Driven from ask-hitch.js. */
.ask-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #59d38f;
}
.ask-live i { width: 6px; height: 6px; border-radius: 50%; background: #59d38f; box-shadow: 0 0 8px #59d38f; }
.ask-live.reading { color: var(--accent-ink,var(--accent, #e8a13c)); }
.ask-live.reading i { background: var(--accent, #e8a13c); box-shadow: 0 0 8px var(--accent, #e8a13c); animation: ask-livepulse 1s infinite; }
@keyframes ask-livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ask-q {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.86rem; font-weight: 300; color: var(--ink, #f4f1ea);
}
.ask-x {
  flex: none; background: none; border: none; cursor: pointer; line-height: 1;
  color: var(--ink-dim, #9a988f); font-size: 1.05rem;
}
.ask-x:hover, .ask-x:focus-visible { color: var(--ink, #f4f1ea); outline: none; }
.ask-body { padding: 18px 20px 14px; }

/* pattern G — in-lane surface (global-search.js "surface" mode on the home):
   the results panel + the Ask Hitch answer render inside #omni-surface. */
.gs-panel.gs-surface {
  position: static; display: none; z-index: auto;
  background: none; border: none; border-radius: 0; box-shadow: none;
  max-height: none; overflow: visible; margin: 6px 0 0;
}
.gs-panel.gs-surface.open { display: block; }
.gs-answer:empty { display: none; }
/* the in-lane answer: keeps the gold-tinted card, drops modal chrome. The lane
   it sits in is as wide as the results console needs (1180px); an ANSWER is
   prose and stays at the reading width it was designed for, centred in it. */
.ask-sheet.ask-inline {
  width: 100%; max-width: 880px; margin: 0 auto; max-height: none;
  overflow: visible; border-radius: 16px;
}
.ask-inline .ask-head { position: static; }
.ask-inline .ask-x { color: var(--ink-faint, #6b675d); }

/* loading (Fibonacci sphere + rotating status + elapsed) */
.ask-loading {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 34px 0 40px;
}
.ask-sph { width: 116px; height: 116px; display: block; }
.ask-loadmsg {
  font-family: var(--serif, Georgia, serif); font-size: 1.06rem;
  color: var(--ink, #f4f1ea); letter-spacing: 0.01em; text-align: center;
  min-height: 1.3em; transition: opacity 0.3s;
}
.ask-loadsub {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink,var(--accent, #e8a13c)); text-align: center;
}
/* interpretation revealed under the phase, the moment UNDERSTAND resolves —
   the earliest partial the slow build can show (see ask-hitch.js setInterpLive) */
.ask-loadinterp {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  color: var(--ink-dim, #9a988f); text-align: center; line-height: 1.6;
  margin: 4px auto 0; min-height: 1em; transition: opacity 0.3s;
}
.ask-loadinterp b { color: var(--accent-soft, #f0c98a); font-weight: 500; }

/* verdict */
.ask-verdict {
  font-family: var(--serif, Georgia, serif); font-weight: 400;
  font-size: 1.28rem; line-height: 1.32; color: var(--ink, #f4f1ea);
  text-wrap: pretty;
}
.ask-verdict.pending { color: var(--ink-faint, #8a877c); }
/* provisional draft — a first answer straight from the fact table, shown before
   the model's cited verdict (ask-hitch.js provisionalVerdict) */
.ask-verdict.provisional { color: var(--ink, #f4f1ea); }
.ask-prov-note {
  margin-top: 7px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.04em; color: var(--accent-soft, #f0c98a);
}
.ask-dots i { animation: ask-blink 1.2s infinite; font-style: normal; }
.ask-dots i:nth-child(2) { animation-delay: 0.2s; }
.ask-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.ask-prose { margin-top: 8px; }
.ask-prose p {
  margin: 0 0 7px; color: var(--ink-dim, #c2bfb4);
  font-size: 0.86rem; line-height: 1.55; }
/* pattern G — footnote-pill citations (opportunity-card .ah-fn) */
.ask-cite {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.56em;
  color: var(--accent-ink,var(--accent, #e8a13c)); text-decoration: none; vertical-align: super;
  background: color-mix(in srgb, var(--accent, #e8a13c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #e8a13c) 35%, var(--line, rgba(244, 241, 234, 0.1)));
  border-radius: 5px; padding: 0 0.28em; margin-left: 0.1em; line-height: 1.3;
}
.ask-cite:hover, .ask-cite:focus-visible { background: color-mix(in srgb, var(--accent, #e8a13c) 26%, transparent); outline: none; }
/* a citation with no exhibit row to jump to — rendered inert and visibly so,
   never as a live-looking pill that does nothing when clicked */
.ask-cite-dead {
  color: var(--ink-dim, #9a988f); background: transparent;
  border-color: var(--line, rgba(244, 241, 234, 0.14));
  border-style: dashed; cursor: default; text-decoration: none;
}
.ask-cite-dead:hover, .ask-cite-dead:focus-visible { background: transparent; }
.ask-caveat {
  margin-top: 9px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.06em; color: var(--ink-dim, #9a988f);
}
.ask-scope {
  margin-top: 14px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink,var(--accent, #e8a13c));
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); padding-top: 11px;
}

/* interpreted-as line (query-planner transparency) */
.ask-interp {
  margin-top: 10px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; color: var(--ink-dim, #c2bfb4); line-height: 1.9;
}
/* the interpreted term pills wrap onto their own line(s); they are joined with no
   whitespace, so a flex row (not inline) is what actually breaks them — otherwise a
   multi-agency question ("…cisa and disa and dla") runs the pills off the sheet edge. */
.ask-terms {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.ask-terms i {
  font-style: normal; color: var(--ink-faint, #8a877c);
  border: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  border-radius: 100px; padding: 1px 8px; white-space: nowrap;
}

/* deterministic trend strip */
.ask-trend {
  display: flex; align-items: flex-end; gap: 8px;
  height: 130px; margin-top: 14px; padding: 0 2px;
}
.ask-tcol {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; height: 100%;
}
.ask-tval {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size: 0.7rem;
  font-variant-numeric: tabular-nums; color: var(--ink-dim, #c2bfb4);
  margin-bottom: 4px; white-space: nowrap;
}
.ask-tbar { width: min(46px, 82%); border-radius: 4px 4px 1px 1px; }
.ask-tbar.hist { background: rgba(224, 178, 104, 0.55); }
.ask-tbar.req  { background: var(--accent, #e8a13c); }
.ask-tbar.out  { background: rgba(232, 161, 60, 0.18); border: 1px dashed rgba(232, 161, 60, 0.45); }
.ask-tbar.con  { background: rgba(124, 194, 177, 0.6); }
.ask-tbar.conp { background: rgba(124, 194, 177, 0.16); border: 1px dashed rgba(124, 194, 177, 0.5); }
.ask-strip-label {
  margin-top: 14px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint, #8a877c);
}
.ask-strip-label + .ask-trend { margin-top: 6px; }
.ask-tx {
  margin-top: 5px; text-align: center;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  color: var(--ink-dim, #c2bfb4);
}
.ask-tx small {
  display: block; font-size:.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint, #8a877c); margin-top: 1px;
}

/* fact rows */
.ask-facts { margin-top: 12px; border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); }
.ask-fact {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 2px;
  border-bottom: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06));
  transition: background 0.3s;
}
.ask-fact.hit { background: rgba(232, 161, 60, 0.12); }
.ask-trend { transition: background 0.3s; border-radius: 8px; }
.ask-trend.hit { background: rgba(232, 161, 60, 0.07); }
.ask-fid {
  flex: none; width: 20px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size: 0.7rem; color: var(--accent-ink,var(--accent, #e8a13c));
}
.ask-fmain { flex: 1; min-width: 0; font-size: 0.8rem; color: var(--ink-dim, #c2bfb4); }
.ask-fmain b { color: var(--ink, #f4f1ea); font-weight: 500; }
.ask-fsrc {
  display: block; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; letter-spacing: 0.05em; color: var(--ink-faint, #8a877c); margin-top: 2px;
}
/* ⚠️ CAPPED, NOT nowrap-unbounded. A `nums` value is meant to be a short
   figure ("$4.20B", "FY2024 $900M | FY2025 $1.10B"), and those still render
   on one line because they fit well under the cap below. But nothing enforces
   "short" server-side, and a row whose nums IS a full sentence (an
   opps_search deadline note ran ~180 chars before it was trimmed, 2026-08-25)
   met the old unbounded `white-space: nowrap` by demanding its whole
   single-line width from the flex row — .ask-fmain has `min-width: 0`
   precisely so it CAN be squeezed, so it was, down to one word per line. A
   max-width forces wrapping inside this column instead of starving the
   sibling — reproduced live for "OASIS+ latest". */
.ask-fnums {
  flex: none; max-width: 45%; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; font-variant-numeric: tabular-nums; color: var(--ink, #f4f1ea);
  white-space: normal;
}
.ask-fnums i { font-style: normal; color: var(--ink-faint, #8a877c); }
.ask-fgo { flex: none; color: var(--ink-faint, #8a877c); font-size: 0.75rem; text-decoration: none; }
.ask-fgo:hover, .ask-fgo:focus-visible { color: var(--accent-ink,var(--accent, #e8a13c)); outline: none; }
.ask-flag {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
  position: relative; top: -1px;
}
.ask-flag.new  { color: var(--good, #7bbf7b); border-color: rgba(123, 191, 123, 0.4); }
.ask-flag.zero { color: var(--warn, #d98c5f); border-color: rgba(217, 140, 95, 0.4); }
.ask-flag.xfer { color: var(--accent-soft, #f0c98a); border-color: rgba(232, 161, 60, 0.45); }
.ask-flag.dom-bud { color: #e0b268; border-color: rgba(232, 161, 60, 0.35); }
.ask-flag.dom-it  { color: #8fb2d9; border-color: rgba(143, 178, 217, 0.35); }
.ask-flag.dom-con { color: #7cc2b1; border-color: rgba(124, 194, 177, 0.35); }
.ask-flag.dom-civ { color: #9ecb8f; border-color: rgba(158, 203, 143, 0.35); }
.ask-flag.dom-ppl { color: #c39bd3; border-color: rgba(195, 155, 211, 0.38); }
/* live SAM.gov notices — the incumbency card mixes these with contract rows */
.ask-flag.dom-opp { color: #e39b7d; border-color: rgba(227, 155, 125, 0.38); }

/* the always-available Ask chip in the scope bar */
.gs-scope-ask { color: var(--accent-soft, #f0c98a); border-color: rgba(232, 161, 60, 0.35); }

.ask-cong {
  margin-top: 10px; font-family: var(--mono, "Inter",system-ui,sans-serif);
  font-size:.6875rem; color: var(--ink-dim, #c2bfb4);
}

/* follow-through chips + footer */
.ask-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ask-chip {
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  letter-spacing: 0.06em; color: var(--ink-dim, #9a988f);
  background: none; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line, rgba(244, 241, 234, 0.1));
  border-radius: 100px; padding: 5px 12px;
  transition: all 0.15s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.ask-chip:hover, .ask-chip:focus-visible {
  color: var(--accent-soft, #f0c98a);
  border-color: rgba(232, 161, 60, 0.45);
  background: rgba(232, 161, 60, 0.08);
  outline: none;
}
.ask-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 14px;
  font-family: var(--mono, "Inter",system-ui,sans-serif); font-size:.6875rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint, #8a877c);
  border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); padding-top: 9px;
}
.ask-err { padding: 26px 6px 30px; font-size: 0.86rem; color: var(--ink-dim, #c2bfb4); line-height: 1.6; }
.ask-err b { color: var(--ink, #f4f1ea); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ask-dots i { animation: none; }
  .ask-chip, .ask-fact { transition: none; }
}

/* ── ASK HITCH — THE SIX SECTIONS ─────────────────────────────────────────────
   docs/ask-hitch-sectioned-answer-design.md §7. The card used to be one flat
   list, so a domain we searched and found nothing in looked exactly like one we
   never ran. `empty` and `unavailable` are styled APART on purpose: an empty
   section is a finding a reader can act on, an unavailable one is a statement
   about us and must never be mistaken for market intelligence. */
.ask-facts-sec { border-top: 0; }
.ask-sec { margin-top: 14px; border-top: 1px solid var(--line-soft, rgba(244, 241, 234, 0.06)); padding-top: 8px; }
.ask-sec-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.ask-sec-h b { font-size: 0.8125rem; letter-spacing: .02em; }
.ask-sec-blurb { font-size: 0.6875rem; opacity: .55; }
.ask-sec-state { margin-left: auto; font-size: 0.6875rem; opacity: .6; white-space: nowrap; }
.ask-sec-note { font-size: 0.75rem; line-height: 1.5; opacity: .78; margin: 2px 0 6px; }
/* Searched, nothing there — a finding, so it reads as ordinary content. */
.ask-sec-empty .ask-sec-state { opacity: .5; }
/* NOT checked. Amber, because the reader must not read our outage as their
   market being quiet. */
.ask-sec-unavailable { border-left: 2px solid rgba(232, 161, 60, .5); padding-left: 10px; }
.ask-sec-unavailable .ask-sec-state,
.ask-sec-unavailable .ask-sec-note { color: rgba(232, 161, 60, .95); opacity: 1; }
