@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  --ink: #1e3932;
  --green: #225446;
  --paper: #f7f6f1;
  --line: #d9ddd4;
  --muted: #69746b;
  --lime: #dce8b0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b37334;
  outline-offset: 4px;
}
button {
  color: inherit;
}
.topbar {
  min-height: 94px;
  height: auto;
  max-width: 1440px;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand strong {
  font-weight: 700;
}
.brandmark {
  width: 37px;
  height: 40px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: bold;
  position: relative;
  line-height: 40px;
}
.brandmark span {
  position: absolute;
  font: 20px Arial;
  right: 0;
  top: 0;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  padding: 6px 0;
}
.nav-active {
  border-bottom: 1px solid var(--green);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
}
.link:hover,
a:hover {
  text-decoration: underline;
}
.version {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.hero {
  max-width: 1440px;
  margin: auto;
  padding: 72px 6% 67px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 45px;
}
.eyebrow,
.section-number {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #718d56;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(47px, 5.6vw, 78px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -2.3px;
  margin: 28px 0 24px;
}
h1 em {
  color: #648158;
  font-weight: 400;
}
h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 13px 0 14px;
}
.hero p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 65px;
  text-decoration: none;
  border-bottom: 1px solid #9caa94;
  padding: 10px 0 6px;
  margin-top: 5px;
  font-size: 13px;
}
.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #e6e9de;
  border-radius: 3px;
  background-image: linear-gradient(#d5ddcf55 1px, transparent 1px),
    linear-gradient(90deg, #d5ddcf55 1px, transparent 1px);
  background-size: 35px 35px;
}
.nevada-shape {
  width: 188px;
  height: 273px;
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-7deg);
  clip-path: polygon(4% 3%, 98% 3%, 87% 85%, 73% 100%, 0 48%);
  background: linear-gradient(135deg, #275848, #456b53);
  filter: drop-shadow(0 15px 15px #0003);
}
.nevada-shape:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    145deg,
    transparent 0 20px,
    #acc49420 20px 21px
  );
}
.orbit {
  position: absolute;
  border: 1px solid #a3b49b66;
  border-radius: 50%;
  width: 430px;
  height: 430px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}
.o2 {
  width: 310px;
  height: 310px;
}
.terrain {
  position: absolute;
  border: 1px solid #a3b49b66;
  border-radius: 45%;
  width: 580px;
  height: 180px;
  left: -55px;
  top: 210px;
  transform: rotate(-26deg);
}
.t2 {
  top: 250px;
  left: -90px;
}
.map-label {
  position: absolute;
  left: 30px;
  top: 25px;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.9;
}
.map-label small {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #73806e;
}
.coordinate {
  position: absolute;
  bottom: 21px;
  left: 25px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #5e705c;
}
.art-caption {
  position: absolute;
  bottom: 40px;
  right: 25px;
  line-height: 1.7;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.scopebar {
  margin: 0 auto;
  max-width: 1440px;
  padding: 23px 6%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 55px;
  background: #f0f1e9;
}
.scopebar > div {
  display: grid;
  gap: 3px;
}
.mini-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 600;
}
.scopebar strong {
  font-size: 12px;
  font-weight: 500;
}
.scopebar .scope-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 65px;
  max-width: 1440px;
  padding: 60px 6% 68px;
  margin: auto;
}
.section-number {
  color: #78876d;
  font-size: 9px;
}
.muted {
  color: var(--muted);
}
.proposal-panel .muted {
  font-size: 13px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 155px;
  margin-top: 9px;
  background: #fffefa;
  border: 1px solid #c8d0c1;
  border-radius: 5px;
  padding: 15px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}
