/* Layout idea: a dark navy hero holds a live field of gold arrows that swing toward your cursor (the "vector" idea).
   Below it, a quiet control rail on the left and a ranked feed on the right; each result carries a ring
   whose fill and inner arrow tilt show how well it fits. All the boldness lives in the hero. */
:root {
  /* Palette taken from the Govector logo: warm gold on deep navy. */
  --bg: #f7f4ec;
  --surface: #ffffff;
  --ink: #0f1a2e;
  --muted: #5a6479;
  --line: #e6e0d2;
  --tint: #f3efe4;
  --hi: #12805f;
  --mid: #b27414;
  --low: #8c93a3;
  --gold: #f2b84f;
  --gold-light: #ffe29a;
  --gold-deep: #c58420;
  --saffron: var(--gold);
  --hit-bg: rgba(242, 184, 79, 0.24);
  --hit-ink: #6f4700;
  --link: #8a5800;
  --navy: #0d1526;
  --shadow: 0 1px 2px rgba(15, 26, 46, .06), 0 10px 28px -14px rgba(15, 26, 46, .24);
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090f1d; --surface: #111a2e; --ink: #eef0f6; --muted: #98a4bb; --line: #20304d; --tint: #16213a;
    --hi: #3fd1a5; --mid: #f2b84f; --low: #6f7c96; --hit-bg: rgba(242, 184, 79, 0.18); --hit-ink: #ffd98a; --link: #f2b84f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090f1d; --surface: #111a2e; --ink: #eef0f6; --muted: #98a4bb; --line: #20304d; --tint: #16213a;
  --hi: #3fd1a5; --mid: #f2b84f; --low: #6f7c96; --hit-bg: rgba(242, 184, 79, 0.18); --hit-ink: #ffd98a; --link: #f2b84f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }

/* hero */
.hero { position: relative; overflow: hidden; margin-top: 20px; border-radius: 20px; background: radial-gradient(120% 140% at 85% 20%, #22324f 0%, #121c33 45%, #080e1b 100%); color: #f4f1e8; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in { position: relative; padding: 24px 32px 40px; pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.pill { font: 500 12px/1 var(--font-mono); padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 226, 154, .35); color: var(--gold-light); }
h1 { font: 700 clamp(34px, 6vw, 66px)/1.02 var(--font-display); letter-spacing: -0.025em; margin: 18px 0 18px; max-width: 15ch; text-wrap: balance; }
h1 span { color: var(--saffron); }
.lede { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 0; color: rgba(244, 241, 232, .82); }
@media (max-width: 640px) { .hero-in { padding: 22px 20px 30px; } .lede { font-size: 16px; } }

.note { margin: 14px 4px 0; font-size: 13.5px; color: var(--muted); }
.note b { color: var(--ink); font-weight: 600; }

/* tool */
main { display: grid; grid-template-columns: 330px 1fr; gap: 28px; margin-top: 26px; align-items: start; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }

.rail { background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 14px; }
@media (max-width: 900px) { .rail { position: static; } }
.step { display: flex; gap: 12px; margin-bottom: 24px; }
.step:last-child { margin-bottom: 0; }
.num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 500 12px/26px var(--font-mono); text-align: center; margin-top: 1px; }
.step-body { flex: 1; min-width: 0; }
.lbl { display: block; font-weight: 700; margin: 0 0 10px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 13px/1 var(--font-body); padding: 9px 12px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.st { font-family: var(--font-mono); font-weight: 500; border-radius: 8px; min-width: 46px; }
textarea, select { width: 100%; font: 15px/1.5 var(--font-body); color: var(--ink); background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
textarea { min-height: 116px; resize: vertical; }
textarea:focus, select:focus { border-color: var(--saffron); outline: none; box-shadow: 0 0 0 3px var(--hit-bg); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.sum { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 26px; }
.sum > div { padding: 18px 22px; }
.sum > div + div { border-left: 1px solid var(--line); }
@media (max-width: 560px) { .sum { grid-template-columns: 1fr; } .sum > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.n { font: 700 30px/1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.l { font: 400 12.5px/1.35 var(--font-mono); color: var(--muted); margin-top: 8px; }

.feedhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.feedhead h2 { margin: 0; font: 700 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.feedhead label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.feedhead select { width: auto; padding: 8px 10px; }

.list { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; list-style: none; }
.card { position: relative; background: var(--surface); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 68px 1fr auto; gap: 20px; align-items: start; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-2px); }
.card.pre::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--hi); }
@media (max-width: 600px) { .card { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; } .meta { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; text-align: left !important; gap: 8px 16px !important; padding-top: 12px; border-top: 1px solid var(--line); } }
.ring { position: relative; width: 68px; height: 68px; }
.ring svg { display: block; }
.ring .pct { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.title { font: 700 18px/1.3 var(--font-body); letter-spacing: -0.01em; margin: 0 0 4px; text-wrap: balance; }
.sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.blurb { margin: 0 0 14px; max-width: 64ch; font-size: 15px; }
.why { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.why small { font: 400 12px/1 var(--font-mono); color: var(--muted); margin-right: 4px; }
.kw { font: 400 12px/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; color: var(--muted); background: var(--tint); }
.kw.hit { background: var(--hit-bg); color: var(--hit-ink); font-weight: 500; }
.meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; min-width: 148px; }
.money { font: 700 22px/1.1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.date, .where { font: 400 12.5px/1.35 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; margin-bottom: 8px; background: var(--tint); color: var(--muted); }
.badge.pre { background: color-mix(in srgb, var(--hi) 16%, transparent); color: var(--hi); }
.badge.soon { background: color-mix(in srgb, var(--mid) 18%, transparent); color: var(--mid); }
.empty { padding: 36px; text-align: center; color: var(--muted); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.foot { margin-top: 32px; padding: 20px 24px; border-radius: 16px; background: var(--tint); font-size: 14.5px; color: var(--muted); max-width: 78ch; }
.foot b { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ---- site additions ---- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; font: 700 15px/1 var(--font-body); padding: 15px 22px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #2a1a00; box-shadow: 0 6px 18px -8px rgba(242,184,79,.7); }
.btn.ghost { color: #f4f1e8; border-color: rgba(244,241,232,.4); background: transparent; }
.sec { margin-top: 56px; }
.sec h2 { font: 700 clamp(26px, 3.6vw, 38px)/1.12 var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.sec .intro { color: var(--muted); max-width: 62ch; margin: 0 0 24px; font-size: 17px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } }
.how > div { background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.how h3 { font: 700 17px/1.3 var(--font-body); margin: 12px 0 6px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }
.how .num { display: block; margin: 0; }
.signup { background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; padding: 22px; gap: 22px; } }
.signup h2 { margin-top: 0; }
.signup ul { margin: 0; padding-left: 18px; color: var(--muted); }
.signup li { margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"] { width: 100%; font: 15px/1.5 var(--font-body); color: var(--ink); background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--saffron); outline: none; box-shadow: 0 0 0 3px var(--hit-bg); }
.field textarea { min-height: 84px; }
.err { color: #b3261e; font-size: 13.5px; margin: 6px 0 0; }
:root[data-theme="dark"] .err { color: #ff8a80; }
.ok { background: color-mix(in srgb, var(--hi) 14%, transparent); border: 1px solid var(--hi); color: var(--ink); border-radius: 12px; padding: 16px 18px; font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.btn.solid { background: var(--ink); color: var(--bg); width: 100%; font-size: 16px; padding: 16px; }
.btn.gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #2a1a00; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.hero-in input, .hero-in .btn { pointer-events: auto; }

/* live federal list */
.livebar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.livebar input[type="text"] { flex: 1 1 260px; width: auto; }
.livebar select { width: auto; min-width: 150px; }
.livebar .btn.solid { width: auto; padding: 12px 22px; font-size: 15px; }
.live-card { grid-template-columns: 1fr auto; }
.live-card .title a { color: inherit; text-decoration: none; }
.live-card .title a:hover { text-decoration: underline; }
@media (max-width: 600px) { .live-card { grid-template-columns: 1fr; } }

/* real-data match list */
.card.nofit { grid-template-columns: 1fr auto; }
@media (max-width: 600px) { .card.nofit { grid-template-columns: 1fr; } }
.card .title a { color: inherit; text-decoration: none; }
.card .title a:hover { text-decoration: underline; }
.rail .btn.solid { margin-top: 4px; }

/* signup state picker */
.statebox { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; padding: 2px; }
.chip.pick { position: relative; cursor: pointer; }
.chip.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip.pick:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.pick:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
.field select { width: 100%; }

a { color: var(--link); }
.fine a, .foot a { color: var(--link); }


/* ---- site header and navigation ---- */
.sitehead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.sitehead-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px/1 var(--font-display); letter-spacing: -0.01em; }
.brand svg { display: block; }
.navmenu { margin-left: auto; position: relative; }
.navmenu > summary { list-style: none; cursor: pointer; font: 600 14px/1 var(--font-body); padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.navmenu > summary::-webkit-details-marker { display: none; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a, .navlinks summary { color: var(--ink); text-decoration: none; font: 600 15px/1 var(--font-body); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.navlinks a:hover, .navlinks summary:hover { background: var(--tint); }
.navlinks .cta { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #2a1a00; margin-left: 6px; padding: 11px 16px; }
.navlinks .cta:hover { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.states-menu { position: relative; }
.states-menu > summary { list-style: none; }
.states-menu > summary::-webkit-details-marker { display: none; }
.states-menu > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.states-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(620px, 92vw); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.states-pop a { font-weight: 500; font-size: 14.5px; padding: 8px 10px; }
@media (max-width: 860px) {
  .navmenu > summary { display: block; }
  .navlinks { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 90vw); flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; gap: 2px; }
  .navlinks .cta { margin: 6px 0 0; text-align: center; }
  .states-pop { position: static; width: auto; max-height: 50vh; box-shadow: none; border: 0; padding: 4px 0 4px 8px; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) { .navmenu > summary { display: none; } }

/* ---- footer ---- */
.sitefoot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .sitefoot { grid-template-columns: 1fr; gap: 20px; } }
.sitefoot h4 { margin: 0 0 10px; font: 600 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitefoot a { color: var(--muted); text-decoration: none; }
.sitefoot a:hover { color: var(--ink); text-decoration: underline; }
.sitefoot .brand { font-size: 20px; margin-bottom: 10px; }
.sitefoot small { display: block; margin-top: 10px; line-height: 1.5; }
.legal { grid-column: 1 / -1; font-size: 12.5px; padding-top: 16px; border-top: 1px solid var(--line); }
.pill { display: inline-block; max-width: 100%; line-height: 1.45; border-radius: 16px; }
@media (max-width: 640px) { .pill { font-size: 11px; padding: 6px 12px; } }

/* ---- notice detail page ---- */
.detail { max-width: 860px; padding-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.notice { background: var(--surface); border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow); }
.notice-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.notice-head .badge { margin: 0; }
.badge.closed { background: var(--tint); color: var(--muted); }
.notice h1 { font: 700 clamp(26px, 4vw, 38px)/1.12 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; max-width: none; text-wrap: balance; }
.notice .agency { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.closedbar { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 0 0 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
.notice h2 { font: 600 20px/1.2 var(--font-display); margin: 0 0 8px; }
.desc { margin: 0 0 24px; max-width: 70ch; white-space: pre-line; }
.cta-box { margin: 8px 0 20px; }
.cta-box .btn { display: inline-block; font-size: 17px; padding: 16px 24px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.alertbox { margin-top: 24px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, #1b2a47, #0d1526); color: #f4f1e8; }
.alertbox h2 { margin: 0 0 6px; font: 600 22px/1.2 var(--font-display); }
.alertbox p { margin: 0 0 16px; color: rgba(244,241,232,.8); }
.alertbox .btn { display: inline-block; }
.similar { margin-top: 36px; }
.similar h2 { font: 600 22px/1.2 var(--font-display); margin: 0 0 12px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.similar li { background: var(--surface); border-radius: 12px; padding: 14px 18px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.similar li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.similar li a:hover { text-decoration: underline; }
.similar li span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .notice { padding: 22px 20px; } }
.badge.abroad { background: color-mix(in srgb, #3b6fd4 18%, transparent); color: #2f5fc0; border: 1px solid color-mix(in srgb, #3b6fd4 40%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.abroad { color: #8fb4ff; } }
:root[data-theme="dark"] .badge.abroad { color: #8fb4ff; }

/* ---- listing pages ---- */
.listing { padding-top: 24px; }
.lh1 { font: 700 clamp(28px, 4.4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0 0 10px; max-width: none; text-wrap: balance; }
.lintro { color: var(--muted); max-width: 70ch; margin: 0 0 22px; font-size: 16.5px; }
.tradechips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tradechips .chip { text-decoration: none; color: var(--ink); }
.tradechips .chip b { margin-left: 6px; font-weight: 600; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 0; color: var(--muted); }
.btn.ghost-dark { background: transparent; border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: 10px 16px; display: inline-block; }
.stategrid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.stategrid a { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.stategrid a:hover { outline: 2px solid var(--gold); }
.stategrid b { font: 500 13px/1 var(--font-mono); color: var(--muted); }

/* ---- breadcrumb pills ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-size: 14px; margin: 0 0 20px; }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; line-height: 1.2; text-decoration: none; }
.crumbs a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(15, 26, 46, .05); transition: border-color .15s, background .15s; }
.crumbs a:hover { border-color: var(--gold-deep); background: var(--tint); }
.crumbs a:first-child::before { content: ""; width: 14px; height: 14px; margin-right: 7px; background: currentColor; opacity: .7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.crumbs [aria-current] { background: var(--hit-bg); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--ink); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the plain "/" separators between crumbs become small chevrons */
.crumbs > span:not([aria-current]) { font-size: 0; color: var(--muted); }
.crumbs > span:not([aria-current])::before { content: "\203A"; font-size: 18px; line-height: 1; opacity: .6; padding: 0 2px; }

/* ---- fit legend ---- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; padding: 12px 16px; background: var(--surface); border-radius: 12px; font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow); }
.legend b { color: var(--ink); font-weight: 600; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .lg i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend .lgnote { flex-basis: 100%; font-size: 13px; }
.ring { cursor: help; }
.ring .pct { bottom: -20px; white-space: nowrap; }

/* ---- larger text on phones ---- */
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.55; }
  .lede { font-size: 17.5px; }
  .pill { font-size: 12.5px; }
  .sec .intro, .lintro { font-size: 17.5px; }
  .how h3 { font-size: 19px; }
  .how p, .blurb { font-size: 16.5px; }
  .title { font-size: 20px; }
  .sub { font-size: 15.5px; }
  .kw, .why small { font-size: 14px; padding: 6px 9px; }
  .date, .where, .l { font-size: 14px; }
  .badge { font-size: 12.5px; padding: 7px 9px; }
  .ring .pct { font-size: 13.5px; bottom: -22px; }
  .lbl { font-size: 16.5px; }
  .field label { font-size: 16px; }
  .chip { font-size: 15px; padding: 10px 14px; }
  textarea, select, input[type="email"], input[type="text"] { font-size: 16.5px; }
  .note, .hint, .fine, .err, .feedhead label, .legend, .legend .lgnote, .closedbar, .similar li span { font-size: 15px; }
  .foot { font-size: 15.5px; }
  .btn { font-size: 17px; }
  .navlinks a, .navlinks summary { font-size: 17px; padding: 13px 12px; }
  .navmenu > summary { font-size: 15.5px; }
  .states-pop a { font-size: 16px; }
  .crumbs { font-size: 15px; }
  .facts dt { font-size: 13px; }
  .facts dd, .notice .agency { font-size: 17px; }
  .desc { font-size: 17px; }
  .sitefoot { font-size: 15.5px; }
  .sitefoot h4 { font-size: 14px; }
  .legal { font-size: 14px; }
  .stategrid a { font-size: 17px; }
  .stategrid b { font-size: 14.5px; }
}

/* ---- light / dark toggle ---- */
.themebtn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.themebtn:hover { border-color: var(--gold-deep); }
.themebtn svg { width: 20px; height: 20px; }
.themebtn .sun { display: none; }
:root[data-theme="dark"] .themebtn .sun { display: block; }
:root[data-theme="dark"] .themebtn .moon { display: none; }
@media (min-width: 861px) { .navmenu { margin-left: auto; } }
@media (max-width: 860px) { .navmenu { margin-left: auto; } }

/* ---- theme change animation ---- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, fill .4s ease, stroke .4s ease !important; }
@media (prefers-reduced-motion: reduce) { .theme-fade, .theme-fade * { transition: none !important; } }
.crumbs > span.crumb-plain { font-size: inherit; display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }
.crumbs > span.crumb-plain::before { content: none; }

/* ---- privacy / long text pages ---- */
.legalpage { max-width: 860px; padding-top: 24px; }
.prose h2 { font: 600 21px/1.25 var(--font-display); margin: 28px 0 8px; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-left: 22px; margin: 0 0 8px; }
.prose li { margin: 6px 0; }

/* ---- state badge on cards ---- */
.loc { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 13.5px/1.2 var(--font-body); color: var(--ink); }
.st-badge { display: inline-block; min-width: 38px; text-align: center; font: 700 13px/1 var(--font-mono); letter-spacing: .04em; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.st-badge.sm { font-size: 11px; padding: 3px 6px; min-width: 0; border-radius: 6px; vertical-align: 1px; }
.loc.abroad .st-badge { background: color-mix(in srgb, var(--hi) 18%, transparent); color: var(--hi); }
.loc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- similar awards block ---- */
.awards { margin: 28px 0 8px; padding: 20px 22px; border-radius: 14px; background: var(--tint); }
.awards h2 { margin: 0 0 8px; }
.awards .range { margin: 0 0 6px; font: 600 15px/1.3 var(--font-body); }
.awards .range b { font: 700 26px/1.1 var(--font-display); letter-spacing: -0.01em; margin-right: 8px; }
.awards .range span { color: var(--muted); font-weight: 400; }
.awards ul { padding-left: 18px; margin: 10px 0; }
.awards li { margin: 4px 0; font-size: 14.5px; }

.why-note { margin: 16px 2px 0; max-width: 78ch; }

.noprice { margin: 20px 0 8px; padding: 12px 16px; border-radius: 10px; background: var(--tint); color: var(--muted); font-size: 14.5px; }

/* ---- long unbroken strings (solicitation numbers, part numbers, urls) must wrap, never bleed ---- */
.facts > div, .facts dd, .facts dt { min-width: 0; }
.facts dd, .title, .sub, .desc, .blurb, .kw, .crumbs, .crumbs span, .similar li, .similar li a, .similar li span,
.notice h1, .loc-text, .awards li, .note, .fine { overflow-wrap: anywhere; word-break: normal; }
.notice, .wrap.detail, .card > div { min-width: 0; }
.kw { max-width: 100%; }

/* ---- trade market block ---- */
.market { margin: 0 0 24px; }
.mkt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; margin-top: 14px; }
.mkt-cols h3 { font: 700 15px/1.3 var(--font-body); margin: 0 0 6px; }
.mkt-cols ol { margin: 0; padding-left: 20px; }
.mkt-cols li { margin: 4px 0; font-size: 14.5px; overflow-wrap: anywhere; }
.mkt-cols li span { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; margin-left: 6px; }

/* ---- whole card is clickable: the title link stretches over the card ---- */
.list > .card { cursor: pointer; }
.list > .card .title a { text-decoration: none; }
.list > .card .title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.list > .card:hover .title a { text-decoration: underline; text-underline-offset: 3px; }
.list > .card:focus-within { outline: 2px solid var(--saffron); outline-offset: 2px; }
.list > .card .title a:focus-visible { outline: none; }
/* keep the fit ring's hover explanation working above the stretched link */
.list > .card .ring { z-index: 2; }

/* ---- fit ring popover (replaces the title tooltip) ---- */
.ring[data-tip] { cursor: help; border-radius: 50%; }
.ring[data-tip]:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.tip-pop { position: absolute; z-index: 200; width: min(280px, calc(100vw - 20px)); padding: 14px 16px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 36px -10px rgba(13, 21, 38, .45); font-size: 14px; line-height: 1.45; border-top: 4px solid var(--low); }
.tip-pop[hidden] { display: none; }
.tip-pop[data-level="hi"] { border-top-color: var(--hi); }
.tip-pop[data-level="mid"] { border-top-color: var(--mid); }
.tip-pop b { display: block; font: 700 16px/1.2 var(--font-display); margin-bottom: 6px; }
.tip-pop p { margin: 0 0 8px; color: var(--muted); }
.tip-pop a { font-weight: 600; color: var(--link); text-underline-offset: 3px; }

/* ---- one-field signup on notice pages ---- */
.quicksignup { display: grid; gap: 10px; margin: 12px 0 8px; }
.quicksignup input[type="email"] { width: 100%; padding: 13px 14px; font: 500 16px var(--font-body); border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.quicksignup input[type="email"]:focus { outline: 2px solid var(--saffron); border-color: var(--saffron); }
.quicksignup .btn { justify-content: center; }
.quicksignup .hp { position: absolute; left: -9999px; }
.alertbox .ok { padding: 12px 14px; border-radius: 10px; background: var(--hit-bg); color: var(--ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alertbox .ok { color: #f4f1e8; background: rgba(242,184,79,.22); }
.alertbox .fine, .alertbox .fine a { color: rgba(244,241,232,.78); }
.alertbox .err { color: #ffd98a; }
