/* Granite State G&C Tracker — design system
   Sharp edges, left-border accents, ink + granite + dome gold.
   Every template uses these classes; there is no Tailwind. */

:root {
  --ink: #0e1726;
  --ink-2: #1b2940;
  --ink-3: #2c3d58;
  --paper: #ffffff;
  --paper-2: #f6f5f1;
  --paper-3: #eeece6;
  --rule: #e2dfd7;
  --rule-2: #cfcabe;
  --text: #1d2433;
  --muted: #5d6675;
  --faint: #8a919c;
  --gold: #b8912f;
  --gold-2: #d9b45a;
  --link: #1f4f8a;
  --red: #b42318;
  --red-bg: #fbf1ef;
  --green: #1d7348;
  --green-bg: #eff7f2;
  --amber: #a15c07;
  --amber-bg: #fdf6ea;
  --blue: #1f4f8a;
  --blue-bg: #eef3fa;
  --rep: #b42318;
  --dem: #1f4f8a;

  --display: "Montserrat", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); }
h2 { font-weight: 800; font-size: 24px; }
h3 { font-weight: 700; font-size: 18px; }
p { margin: 0 0 1em; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.red { color: var(--red); } .green { color: var(--green); } .gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.page { padding-top: 36px; padding-bottom: 72px; }
.stack > * + * { margin-top: 28px; }
.stack-sm > * + * { margin-top: 14px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 28px; }
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1024px) {
  .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none !important; }
}

