.civic h1,
.survey-wrap h1 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.board-status {
  color: #444;
  margin: -1rem 0 1.25rem;
  max-width: 40rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: #333;
}

.legend span,
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  flex: 0 0 auto;
  font-style: normal;
}

.swatch.green, .nps.green { background: #1f7a4d; }
.swatch.yellow, .nps.yellow { background: #c4920a; }
.swatch.red, .nps.red { background: #b4332a; }
.swatch.gray, .nps.gray { background: #8a8680; }

.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.glance-tile {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 0.8rem;
}

.glance-tile strong { display: block; font-size: 0.92rem; }
.glance-tile em { display: block; font-style: normal; color: #555; font-size: 0.82rem; }

.rate-link {
  display: inline-block;
  margin-bottom: 2rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
}

.rate-link:hover { background: var(--accent); }

.committee {
  margin: 0 0 2.5rem;
  padding-top: 0.25rem;
}

.committee-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
}

.committee-head h2 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.agg {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.member-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 0.9rem 0.7rem;
  cursor: pointer;
}

.member-card h3 { font-size: 1rem; line-height: 1.3; }
.member-card .role { color: #666; font-size: 0.8rem; margin: 0.15rem 0 0.55rem; }

.nps {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 1.02rem;
}

.member-card .meta,
.member-card .towns {
  font-size: 0.78rem;
  color: #555;
  margin-top: 0.35rem;
}

.dims { display: none; margin-top: 0.7rem; }
.member-card.open .dims { display: block; }

.dim {
  display: grid;
  grid-template-columns: 1fr 4.5rem auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.track {
  display: block;
  height: 6px;
  background: #eceae4;
}

.track span {
  display: block;
  height: 100%;
  background: #1a56a0;
}

.summary {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #333;
  max-width: 42rem;
}

.survey-wrap { max-width: 640px; }
.survey-wrap h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.lede { color: #444; margin-bottom: 1.25rem; }

.form-group { margin-bottom: 1.1rem; }
.dimension-row { margin-bottom: 1rem; }
.form-group label,
.dimension-row label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

select, textarea, input[type="range"] { width: 100%; }
select, textarea {
  font: inherit;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0;
}

.town-pick { display: flex; gap: 1.25rem; font-weight: 500; }
.town-pick label { font-weight: 500; }

.dimension-value.green { color: #1f7a4d; }
.dimension-value.yellow { color: #8a6500; }
.dimension-value.red { color: #b4332a; }

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.75rem;
}

.char-count { text-align: right; color: #888; font-size: 0.75rem; }

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 1rem 0;
}

button[type="submit"], .btn-another {
  background: #111;
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

button[type="submit"]:hover, .btn-another:hover { background: var(--accent); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.alert {
  border: 1px solid #b4332a;
  color: #7a1f16;
  padding: 0.6rem 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert.ok { border-color: #1f7a4d; color: #1a4d30; }

.fine {
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  .glance { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .glance { grid-template-columns: 1fr; }
}
