:root {
  --on-accent: #fff;
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #14181d;
  --muted: #5c6672;
  --faint: #68727e;   /* 4.69:1 on --bg — WCAG AA. #8b95a1 was 2.91:1 */
  --line: #e4e2dd;
  --accent: #7a2e1e;
  --accent-soft: #f3ece8;
  --ok: #2f6b45;
  --warn: #8a6410;
  --dead: #8d3b3b;
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a; --panel: #1b1e23; --ink: #e8e6e1; --muted: #a3abb6; --faint: #828b98;
    --line: #2b2f36; --accent: #e0917c; --accent-soft: #2a211e;
    /* The dark accent is light, so anything sitting on it needs dark text:
       white on #e0917c is 2.47:1, dark ink is 7.34:1. */
    --on-accent: #14161a;
    --ok: #6fbb8c; --warn: #d5a648; --dead: #d98080;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
header.site {
  border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 20;
}
header.site .inner {
  display: flex; align-items: center; gap: 20px; height: 58px;
}
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
header.site form { flex: 1; display: flex; min-width: 0; }
header.site input[type=search] {
  flex: 1; min-width: 0; padding: 7px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg); color: var(--ink);
}
header.site button {
  padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
header.site nav { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  header.site .inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  header.site form { order: 3; flex-basis: 100%; }
  header.site nav { margin-left: auto; }
}

/* ---- hero ---- */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.12;
  margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 600; max-width: 20ch;
}
.hero p.lede { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 62ch; }
.bigsearch { display: flex; max-width: 620px; }
.bigsearch input {
  flex: 1; min-width: 0; padding: 13px 16px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--panel); color: var(--ink);
}
.bigsearch button {
  padding: 13px 22px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.examples { margin-top: 12px; font-size: 14px; color: var(--faint); }
.examples a { color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---- stat strip ---- */
.stats { display: flex; flex-wrap: wrap; gap: 34px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.stat span { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

/* ---- layout ---- */
main { padding: 32px 0 64px; }
h2.sec {
  font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 34px 0 14px;
  letter-spacing: -0.01em;
}
h2.sec:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---- lists ---- */
.row { padding: 13px 0; border-bottom: 1px solid var(--line); display: block; }
.row:hover { text-decoration: none; }
.row:hover .row-title { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.row-title { font-weight: 500; display: block; margin-bottom: 3px; }
.row-meta { font-size: 13.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-meta .dot::before { content: "·"; margin-right: 10px; }

.pill {
  display: inline-block; font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.dead { background: color-mix(in srgb, var(--dead) 14%, transparent); color: var(--dead); }
.pill.plain { background: transparent; color: var(--faint); border: 1px solid var(--line); }

.mono { font-family: var(--mono); font-size: 13px; }

/* ---- cards / aside ---- */
aside .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px;
}
aside .box h3 {
  margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  font-weight: 600;
}
aside .box ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
aside .box li { padding: 5px 0; border-bottom: 1px solid var(--line); }
aside .box li:last-child { border-bottom: 0; }
aside .box p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

/* ---- detail pages ---- */
.crumb { font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
h1.doc {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 33px); line-height: 1.22;
  margin: 0 0 12px; letter-spacing: -0.015em; font-weight: 600;
}
.docmeta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.facts { border-top: 1px solid var(--line); margin: 24px 0; }
.facts div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { flex: 0 0 150px; color: var(--faint); }
.facts dd { margin: 0; flex: 1; min-width: 0; }
/* The extracted contract facts, on the record's own page. Deliberately the loudest block
   above the fold: it is what the reader followed the link for. */
.cpanel {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--panel);
  padding: 16px 18px 12px; margin: 0 0 26px;
}
.cpanel h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--faint); margin: 0 0 10px; font-weight: 600; font-family: inherit;
}
.cpanel dl { margin: 0; }
.cpanel dl div {
  display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.cpanel dl div:last-child { border-bottom: 0; }
.cpanel dt { flex: 0 0 110px; color: var(--faint); }
.cpanel dd { margin: 0; flex: 1; min-width: 0; }
.cpanel dd.big { font-size: 17px; font-weight: 600; }
.cpanel .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--faint); margin-top: 2px; }
.cpanel .sub.warn { color: var(--warn); font-weight: 500; }
.cpanel .cnote { margin: 10px 0 0; font-size: 13px; }
.cpanel .cnote.sub { color: var(--faint); }
@media (max-width: 560px) {
  .cpanel dl div { flex-direction: column; gap: 2px; }
  .cpanel dt { flex: none; }
}

/* Monthly / annual choice on the pricing page. */
.priceAlt { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.cadence { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 14px 0 0; }
.cadence legend {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); padding: 0 5px;
}
.cadence label { display: flex; align-items: baseline; gap: 9px; padding: 6px 0; font-size: 14.5px; cursor: pointer; }
.cadence input { margin: 0; flex: none; }
.cadence em { font-style: normal; color: var(--ok); font-size: 13px; margin-left: 6px; }

/* Company card above search results, when the query is a company we know. */
.cocard {
  display: block; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--panel);
  padding: 13px 16px; margin: 0 0 18px; text-decoration: none; color: var(--ink);
}
.cocard:hover { border-color: var(--accent); text-decoration: none; }
.cocard .colabel {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); margin-bottom: 3px;
}
.cocard strong { font-size: 17px; display: block; }
.cocard .cometa { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.cocard .cometa em { font-style: normal; color: var(--warn); }
.cocard .cogo { display: block; font-size: 13.5px; color: var(--accent); margin-top: 7px; }

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); opacity: .92; }

