.parties-overview .election-news {
  padding-top: 32px;
  padding-bottom: 56px;
}

.parties-overview-head {
  margin-bottom: 18px;
}

.parties-overview .hero-title {
  font-size: 20px;
  line-height: 1.2;
}

.parties-directory-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #ededed;
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 0, 0, .07) 0, rgba(212, 0, 0, 0) 34%),
    linear-gradient(135deg, #fff 0%, #f8f8f8 54%, #f3f8fb 100%);
}

.parties-directory-copy,
.parties-directory-stats {
  position: relative;
  z-index: 1;
}

.parties-state-flag {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .42;
  pointer-events: none;
  transform: none;
}

.parties-state-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.parties-state-select span {
  color: #666;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.parties-state-select select {
  min-height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #777 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #777 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  appearance: none;
}

.parties-directory-copy .section-title {
  margin: 0;
}

.parties-title-flag-anchor {
  display: none;
}

.parties-directory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.parties-directory-stats div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.parties-directory-stats strong {
  display: block;
  color: #111;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.parties-directory-stats span {
  display: block;
  margin-top: 8px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.parties-directory-stats small {
  display: block;
  margin-top: 5px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.parties-filterbar {
  position: sticky;
  top: calc(var(--global-bar-height) + var(--election-nav-height));
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 12px 0;
  background: #fff;
  scrollbar-width: none;
}

.parties-filterbar::-webkit-scrollbar {
  display: none;
}

.parties-filterbar button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.parties-filterbar button.is-active {
  border-color: #d40000;
  background: #d40000;
  color: #fff;
}

.parties-overview .coalition-block {
  padding: 46px 0;
  border-bottom: 1px solid #d6d6d6;
}

.parties-overview .coalition-block[hidden] {
  display: none;
}

.parties-overview .coalition-block:first-of-type {
  padding-top: 34px;
}

.parties-overview .coalition-head,
.parties-overview .other-parties-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.parties-overview .coalition-head h2,
.parties-overview .other-parties-head h2 {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.coalition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coalition-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #555;
  font-size: 12px;
  font-weight: 900;
}

.parties-overview .coalition-profile {
  display: grid;
  justify-items: center;
  gap: 14px;
  align-content: start;
  padding: 0;
  color: var(--text);
  text-align: center;
}

.parties-overview .coalition-profile a {
  color: #da2128;
  font-size: 16px;
  font-weight: 700;
}

.parties-overview .coalition-profile a:hover {
  color: #bb0000;
}

.parties-overview .party-member-card {
  min-height: 240px;
  padding: 26px 18px 22px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.parties-overview .party-member-card:hover {
  border-color: #c9c9c9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .parties-directory-intro {
    grid-template-columns: 1fr;
  }

  .parties-filterbar {
    top: calc(var(--global-bar-height) + var(--mobile-masthead-height));
  }
}

@media (max-width: 767px) {
  .parties-overview .election-news {
    padding-top: 0;
  }

  .parties-directory-intro {
    margin-top: 15px;
    margin-bottom: 12px;
    padding: 18px;
  }

  .parties-state-flag {
    top: auto;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 54%;
    object-position: right bottom;
    opacity: .1;
  }

  .parties-title-flag-anchor {
    display: none;
  }

  .parties-directory-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .parties-directory-stats div {
    min-height: 82px;
    padding: 10px 8px;
  }

  .parties-directory-stats strong {
    font-size: 26px;
  }

  .parties-directory-stats span {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .parties-directory-stats small {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.2;
  }

  .parties-overview .coalition-block {
    padding: 34px 0;
  }

  .parties-overview .coalition-block:first-of-type {
    padding-top: 28px;
  }

  .parties-overview .coalition-head,
  .parties-overview .other-parties-head {
    gap: 10px;
    margin-bottom: 22px;
  }

  .parties-overview .coalition-head h2,
  .parties-overview .other-parties-head h2 {
    font-size: 18px;
  }
}
