:root {
  --bg: #0f131a;
  --surface: #171d27;
  --header-bg: #11192a;
  --ink: #f3f5f8;
  --muted: #9aa6b8;
  --border: #273142;
  --accent: #6ea8fe;
  --civic-red: #c8323c;
  --civic-white: #eef2f7;
  --civic-blue: #2b6cb0;
  --pending-bg: #3b2d10;
  --pending-ink: #fcd34d;
  --argued-bg: #172554;
  --argued-ink: #93c5fd;
  --decided-bg: #143321;
  --decided-ink: #86efac;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
header.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.civic-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.civic-bar span:nth-child(1) { flex: 1; background: var(--civic-red); }
.civic-bar span:nth-child(2) { flex: 1; background: var(--civic-white); }
.civic-bar span:nth-child(3) { flex: 1; background: var(--civic-blue); }
.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0;
}
.brand-group { display: flex; flex-direction: column; gap: 0.1rem; }
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--civic-white);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav-links a { color: var(--civic-white); text-decoration: none; opacity: 0.88; }
.nav-links a:hover { opacity: 1; color: var(--accent); text-decoration: underline; }
main.wrap {
  flex: 1 0 auto;
  width: 100%;
  padding: 3.5rem 1.5rem 5.5rem;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}
h1 { font-size: 2.05rem; margin-top: 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0.35rem; margin-bottom: 1.5rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.55rem 0 1.25rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.badge-pending { background: var(--pending-bg); color: var(--pending-ink); }
.badge-argued { background: var(--argued-bg); color: var(--argued-ink); }
.badge-decided { background: var(--decided-bg); color: var(--decided-ink); }
.terms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 2rem; }
.term-pill {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--civic-white);
}
.term-pill:hover { border-color: var(--accent); color: var(--accent); }
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
}
.search-bar input[type="search"] {
  flex: 1 1 260px;
  padding: 0.7rem 0.95rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.search-bar input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.search-status {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.hidden { display: none; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--civic-blue); }
.card h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { color: var(--accent); text-decoration: underline; }
.card p { margin: 0.5rem 0 0; }
.notice {
  background: var(--surface);
  border-left: 3px solid var(--civic-red);
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.75rem 0;
  border-radius: 0 6px 6px 0;
}
.prose ul { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5rem; }
details.docket-log {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 1rem 1.25rem;
}
details.docket-log summary { cursor: pointer; font-weight: 600; }
table.proceedings {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
table.proceedings th, table.proceedings td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.45rem;
  border-top: 1px solid var(--border);
}
table.proceedings th:first-child, table.proceedings td:first-child {
  white-space: nowrap;
  width: 7.5rem;
  color: var(--muted);
}
footer.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  padding: 2.25rem 0 2.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
