/* State voting-leave table. Added October 29, 2026.
   Uses the site's existing tokens; defines no new palette. */

.voting-leave {
  margin: 2rem 0 0;
  padding: clamp(1.1rem, 3vw, 2rem) 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.voting-leave-label {
  margin: 0 0 .5rem;
  color: var(--rust-bright);
  font: 600 .75rem/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.voting-leave h3 {
  margin: 0 0 .9rem;
  font: 700 clamp(1.5rem, 3.6vw, 2.2rem)/1.2 var(--serif);
  text-wrap: balance;
}
.voting-leave > p { margin: 0 0 1rem; line-height: 1.65; max-width: 68ch; }

.voting-leave-legend {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
  max-width: 68ch;
}
.voting-leave-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  line-height: 1.5;
  color: var(--paper-dim);
  font-size: .95rem;
}

.voting-leave-note {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--rust);
  background: rgba(205, 153, 48, .09);
  line-height: 1.6;
  max-width: 68ch;
}

/* --- the list of jurisdictions --- */
.voting-leave-list {
  margin: 1.4rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
}
.voting-leave-list > li { min-width: 0; }

.voting-leave details {
  border: 1px solid var(--line);
  background: rgba(240, 242, 248, .03);
}
.voting-leave details[open] { background: rgba(240, 242, 248, .06); }

.voting-leave summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1rem;
  cursor: pointer;
  list-style: none;
}
.voting-leave summary::-webkit-details-marker { display: none; }
.voting-leave summary::after {
  content: "+";
  margin-left: auto;
  color: var(--paper-dim);
  font: 400 1.3rem/1 var(--mono);
}
.voting-leave details[open] summary::after { content: "\2212"; }
.voting-leave summary:hover { background: rgba(240, 242, 248, .05); }
.voting-leave summary:focus-visible {
  outline: 3px solid var(--rust-bright);
  outline-offset: -3px;
}
.vl-name { font: 600 1.05rem/1.3 var(--sans); }

.vl-badge {
  padding: .2rem .55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 .7rem/1.5 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vl-ok   { color: #7fc99a; }
.vl-part { color: var(--rust-bright); }
.vl-none { color: var(--paper-dim); }

/* --- the opened row --- */
.voting-leave details > :not(summary) { margin-inline: 1rem; }
.voting-leave details > :last-child { margin-bottom: 1rem; }

.vl-summary {
  margin: 0 1rem .9rem;
  padding-top: .2rem;
  line-height: 1.65;
  max-width: 68ch;
}

.vl-fields {
  display: grid;
  grid-template-columns: minmax(8.5rem, 14rem) 1fr;
  gap: .5rem 1.1rem;
  margin: 0 1rem 1rem;
}
.vl-fields dt {
  color: var(--paper-dim);
  font: 600 .8rem/1.5 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.vl-fields dd { margin: 0; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }

.vl-conflict {
  margin: 0 1rem 1rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--rust-bright);
  background: rgba(239, 185, 78, .1);
}
.vl-conflict p { margin: 0 0 .5rem; line-height: 1.6; }
.vl-conflict p:last-child { margin-bottom: 0; }
.vl-conflict-head {
  color: var(--rust-bright);
  font: 600 .75rem/1.5 var(--mono) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vl-limits { margin: 0 1rem 1rem; }
.vl-limits-head {
  margin: 0 0 .4rem;
  color: var(--paper-dim);
  font: 600 .75rem/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vl-limits ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.vl-limits li { line-height: 1.55; color: var(--paper-dim); }

.vl-cites { margin: 0 1rem .8rem; line-height: 1.6; overflow-wrap: anywhere; }

.vl-sources-head {
  margin: 0 1rem .4rem;
  font: 600 .75rem/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.vl-sources { margin: 0 1rem 1rem; padding-left: 1.1rem; display: grid; gap: .6rem; }
.vl-sources li { line-height: 1.55; overflow-wrap: anywhere; }
.vl-sources a { color: var(--violet); }
.vl-src-meta { color: var(--paper-dim); font-size: .88rem; white-space: nowrap; }
.vl-src-note {
  display: block;
  margin-top: .2rem;
  color: var(--paper-dim);
  font-size: .88rem;
  line-height: 1.5;
}

.vl-reviewed {
  margin: 0 1rem 1rem;
  color: var(--paper-dim);
  font: 400 .85rem/1.5 var(--mono);
}

@media (max-width: 560px) {
  .vl-fields { grid-template-columns: 1fr; gap: .2rem .9rem; }
  .vl-fields dd { margin-bottom: .55rem; }
  .vl-src-meta { white-space: normal; }
}
