.source-actions {
  max-width: min(68vw, 760px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar { height: auto; min-height: 84px; padding-top: 12px; padding-bottom: 12px; gap: 16px; }

[hidden] { display: none !important; }

#showCityButton { margin-top: 24px; }

.notice-body summary { cursor: pointer; font-weight: 800; }
.notice-body > div, .notice-body-text { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-section blockquote { overflow-wrap: anywhere; }

.source-badge {
  max-width: 560px;
  text-transform: none;
  line-height: 1.35;
}

.filters {
  grid-template-columns: 1.05fr 1fr 1fr 1fr 1fr 1.8fr;
}

#districtSelect:disabled {
  color: var(--muted);
  background: #e8e4da;
}

@media (max-width: 1050px) {
  .source-badge {
    max-width: 390px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .source-badge {
    display: flex;
    max-width: 280px;
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .source-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
  }

  .source-badge {
    display: flex;
    max-width: none;
    font-size: 9px;
    grid-column: 1 / -1;
  }

  .source-actions .button {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}
.candidate-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
