:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d2421;
  --muted: #5f6b66;
  --line: #e4e1d9;
  --accent: #0f5c4d;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ec;
  --warn: #a14b12;
  --warn-soft: #fbeee3;
  --gold: #f4c95d;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1a201d;
    --ink: #e8ece9;
    --muted: #9aa7a1;
    --line: #2c3531;
    --accent: #5fc2a8;
    --accent-ink: #0d1412;
    --accent-soft: #1f3530;
    --warn: #f0a46c;
    --warn-soft: #3a2a1d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo { color: var(--accent); }
nav a { margin-left: 16px; color: var(--ink); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }
nav .pro-link { color: var(--accent); font-weight: 600; }
main { padding: 24px 16px 48px; }
h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 32px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 4px; line-height: 1.35; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hero { padding: 8px 0 8px; }
.subnav { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.chip b { font-weight: 600; color: var(--muted); margin-left: 2px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.on b { color: var(--accent-ink); }
.searchbar input {
  width: 100%; max-width: 460px; padding: 10px 12px; font: inherit; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.count { margin: 12px 0; font-size: 14px; }
.list { display: grid; gap: 10px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.meta { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.row { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; }
.tag {
  display: inline-block; font-size: 12.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap;
}
.tag-soft { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.dl { font-weight: 600; }
.dl.soon { color: var(--warn); }
.dl.closed { color: var(--muted); font-weight: 400; }
.cta {
  margin: 32px 0; padding: 20px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--line);
}
.cta h2 { margin-top: 0; }
.pro-strip {
  margin: 4px 0 16px; padding: 10px 14px; border-radius: 8px; font-size: 15px; line-height: 1.45;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.pro-strip a { font-weight: 600; white-space: nowrap; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; border: 1px solid var(--accent); margin: 4px 8px 4px 0;
  font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn-ghost { background: transparent; color: var(--accent); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.tender h1 { font-size: clamp(24px, 4vw, 32px); }
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 20px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  nav a { margin-left: 12px; }
  nav a[href="/about/"] { display: none; } /* in the footer too; keeps the menu on one line */
}
.desc { overflow-wrap: anywhere; }
.desc p { margin: 0 0 12px; }
.notice { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 8px; }
.prose { max-width: 70ch; }
.prose li { margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .price { font-size: 30px; font-weight: 700; margin: 4px 0; }
.plan ul { padding-left: 18px; }
.keybox { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.keybox input { flex: 1 1 260px; padding: 10px 12px; font: inherit; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
#pro-status { font-size: 14px; }
.hidden { display: none !important; }
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; background: var(--surface); }
.foot p { margin: 0 0 8px; max-width: 80ch; }

/* watchlists */
nav .badge, .badge {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px;
  background: var(--warn); color: var(--bg); font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px;
}
.watch-form { margin: 16px 0; }
.watch-form summary { cursor: pointer; font-weight: 600; }
.watch-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 8px 12px; }
.watch-form fieldset label { display: inline-block; margin: 4px 14px 4px 0; white-space: nowrap; }
.watch-form input[type=text] {
  width: 100%; max-width: 520px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.watch-list { margin: 16px 0; }
.watch-list h2 { margin: 0 0 4px; }
.watch-hits { margin-top: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.feed-url { width: 100%; max-width: 640px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 13px/1.4 ui-monospace, monospace; margin: 4px 0; }

/* grants */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); }
.tile b { display: block; font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; }
.tagrow { line-height: 2.2; }
.tagrow .tag b { font-weight: 600; margin-left: 2px; }
.dl.fc { color: var(--muted); }
.wk { font-size: 18px; margin: 24px 0 8px; }
.list h2 { margin: 24px 0 8px; }
#gpro-app fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 8px 12px; }
#gpro-app fieldset label { display: inline-block; margin: 4px 14px 4px 0; white-space: nowrap; }
#gpro-key { width: 100%; max-width: 420px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
main table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .95em; }
main th, main td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
main td:first-child { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
main table { display: block; overflow-x: auto; max-width: 100%; }
@media (min-width: 640px) { main table { display: table; } }
.watch-ending { margin-top: 14px; border-top: 1px solid var(--line, #dde3e0); padding-top: 10px; }
.watch-ending h3 { margin: 0 0 4px; font-size: 1.05rem; }
/* contracts-ending tables: one card per row on phones instead of sideways scrolling */
@media (max-width: 639px) {
  main table.stack { display: block; overflow: visible; }
  main table.stack tr:first-child { display: none; }
  main table.stack tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line, #dde3e0); }
  main table.stack td { display: block; border: 0; padding: 2px 0; }
  main table.stack td:nth-child(3)::before { content: "Incumbent: "; color: #5f6b66; }
  main table.stack td:nth-child(4)::before { content: "Value: "; color: #5f6b66; }
  main table.stack td:nth-child(4):empty { display: none; }
}
