.top-party-tabs {
  margin-top: 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ebe8df;
}

.top-party-tabs button {
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.top-party-tabs button.active {
  background: var(--surface);
  color: var(--teal);
  box-shadow: 0 3px 10px rgba(33, 47, 45, .08);
}

.top-party-tabs small { margin-left: 4px; }

.top-party-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.top-party-row {
  padding: 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eee9de;
}

.top-party-row:last-child { border-bottom: 0; }

.party-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f7ead0;
  color: #8b6417;
  font-size: 10px;
  font-weight: 900;
}

.top-party-copy, .top-party-value { min-width: 0; }
.top-party-copy strong, .top-party-copy small,
.top-party-value strong, .top-party-value small { display: block; }
.top-party-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.top-party-copy small, .top-party-value small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.top-party-value { text-align: right; }
.top-party-value strong { font-size: 10px; white-space: nowrap; }
.top-parties-hero .hero-copy span { max-width: 210px; }