textarea::placeholder {
  color: #8b9386;
}
.input-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0 17px;
}
.primary,
.secondary {
  border-radius: 4px;
  padding: 11px 15px;
  border: 1px solid var(--green);
  font-weight: 500;
  font-size: 12px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #153e32;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  background: transparent;
  border-color: var(--line);
}
.secondary:hover {
  background: #e8ecdf;
}
form .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.try-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 27px 0 10px;
}
.examples {
  display: grid;
  gap: 8px;
}
.examples button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.examples button:hover {
  background: #eef1e4;
  border-color: #a4b795;
}
.note {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.note strong {
  color: #3e5547;
  font-weight: 500;
}
.note p {
  margin: 0;
}
.proposal-review {
  background: #ebefdf;
  padding: 16px;
  border-radius: 4px;
  margin-top: 22px;
}
.proposal-review p {
  font-size: 12px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.proposal-review .small {
  font-size: 10px;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 10px;
  border: 1px solid #c8d4b8;
  padding: 2px 7px;
  border-radius: 3px;
}
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-top .secondary {
  font-size: 10px;
  padding: 6px 11px;
}
.results-top h2 {
  margin-bottom: 12px;
}
.results-panel > .muted {
  font-size: 12px;
}
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 22px 0 16px;
}
.filter-row select {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 28px 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--ink);
}
#result-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.results {
  display: grid;
  gap: 13px;
}
.bill-card {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 5px;
  padding: 21px 23px;
  transition: border-color 0.2s;
}
.bill-card:hover {
  border-color: #a5b39b;
}
.card-top {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.bill-num {
  font-size: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge {
  margin-left: auto;
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #e6efdf;
  color: #426338;
}
.badge.vetoed {
  background: #f4e6dd;
  color: #8b5a3b;
}
.badge.stalled {
  background: #eeece4;
  color: #776d4f;
}
.bill-card h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  margin: 13px 0 8px;
  letter-spacing: -0.3px;
}
.bill-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
  line-height: 1.7;
}
.matched {
  border-left: 2px solid #a1b586;
  padding-left: 10px;
  font-size: 10px;
  color: #60734e;
  margin: 12px 0;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e8eadf;
}
.card-bottom label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
}
.card-bottom button {
  font-size: 11px;
}
.collection-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #7c8674;
}
.collection-footer button {
  font-size: 10px;
  letter-spacing: 0;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #bcc7b0;
  border-radius: 5px;
}
.empty h3 {
  font:
    27px "Libre Caslon Display",
    Georgia,
    serif;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.next-section {
  padding: 43px 6%;
  border-top: 1px solid var(--line);
  background: #eaf0df;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: 60px;
}
.next-section .section-number {
  grid-column: 1/-1;
}
.next-section h2 {
  font-size: 39px;
  margin-bottom: 0;
}
.next-section p {
  font-size: 13px;
  color: #61705b;
  max-width: 430px;
  align-self: center;
  margin: 18px 0 0;
}
footer {
  padding: 27px 6% 85px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #65745e;
  max-width: 1440px;
  margin: auto;
}
.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(650px, 94%);
  background: #183b34;
  color: white;
  padding: 13px 18px;
  box-shadow: 0 10px 40px #10251d33;
  border-radius: 7px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.compare-bar > div {
  display: flex;
  gap: 8px;
}
.compare-bar .secondary {
  color: white;
  border-color: #647e6e;
}
.compare-bar .primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
[hidden] {
  display: none !important;
}
dialog {
  border: 1px solid #c6cfbc;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  width: min(900px, 94vw);
  max-height: 88vh;
  padding: 30px;
}
dialog::backdrop {
  background: #142b2488;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.close {
  font-size: 27px;
  border: 0;
  background: none;
  line-height: 1;
  padding: 3px 8px;
}
.dialog-title {
  font:
    39px "Libre Caslon Display",
    Georgia,
    serif;
  margin: 10px 0;
}
.detail-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.detail-block h3 {
  font-size: 12px;
  margin: 0 0 7px;
}
.detail-block p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.source-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 20px;
}
.vote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin: 12px 0;
}
.vote-bar {
  display: flex;
  height: 6px;
  width: 120px;
  background: #e1bba7;
  border-radius: 5px;
  overflow: hidden;
}
.vote-bar span {
  background: #67865a;
}
.vote-row small {
  color: var(--muted);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.compare-grid h3 {
  font-size: 21px;
  line-height: 1.4;
}
.compare-grid .badge {
  display: inline-block;
  margin: 0 0 15px;
}
.method-list {
  font-size: 13px;
  color: var(--muted);
  padding-left: 22px;
}
.method-list li {
  margin: 12px 0;
}
.skip {
  position: absolute;
  left: 10px;
  top: -90px;
  background: var(--green);
  color: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1450px) {
  .next-section {
    padding-left: calc((100% - 1267px) / 2);
    padding-right: calc((100% - 1267px) / 2);
  }
}
@media (max-width: 1000px) {
  .workspace {
    gap: 30px;
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .scopebar {
    gap: 25px;
  }
  .scope-note {
    max-width: 150px;
  }
  .hero {
    gap: 25px;
  }
  .hero-art {
    min-height: 330px;
  }
  .version {
    display: none;
  }
  .bill-card {
    padding: 18px;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: 74px;
    padding: 0 6%;
  }
  nav {
    gap: 16px;
    font-size: 11px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 30px;
  }
  h1 {
    font-size: 57px;
  }
  .hero-art {
    min-height: 260px;
  }
  .nevada-shape {
    height: 205px;
    width: 142px;
  }
  .hero p {
    font-size: 14px;
  }
  .scopebar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 17px;
    padding: 20px 6%;
  }
  .scopebar .scope-note {
    margin: 0;
    max-width: none;
    font-size: 10px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px 6%;
  }
  .proposal-panel {
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
  .note {
    margin-top: 20px;
  }
  .next-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .next-section h2 {
    font-size: 36px;
  }
  .next-section p {
    margin: 0;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid > article + article {
    border-top: 2px solid var(--line);
    padding-top: 22px;
  }
  dialog {
    padding: 20px;
  }
  .compare-bar {
    font-size: 10px;
    padding: 11px;
  }
  .compare-bar button {
    padding: 8px;
    font-size: 10px;
  }
  .collection-footer {
    letter-spacing: 0.6px;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-row select {
    font-size: 10px;
  }
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  font-size: 10px;
  color: var(--muted);
}
.secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.source-excerpt {
  background: #eaf0df;
  padding: 15px;
  margin: 16px 0;
  border-left: 3px solid #849b6c;
  font-size: 12px;
}
.source-excerpt p {
  margin: 8px 0 !important;
}
.full-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 450px;
  overflow: auto;
  padding: 15px;
  background: #eeeee6;
  font-size: 12px;
  line-height: 1.9;
}
details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0;
}
.bill-card h3 {
  overflow-wrap: anywhere;
}
.card-top > span:nth-child(2) {
  min-width: 0;
}
.bill-card .badge {
  flex-shrink: 0;
}
@media (max-width: 450px) {
  .card-top {
    flex-wrap: wrap;
  }
  .pagination {
    gap: 6px;
  }
  .pagination button {
    padding: 8px;
  }
  .pagination span {
    font-size: 9px;
  }
}

.mode-label {
  margin-top: 15px;
}
#search-mode,
#session-filter {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c8d0c1;
  background: #fffefa;
  color: var(--ink);
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}
#search-status {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 14px;
  min-height: 32px;
}
#search-status[data-state="fallback"] {
  color: #89562d;
}
.evidence-preview {
  font-size: 11px;
  line-height: 1.75;
  padding: 11px 13px;
  margin: 9px 0 15px;
  background: #edf1e5;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.evidence-preview span {
  color: var(--muted);
}

.rerank-option {
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0;
}
.rerank-option .small {
  color: var(--muted);
  font-size: 10px;
}
.review-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero,
.scopebar,
.bill-card {
  animation: rise-in 0.55s ease both;
}
.bill-card:nth-child(2) {
  animation-delay: 0.06s;
}
.bill-card:nth-child(3) {
  animation-delay: 0.12s;
}
.bill-card:hover {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
