:root {
  --bg: #f3eee4;
  --paper: #fffdf8;
  --ink: #1c1712;
  --muted: #5c564c;
  --rule: #ddd4c4;
  --rule-strong: #1c1712;
  --accent: #9c1c1c;
  --accent-soft: #f3e4d8;
  --link: #8a1a1a;
  --link-hover: #5c1010;
  --chip: #ece6db;
  --bar-track: #ece6db;
  --bar-fill: #3d4f6e;
  --bar-highlight: #9c1c1c;
  --focus: #1c1712;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antigua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --page: 52rem;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151310;
    --paper: #1e1a16;
    --ink: #f3ece3;
    --muted: #b7aea2;
    --rule: #3a342c;
    --rule-strong: #f3ece3;
    --accent: #e07a6a;
    --accent-soft: #3a2722;
    --link: #e89888;
    --link-hover: #ffd2c8;
    --chip: #2a241e;
    --bar-track: #2a241e;
    --bar-fill: #8aa0c8;
    --bar-highlight: #e07a6a;
    --focus: #f3ece3;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.6rem; }
.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.masthead {
  padding: 1.6rem 0 1.3rem;
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.4rem;
}
.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.site-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--link); }
.dek {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tab, .search input {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.tab {
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  line-height: 1.3;
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tab .count {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.8em;
  opacity: 0.8;
}
.search { flex: 1 1 14rem; }
.search input {
  width: 100%;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.tab:focus-visible, .search input:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.toc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
  margin: 0 0 1.6rem;
}
.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1.2rem;
}
.toc li { margin: 0.25rem 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--link); }
.post {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
  margin: 0 0 1.2rem;
}
.post.is-hidden { display: none; }
.post-header { margin-bottom: 1rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge-governor { background: #ead8d4; color: #6a1616; }
.badge-bills { background: #dce4f0; color: #243552; }
.badge-organizations { background: #dceadf; color: #1d3b2a; }
@media (prefers-color-scheme: dark) {
  .badge-governor { background: #3a2722; color: #f0c2b8; }
  .badge-bills { background: #243044; color: #c9d6ea; }
  .badge-organizations { background: #24362c; color: #c5e0cf; }
}
.cat-label { font-weight: 650; }
.post-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--link); }
.post-body p {
  margin: 0 0 0.95rem;
  font-size: 1.02rem;
}
.post-body p:last-child { margin-bottom: 0; }
.panel, .table-wrap, .facts {
  margin: 0 0 1.05rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.bars { padding: 0.9rem 1rem 1rem; }
.bar-row + .bar-row { margin-top: 0.7rem; }
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.28rem;
}
.bar-track {
  height: 0.55rem;
  background: var(--bar-track);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--bar-fill);
  border-radius: 999px;
}
.bar-row.is-highlight .bar-fill { background: var(--bar-highlight); }
.table-wrap { overflow-x: auto; }
.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.panel-table th, .panel-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.panel-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.panel-table tr:last-child td { border-bottom: 0; }
.facts {
  display: grid;
  gap: 0;
  padding: 0.2rem 0;
}
.fact {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) 1fr;
  gap: 0.7rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.fact:last-child { border-bottom: 0; }
.facts dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.facts dd { margin: 0; }
.sources { margin-top: 1.05rem; }
.sources h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}
.sources a { color: var(--link); font-weight: 650; }
.sources a:hover { color: var(--link-hover); }
.source-meta {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}
.permalink { margin: 0.9rem 0 0; font-size: 0.92rem; }
.permalink a, .back a, .site-footer a { color: var(--link); }
.empty {
  display: none;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
}
.empty.is-visible { display: block; }
.back { margin: 0 0 1rem; font-size: 0.95rem; }
.site-footer {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .scope { margin: 0 0 0.7rem; max-width: 44rem; }
.footer-meta { margin: 0; }
@media (max-width: 640px) {
  html { font-size: 17px; }
  .post { padding: 1.1rem 0.95rem 1rem; }
  .fact { grid-template-columns: 1fr; gap: 0.2rem; }
  .bar-label { flex-direction: column; gap: 0.15rem; }
}
