@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --accent: #174a43;
  --accent-soft: #edf3e6;
  --ink: #203c36;
  --muted: #586b61;
  --line: #dde2d8;
  --surface: #fff;
  --canvas: #f5f5ef;
  --danger: #9b3030;
  --radius: 16px;
  --lime: #d4e7a4;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 14px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.danger {
  color: var(--danger);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--accent);
}
input,
select,
textarea {
  background: white;
  border: 1px solid #c5d0ca;
  border-radius: 9px;
  padding: 10px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
:focus-visible {
  outline: 3px solid #34775b;
  outline-offset: 3px;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.monogram {
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 10px 7px;
  color: var(--accent);
  letter-spacing: -1px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  padding: 11px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
}
nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.account {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
main {
  width: 100%;
  max-width: 1320px;
  padding: 42px 48px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 9px;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 15px;
}
.muted,
small {
  color: var(--muted);
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.toolbar input {
  max-width: 380px;
}
.toolbar select {
  width: auto;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.panel.padded {
  padding: 24px;
}
.panel-heading {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-heading h2 {
  margin: 0;
  font-size: 16px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafbf9;
  padding: 13px 22px;
  font-weight: 600;
}
td {
  padding: 17px 22px;
  border-top: 1px solid #edf0ed;
  font-size: 14px;
}
td small {
  display: block;
}
td a {
  font-weight: 600;
  text-decoration: none;
}
.badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 20px;
  padding: 3px 9px;
  background: #eff3f0;
  color: #596a61;
  white-space: nowrap;
}
.badge.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.inactive {
  background: #f3eeee;
  color: #88665d;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
}
.field small {
  font-weight: 400;
}
.field output {
  display: block;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.span2 {
  grid-column: 1/-1;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}
.form-actions {
  padding-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin: 0;
}
legend {
  font-size: 13px;
  color: var(--muted);
  padding: 0 7px;
}
.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  font-size: 14px;
  margin: 15px 0;
}
.error {
  color: var(--danger);
  background: #fcf0ed;
  padding: 12px;
  border-radius: 5px;
  margin: 14px 0;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(560px, calc(100% - 32px));
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #152a2655;
}
dialog ul {
  padding-left: 20px;
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  display: none;
}
.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 20px;
}
.formula div {
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 7px;
}
.formula small {
  display: block;
}
.pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.breadcrumb {
  font-size: 13px;
  margin-bottom: 20px;
}
.history td {
  vertical-align: top;
  overflow-wrap: anywhere;
  max-width: 280px;
}
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.subtle {
  font-size: 13px;
  color: var(--muted);
}
.inline-status {
  font-size: 12px;
  margin-top: 7px;
}
textarea {
  min-height: 150px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  main {
    padding: 30px 24px;
  }
  aside {
    padding: 24px 14px;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 15px;
  }
  .brand small {
    font-size: 10px;
  }
  .monogram {
    padding: 6px;
  }
  .account {
    display: none;
  }
  nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
  }
  nav a {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  main {
    padding: 25px 16px;
  }
  .page-header {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar input {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    width: 45%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .panel.padded {
    padding: 18px;
  }
  .directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .directory-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .directory-table td {
    padding: 2px 0;
    border: 0;
  }
  .directory-table td:first-child {
    grid-column: 1/2;
  }
  .directory-table td:nth-child(2) {
    grid-column: 1/2;
    font-size: 12px;
    color: var(--muted);
  }
  .directory-table td:nth-child(3) {
    grid-column: 1/2;
    font-size: 12px;
    color: var(--muted);
  }
  .directory-table td:last-child {
    grid-column: 2;
    grid-row: 1/3;
  }
  .formula {
    gap: 9px;
    padding: 14px;
  }
  .formula div {
    padding: 9px;
    font-size: 12px;
  }
  .history th,
  .history td {
    padding: 10px;
    font-size: 12px;
  }
  .form-actions {
    justify-content: stretch;
  }
  .form-actions button {
    flex: 1;
  }
}
[hidden] {
  display: none !important;
}
.gov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 22px;
}
.gov-admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 22px;
}
.attention-item {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.attention-item strong,
.attention-item small {
  display: block;
}
.gov-history,
.gov-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gov-history li,
.gov-file-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.gov-history small,
.gov-file-list small {
  margin-left: auto;
}
.gov-file-list a {
  margin-left: auto;
}
.gov-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.gov-results span {
  min-width: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}
.gov-results strong,
.gov-results small {
  display: block;
}
.gov-draft {
  background: #f3f5f4;
  color: #596a61;
}
.gov-open {
  background: var(--accent-soft);
  color: var(--accent);
}
.gov-cancelled,
.gov-superseded {
  background: #f3eeee;
  color: #88665d;
}
.prose {
  white-space: pre-wrap;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .gov-grid {
    grid-template-columns: 1fr;
  }
  .gov-history li,
  .gov-file-list li {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .gov-history small,
  .gov-file-list small,
  .gov-file-list a {
    margin-left: 0;
    width: 100%;
  }
}

/* VAA workspace: shared family with Hub and Peeloff. */
body {
  background:
    radial-gradient(ellipse at 90% 0, #eaf0e1 0, transparent 48%), var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", sans-serif;
}
h1 {
  font-weight: 750;
}
h2 {
  letter-spacing: -0.025em;
}
main {
  margin-inline: auto;
  min-width: 0;
  padding: 42px 40px 64px;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  background: #fafbf7;
  padding: 28px 18px;
  gap: 22px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  font-size: 18px;
  gap: 10px;
}
.brand small {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  margin-top: 4px;
}
.monogram {
  display: grid;
  place-items: center;
  width: 50px;
  height: 44px;
  flex-shrink: 0;
  padding: 7px;
  background: var(--accent);
  border-radius: 12px;
}
.monogram svg {
  width: 100%;
  fill: none;
  stroke: #e4edce;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-label {
  margin: 20px 12px -10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  font-size: 14px;
  color: #425d50;
}
nav a.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 8px #174a4312;
}
.nav-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
nav a.active .nav-icon {
  color: var(--lime);
}
.hub-link {
  margin: 8px 12px;
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.account {
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  line-height: 1.8;
}
#nav-toggle {
  display: none;
}
.page-header {
  align-items: flex-start;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.page-header .muted {
  margin: 0;
  max-width: 640px;
}
.page-header .actions {
  flex-shrink: 0;
}
button,
.button {
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover:not(:disabled),
.button:hover {
  background: #f0f4e9;
  border-color: #9eaf9c;
}
button.primary:hover:not(:disabled),
.button.primary:hover {
  background: #103b35;
  border-color: #103b35;
}
button.danger {
  border-color: #c9a39b;
  background: #fff9f6;
}
button:disabled {
  opacity: 1;
  color: #657167;
  background: #e8ece5;
  border-color: #ccd4c8;
  cursor: not-allowed;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
nav a:hover {
  text-decoration: none;
  background: #eaf0e2;
  color: var(--accent);
}
nav a.active:hover {
  background: #103b35;
  color: white;
}
.panel {
  box-shadow: 0 3px 12px #203c3604;
}
.panel-heading {
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
}
.panel.padded,
.padded {
  padding: 24px;
}
.panel.padded > .padded {
  padding: 0;
}
.toolbar {
  flex-wrap: wrap;
  padding: 14px;
  background: #ffffffa6;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toolbar input {
  flex: 1;
}
.toolbar label {
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 5px;
}
td {
  padding: 15px 22px;
  vertical-align: top;
}
th {
  background: #f5f7f0;
  color: #53664d;
}
tr:hover td {
  background: #fafbf6;
}
td small {
  margin-top: 4px;
  font-size: 12px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  background: #eef1ea;
  color: #52614f;
}
.badge.active,
.gov-open {
  color: #275943;
  background: #e8f0df;
}
.badge.inactive,
.gov-cancelled,
.gov-superseded {
  color: #794d42;
  background: #f7ede7;
}
.gov-draft {
  color: #52614f;
}
input,
select,
textarea {
  border-color: #82917d;
  min-height: 44px;
}
input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
input[type="file"] {
  padding: 8px;
  background: #fafbf7;
  font-size: 13px;
}
input::file-selector-button {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-right: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
textarea {
  resize: vertical;
}
.field {
  gap: 8px;
  min-width: 0;
}
.field + .field {
  margin-top: 0;
}
dialog > .field {
  margin-top: 16px;
}
.check {
  min-height: 44px;
}
fieldset {
  padding: 18px;
  min-width: 0;
}
fieldset .field {
  margin-block: 12px;
}
legend {
  color: var(--ink);
  font-weight: 600;
}
.form-actions {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
form > .primary,
form > button {
  margin-top: 20px;
}
.notice {
  border-radius: 0 10px 10px 0;
  color: #315b43;
}
.error {
  color: #8a2828;
  background: #fff0eb;
  border: 1px solid #e2b8ab;
}
[aria-invalid="true"] {
  border-color: var(--danger);
}
dialog {
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 24px 80px #173f3733;
  max-height: calc(100dvh - 32px);
}
dialog::backdrop {
  background: #132f2966;
  backdrop-filter: blur(3px);
}
#toast {
  z-index: 20;
  max-width: min(480px, calc(100vw - 32px));
  box-shadow: 0 8px 30px #173f3726;
}
.empty {
  padding: 40px 24px;
}
.empty h2 {
  font-size: 17px;
}
.empty p {
  max-width: 430px;
  margin: 8px auto 0;
  font-size: 14px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.table-scroll {
  max-width: 100%;
  scrollbar-color: #9eaf9c #f5f5ef;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 16px;
  background: var(--accent);
  color: white;
  margin: 24px 0;
  overflow: hidden;
}
.summary-strip a {
  color: white;
  text-decoration: none;
  padding: 20px 24px;
  border-right: 1px solid #ffffff26;
}
.summary-strip a:last-child {
  border: 0;
}
.summary-strip strong {
  display: block;
  font:
    650 30px "Manrope",
    sans-serif;
  color: var(--lime);
}
.summary-strip span {
  font-size: 13px;
}
.summary-strip a:hover {
  background: #ffffff0c;
}
.gov-grid {
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.7fr);
  align-items: start;
}
.attention-panel {
  border-top: 3px solid #8ba858;
}
.attention-item {
  padding: 16px 0;
}
.attention-item small {
  margin-top: 5px;
}
.matter-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.matter-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.matter-card:hover {
  border-color: #8fa480;
  text-decoration: none;
  background: #fafcf6;
}
.matter-card strong {
  font:
    700 16px/1.5 "Manrope",
    sans-serif;
}
.matter-card small {
  font-size: 12px;
}
.matter-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}
.section-header h2 {
  margin: 0;
}
.gov-admin-links {
  padding-top: 18px;
}
.gov-admin-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.admin-controls {
  border: 1px solid #cccdbb;
  background: #f4f4eb;
  padding: 18px 22px;
  border-radius: 12px;
  margin: 20px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 600;
}
.admin-controls p {
  margin-top: 12px;
}
.vote-panel {
  border-top: 4px solid var(--accent);
}
.vote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vote-question {
  font:
    650 22px/1.45 "Manrope",
    sans-serif;
  margin: 18px 0;
}
.vote-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  gap: 18px;
}
.vote-facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.vote-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e5eadd;
  accent-color: var(--accent);
  margin: 12px 0 20px;
}
progress::-webkit-progress-bar {
  background: #e5eadd;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 8px;
}
.gov-vote-form fieldset {
  border: 0;
  padding: 0;
}
.gov-vote-form legend {
  padding: 0;
  margin-bottom: 12px;
}
.ballot-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.ballot-options .check {
  padding: 14px;
  border: 1px solid #82917d;
  border-radius: 10px;
}
.ballot-options .check:has(:checked) {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 13px;
}
.gov-results span {
  flex: 1;
  background: #f8faf3;
  border-radius: 10px;
}
.gov-results strong {
  font:
    700 26px "Manrope",
    sans-serif;
}
.decision-panel {
  background: #f8faf3;
}
.next-step {
  border-top: 4px solid #8ba858;
  background: #fbfcf7;
}
.next-step h2 {
  margin-bottom: 6px;
}
.next-step > p {
  max-width: 720px;
}
.next-step .actions {
  margin-top: 16px;
}
.form-actions .spacer {
  flex: 1;
}
fieldset.plain {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.vote-setup {
  margin-top: 24px;
  padding: 20px;
}
.vote-setup > legend {
  font-weight: 650;
  color: var(--accent);
}
.hold-vote {
  font-weight: 600;
  margin-bottom: 18px;
}
.ballot-types {
  gap: 10px 22px;
}
.question-list {
  display: grid;
  gap: 16px;
}
.question-list:has(.question-block + .question-block) .question-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.question-block {
  display: grid;
  gap: 14px;
}
.question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.link-button {
  border: 0;
  background: none;
  padding: 4px 0;
  min-height: 0;
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vote-questions {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.vote-questions > li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.vote-questions h3 {
  margin: 0;
  font-size: 15px;
}
.vote-questions h4 {
  margin: 14px 0 8px;
  font-size: 14px;
}
.vote-questions .vote-question {
  font-size: 18px;
  margin: 10px 0;
}
.gov-vote-form fieldset + fieldset {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.matter-defaults {
  margin: 18px 0 0;
}
.vote-advanced summary {
  font-size: 13px;
  color: var(--accent);
}
.vote-advanced > .grid {
  margin-top: 14px;
}
.list-row,
.panel-heading,
.gov-file-list li {
  overflow-wrap: anywhere;
}
.panel.padded > .actions + h3 {
  margin-top: 28px;
}
@media (max-width: 1100px) {
  main {
    padding: 32px 24px;
  }
  .page-header {
    flex-wrap: wrap;
  }
  .gov-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  main {
    padding: 26px 16px 44px;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
  }
  .monogram {
    width: 46px;
    height: 40px;
  }
  #nav-toggle {
    display: inline-flex;
  }
  .sidebar .nav-label,
  .sidebar .hub-link {
    display: none;
  }
  #navigation {
    display: none;
  }
  .sidebar.menu-open #navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar.menu-open .hub-link,
  .sidebar.menu-open .account {
    display: flex;
    margin: 0;
    padding: 8px 12px;
  }
  .sidebar.menu-open .account {
    display: block;
  }
  nav a {
    white-space: normal;
    padding: 10px;
  }
  .page-header .actions {
    flex-shrink: 1;
  }
  .panel.padded,
  .padded {
    padding: 18px;
  }
  .toolbar {
    padding: 10px;
  }
  .toolbar input {
    width: 100%;
  }
  .summary-strip {
    margin: 18px 0;
  }
  .summary-strip a {
    padding: 14px 12px;
  }
  .summary-strip strong {
    font-size: 24px;
  }
  .summary-strip span {
    font-size: 11px;
  }
  .matter-cards,
  .vote-facts {
    grid-template-columns: 1fr;
  }
  .vote-facts {
    gap: 14px;
  }
  .vote-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
  }
  .vote-facts dd {
    text-align: right;
  }
  .vote-question {
    font-size: 19px;
  }
  .directory-table td {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .directory-table tr {
    gap: 2px 12px;
  }
  .panel-heading {
    padding: 16px 18px;
  }
  .list-row {
    flex-wrap: wrap;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
  #toast {
    bottom: 16px;
    right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Route focus announces the new heading without styling it as a control. */
h1[tabindex="-1"]:focus {
  outline: none;
}

.summary-strip:has(#certification-count) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#active-votes .matter-cards {
  grid-template-columns: 1fr;
}
@media (max-width: 700px) {
  .summary-strip:has(#certification-count) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-strip a {
    border-bottom: 1px solid #ffffff26;
  }
}

@media (max-width: 700px) {
  .toolbar input {
    flex: 1 1 100%;
  }
}
