.districts-cards {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.districts-cards h2 {
  margin-bottom: .75rem;
}
.district-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  --cols: 3;
  --gap: .8rem;
}
@media (min-width: 768px) {
  .district-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --cols: 4;
  }
}
@media (min-width: 1024px) {
  .district-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    --cols: 5;
  }
}
.no-anim .district-card,
.no-anim .district-card__content {
  transition: none !important;
}
.district-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  transition: border-color .2s ease, transform .35s ease;
  will-change: auto;
  min-width: 0;
  contain: content;
  position: relative;
}
.district-card.is-hidden {
  display: none;
}
.district-card:hover {
  transform: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}
.district-card.expanded {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  border-color: #d1d5db;
  transform: translateY(-2px);
  grid-column: 1 / -1;
}
.district-card__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: .6rem .9rem .5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  min-height: 60px;
}
.district-card__head:focus {
  outline: none;
}
.district-card__head:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.district-card__title {
  font-weight: 600;
  color: #0f172a;
  font-size: .8rem;
  line-height: 1.2;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}
.district-card__zip {
  font-size: .7rem;
  color: #6b7280;
  display: block;
}
.district-card__collapse {
  position: absolute;
  top: .45rem;
  right: .45rem;
  display: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.district-card__collapse span {
  line-height: 1;
}
.district-card__collapse:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.district-card.expanded .district-card__collapse {
  display: inline-flex;
}
.district-card__collapse:hover {
  background: #f3f4f6;
}
.districts-cards__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  padding: .65rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.districts-cards__more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.districts-cards__more:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.districts-cards__more.is-hidden {
  display: none !important;
}
.district-card:not(.expanded) .district-card__title {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.district-card.expanded .district-card__title {
  white-space: normal;
  font-size: 1rem;
  font-weight: 700;
}
.district-card.expanded .district-card__zip {
  font-size: 1rem;
  font-weight: 700;
}
.district-card__content {
  padding: 0 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s ease, opacity .35s ease, padding .35s ease;
}
.district-card.expanded .district-card__content {
  padding: .25rem 1rem 1rem;
  max-height: 520px;
  opacity: 1;
}
.district-card__content p {
  margin: .25rem 0 .75rem;
  color: #334155;
}
.district-card__link {
  color: #c45512;
  text-decoration: none;
  font-weight: 700;
}
.district-card__link:hover {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .district-card,
  .district-card__content {
    transition: none !important;
  }
}
