:root {
  --election-accent: var(--green);
  --surface: #f8faf8;
  --line-soft: #e7ece8;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(28 43 35 / 7%);
}

body { font-variant-numeric: tabular-nums; }
header { min-height: 106px; padding-block: 26px 22px; }
.back { border-radius: 4px; }
.back:hover { background: #fff; }

.status-panel,
.metrics article,
.section-card,
.result-summary article {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-panel { min-height: 150px; border-left-width: 6px; }
.metrics { gap: 10px; }
.metrics article { min-height: 82px; }
.result-summary { gap: 10px; }
.result-summary article { min-height: 94px; border: 1px solid #d8e2dc; border-left: 5px solid var(--green); }

.section-card { padding: 22px; }
.section-head { min-height: 58px; align-items: center; }
.section-head h2 { line-height: 1.15; }

.newcomers-grid { gap: 10px; }
.newcomers-grid article { min-height: 148px; border-radius: var(--radius); }
.newcomers-grid .new,
.legend span,
.state-badge { border-radius: 999px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); }
.council-table th { background: #f3f6f4; }
.council-table td { height: 54px; }
.council-table tr:hover td { filter: brightness(.985); }

.party {
  border-radius: var(--radius);
  border-left-width: 5px;
  box-shadow: none;
}
.party-head { min-height: 48px; }
.party-number { border-radius: 3px; }
.bar { overflow: hidden; border-radius: 2px; }
.party details { margin-top: 4px; }
.party summary { min-height: 38px; }
.candidate { min-height: 50px; border-radius: 3px; }

@media (max-width: 700px) {
  header { min-height: 0; padding-block: 22px; }
  .back { width: 100%; text-align: center; }
  .status-panel { min-height: 122px; }
  .section-card { padding: 14px; }
  .section-head { align-items: flex-start; }
  .council-table { min-width: 590px; }
  .council-table th:nth-child(2),
  .council-table td:nth-child(2) { width: 160px; }
}

@media (max-width: 430px) {
  h1 { font-size: 36px; }
  .metrics article { min-height: 72px; padding: 14px; }
}