/* ---------- Navigation (always solid) ---------- */
.nav { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); height: 62px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 800 15px/1 var(--display); letter-spacing: 0.01em; }
.brand-name small { display: none; font: 600 10px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }
.nav-links { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav-links a { display: flex; align-items: center; padding: 0 11px; color: #c9d1de; font: 600 12.5px/1 var(--display); letter-spacing: 0.04em; white-space: nowrap; text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; border-bottom-color: #fff; }
.nav-search { display: flex; align-items: center; background: var(--ink-2); border: 1px solid var(--ink-3); height: 36px; padding: 0 10px; gap: 8px; width: 200px; flex: none; }
.nav-search:focus-within { border-color: var(--gold-2); }
.nav-search svg { width: 15px; height: 15px; color: #8f9bb0; flex: none; }
.nav-search input { background: none; border: 0; outline: 0; color: #fff; font: 400 14px var(--sans); width: 100%; }
.nav-search input::placeholder { color: #8f9bb0; }
.nav-user { color: #c9d1de; font: 600 12px var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nav-user:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--ink-3); color: #fff; width: 40px; height: 36px; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; display: block; }
@media (max-width: 1240px) { .nav-search { width: 150px; } }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-search, .nav-user { display: none; }
  .nav.open .nav-drawer { display: block; }
  .brand { min-width: 0; } .brand-name { white-space: normal; }
}
.nav-drawer { display: none; background: var(--ink); border-top: 1px solid var(--ink-3); padding: 8px var(--gut) 18px; }
.nav-drawer a { display: block; padding: 12px 0; color: #e2e7ef; font: 600 14px var(--display); letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--ink-2); }
.nav-drawer form { display: flex; margin-top: 14px; }
.nav-drawer input { flex: 1; background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff; padding: 11px 12px; font: 400 15px var(--sans); outline: 0; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-photo { position: absolute; inset: 0; background: url("/static/img/statehouse.jpg") center 30% / cover no-repeat; animation: kenburns 38s ease-out both; transform-origin: 50% 35%; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,23,38,.94) 0%, rgba(14,23,38,.86) 42%, rgba(14,23,38,.55) 100%); }
.grain::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gut) 56px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); max-width: 15ch; letter-spacing: -0.02em; }
.hero-lede { color: #d5dce7; font-size: 19px; max-width: 54ch; margin: 18px 0 30px; }
.hero-search { display: flex; max-width: 640px; border: 2px solid var(--gold); background: #fff; }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 16px 18px; font: 400 17px var(--sans); color: var(--text); min-width: 0; }
.hero-search button { border: 0; background: var(--gold); color: var(--ink); font: 800 13px var(--display); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 26px; cursor: pointer; }
.hero-search button:hover { background: var(--gold-2); }
.hero-hints { margin-top: 14px; color: #9fabbe; font-size: 14px; }
.hero-hints a { color: #e6ebf2; border-bottom: 1px solid rgba(255,255,255,.3); }
.hero-hints a:hover { text-decoration: none; border-bottom-color: var(--gold-2); }
.hero-stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 20px 0 22px; border-left: 1px solid rgba(255,255,255,.14); padding-left: 22px; }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat b { display: block; font: 600 26px/1.1 var(--mono); letter-spacing: -0.03em; color: #fff; }
.hero-stat span { font: 700 11px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #9fabbe; }
@media (max-width: 720px) { .hero-stats .wrap { grid-template-columns: repeat(2, 1fr); } .hero-stat:nth-child(3) { border-left: 0; padding-left: 0; } .hero-inner { padding: 48px var(--gut) 40px; } }

/* ---------- Page header (inner pages) ---------- */
.phead { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; background: url("/static/img/statehouse-1200.jpg") right 30% / cover no-repeat; opacity: .16; filter: grayscale(1); }
.phead-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut) 30px; }
.phead h1 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.phead .lede { color: #c3ccd9; margin: 10px 0 0; max-width: 72ch; font-size: 17px; }
.crumbs { font: 700 11px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.crumbs a { color: var(--gold-2); }
.crumbs span { color: #6f7d93; margin: 0 7px; }
.phead-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.phead-stat { padding: 16px 28px 0 0; margin-right: 28px; }
.phead-stat b { display: block; font: 600 22px/1.1 var(--mono); color: #fff; letter-spacing: -0.03em; }
.phead-stat span { font: 700 10.5px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #9fabbe; }
.phead-stat.hot b { color: #ff9c8f; }
.phead-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow { font: 800 11.5px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin-bottom: 4px; }
.section-title h2 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.section-title a, .more { font: 700 12px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); white-space: nowrap; }

/* ---------- Panels (left-border accent, no shadow, no radius) ---------- */
.panel { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ink); }
.panel.accent-gold { border-left-color: var(--gold); }
.panel.accent-red { border-left-color: var(--red); }
.panel.accent-green { border-left-color: var(--green); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.panel-head h2, .panel-head h3 { font: 800 12.5px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.panel-body { padding: 18px 20px; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--rule); background: var(--paper-2); }

/* Linked list rows */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li, .list > a + a { border-top: 1px solid var(--rule); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; color: inherit; border-left: 3px solid transparent; margin-left: -1px; }
a.list-row:hover { background: var(--paper-2); border-left-color: var(--gold); text-decoration: none; }
.list-row .t { font-weight: 600; color: var(--ink); }
.list-row .s { font-size: 14px; color: var(--muted); }

/* Tile links (flat grid) */
.tile { display: block; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--rule-2); color: inherit; background: var(--paper); transition: border-color .15s; }
.tile:hover { border-left-color: var(--gold); text-decoration: none; }
.tile b { display: block; font: 800 15px var(--display); color: var(--ink); }
.tile span { font-size: 14px; color: var(--muted); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); border-left: 4px solid var(--ink); }
.stat { padding: 16px 20px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat .k { font: 800 10.5px var(--display); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 600 24px/1.2 var(--mono); letter-spacing: -0.03em; color: var(--ink); margin-top: 4px; }
.stat .v.red { color: var(--red); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-left: 4px solid var(--ink); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 800 10.5px var(--display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding: 11px 14px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; position: sticky; top: 0; }
.tbl th a { color: var(--muted); }
.tbl th a.sorted { color: var(--ink); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #faf9f5; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl td.num { font-weight: 500; color: var(--ink); }
.tbl td a { color: var(--ink); font-weight: 600; }
.tbl td a:hover { color: var(--link); }
.tbl .desc { color: var(--text); max-width: 64ch; }
.tbl tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl-compact td { padding: 8px 14px; }

/* ---------- Tags / badges (no pills) ---------- */
.tag { display: inline-block; font: 800 10.5px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 7px 4px; border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.tag-approved, .tag-confirmed, .tag-accepted { color: var(--green); }
.tag-denied, .tag-failed, .tag-contested { color: var(--red); }
.tag-tabled { color: var(--amber); }
.tag-withdrawn, .tag-not_used, .tag-pending { color: var(--faint); }
.tag-nominated { color: var(--blue); }
.tag-late { color: var(--amber); }
.tag-sole { color: var(--red); }
.tag-consent { color: var(--muted); }
.tag-type { color: var(--muted); }
.party { display: inline-grid; place-items: center; width: 22px; height: 22px; font: 800 11px var(--display); color: #fff; background: var(--faint); flex: none; }
.party-r { background: var(--rep); } .party-d { background: var(--dem); }

/* Vote squares: one per councilor */
.votes { display: inline-flex; gap: 3px; vertical-align: middle; }
.votes i { width: 13px; height: 13px; display: block; background: var(--green); }
.votes i.no { background: var(--red); }
.votes i.abstain { background: var(--rule-2); }
.votes i.absent { background: transparent; outline: 1px solid var(--rule-2); outline-offset: -1px; }
.votes-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.votes-legend span { display: inline-flex; gap: 6px; align-items: center; }

/* Councilor vote table on item page */
.ballot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); }
.ballot > div { padding: 14px; border-left: 1px solid var(--rule); border-top: 4px solid var(--green); }
.ballot > div:first-child { border-left: 0; }
.ballot > div.no { border-top-color: var(--red); background: var(--red-bg); }
.ballot > div.abstain { border-top-color: var(--rule-2); }
.ballot .who { font-weight: 700; color: var(--ink); }
.ballot .how { font: 800 11px var(--display); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; color: var(--green); }
.ballot .no .how { color: var(--red); }
.ballot .abstain .how { color: var(--faint); }
@media (max-width: 720px) { .ballot { grid-template-columns: 1fr; } .ballot > div { border-left: 0; border-top-width: 0; border-left: 4px solid var(--green); } .ballot > div.no { border-left-color: var(--red); } }

/* Horizontal bars */
.bar { height: 8px; background: var(--paper-3); position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); }
.bar.red > i { background: var(--red); } .bar.gold > i { background: var(--gold); } .bar.green > i { background: var(--green); }
.barrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.barrow:first-child { border-top: 0; }
.barrow .bar { grid-column: 1 / -1; }

/* Column chart (pure CSS) */
.cols { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.cols a, .cols div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; color: var(--muted); text-decoration: none; }
.cols i { display: block; width: 100%; background: var(--ink-3); min-height: 2px; transition: background .15s; }
.cols a:hover i { background: var(--gold); }
.cols small { font: 500 11px var(--mono); margin-top: 6px; }

/* ---------- Matrix (agreement) ---------- */
.matrix { border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 10px 12px; border: 1px solid var(--rule); text-align: center; }
.matrix th { font: 800 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.matrix th.rowh { text-align: left; }
.matrix td { font-family: var(--mono); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 20px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); text-decoration: none; color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 9px 13px; font-size: 11px; }
.btn svg { width: 14px; height: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--gold); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.field.grow { flex: 1; min-width: 220px; }
.field label { font: 800 10.5px var(--display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.input, .select { font: 400 15px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--rule-2); padding: 10px 12px; outline: 0; border-radius: 0; height: 42px; }
.select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235d6675'/%3E%3C/svg%3E") right 11px center no-repeat; }
.input:focus, .select:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check { display: inline-flex; gap: 7px; align-items: center; font-size: 15px; height: 42px; }

.auth { max-width: 420px; margin: 0 auto; }
.auth form > * + * { margin-top: 16px; }
.auth .input { width: 100%; }
.alert { padding: 12px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--red); background: var(--red-bg); color: var(--red); font-size: 15px; }
.alert.ok { border-left-color: var(--green); background: var(--green-bg); color: var(--green); }
.alert.info { border-left-color: var(--gold); background: var(--amber-bg); color: var(--text); }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-size: 14px; color: var(--muted); }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--rule-2); color: var(--ink); font: 600 13px var(--mono); }
.pager a:hover { border-color: var(--ink); text-decoration: none; }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Description / documents ---------- */
.prose { font-size: 17px; line-height: 1.65; max-width: 78ch; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.kv > dt, .kv > dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.kv > dt { font: 800 10.5px/1.9 var(--display); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.kv > dd { color: var(--ink); }
.doc { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.doc:first-child { border-top: 0; }
.doc svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.doc:hover { text-decoration: none; color: var(--link); }

/* Timeline (vendor/councilor history) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule-2); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.timeline li.no::before { background: var(--red); box-shadow: 0 0 0 1px var(--red); }

/* Empty state */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--rule-2); }

/* Highlight search terms */
mark { background: #fbe9b7; color: inherit; padding: 0 1px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #9fabbe; font-size: 14px; border-top: 3px solid var(--gold); margin-top: 0; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { font: 800 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot a { color: #d5dce7; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 26px; border-top: 1px solid var(--ink-3); font-size: 12.5px; color: #7d8aa0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-base a { color: #9fabbe; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Print ---------- */
@media print {
  .nav, .foot, .filters, .pager, .phead-actions, .hero-search { display: none !important; }
  .phead, .hero { background: none; color: #000; }
  .phead::before, .hero-photo, .hero::after { display: none; }
  .phead h1, .hero h1 { color: #000; }
}