/* agenda items */
ol.agenda { list-style: none; margin: 0; padding: 0; counter-reset: item; }
ol.agenda li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.agenda .num { flex: 0 0 46px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); padding-top: 2px; }
ol.agenda .body { flex: 1; min-width: 0; }
ol.agenda .body .t { display: block; margin-bottom: 4px; }

/* jurisdiction grid */
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.jgrid a { background: var(--panel); padding: 12px 14px; display: block; }
.jgrid a:hover { background: var(--accent-soft); text-decoration: none; }
.jgrid b { display: block; font-weight: 500; font-size: 15px; }
.jgrid span { font-size: 12.5px; color: var(--faint); }

/* search */
.searchsum { font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.empty { padding: 40px 0; color: var(--muted); }
.pager { display: flex; gap: 12px; margin-top: 26px; align-items: center; font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line); padding: 30px 0 50px; margin-top: 40px;
  font-size: 13.5px; color: var(--faint); background: var(--panel);
}
footer.site .fl { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer.site a { color: var(--muted); }

.notice {
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius); padding: 13px 16px; margin: 0 0 20px;
  font-size: 14.5px; color: var(--ink); line-height: 1.5;
}
.notice strong { color: var(--warn); }
.jgrid a.arch b::after {
  content: "archive"; font-size: 10px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--warn); margin-left: 7px; vertical-align: 1px;
}

.fld {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
}
.fld:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.alertcta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius); padding: 14px 18px; margin: 22px 0; font-size: 14.5px;
}
.alertcta span { color: var(--ink); }

/* ---- procurement ---- */
.amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted);
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip span { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.tbl tr:hover td { background: var(--accent-soft); }

/* ---- paid product ---- */
.blur { filter: blur(3.5px); user-select: none; letter-spacing: .5px; opacity: .55; }
.row.locked { cursor: pointer; }
.row.locked:hover .row-title { color: var(--accent); }
.lockbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 0;
  background: var(--accent-soft); font-size: 15px;
}
.pricing {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 26px 28px; margin: 26px 0; max-width: 460px;
}
.price b { font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; }
.price span { color: var(--faint); font-size: 16px; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 24px; font-size: 15px; }
ul.ticks li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
ul.ticks strong { color: var(--ink); }

/* ---- homepage rebid band ---- */
.bigband {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  margin: 26px 0 4px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.bigband:hover { text-decoration: none; opacity: .95; }
.bigband b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.bigband span { display: block; font-size: 14.5px; opacity: .85; margin-top: 4px; }
.bigband .go { font-weight: 600; font-size: 15px; white-space: nowrap; opacity: 1; }

/* ---- api docs ---- */
.apiex {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.apiex code {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  background: var(--accent-soft); padding: 3px 8px; border-radius: 3px;
}
.apiex span { color: var(--muted); font-size: 14px; flex: 1; min-width: 180px; }
.apiex .btn { padding: 4px 12px; font-size: 13px; }
code { font-family: var(--mono); font-size: 13px; }
