/* Historie vedení obce — listina rychtářů / purkmistrů / starostů */

.council-leaders-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.council-leaders-insights-lead,
.council-leaders-insights-extra {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  color: var(--color-text, #1e293b);
}

.council-leaders-insights-extra {
  margin-bottom: 0;
  color: var(--color-text-muted, #475569);
  font-size: 0.95rem;
}

.council-leaders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  border-radius: 12px;
}

.council-leaders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  min-width: 36rem;
}

.council-leaders-table th,
.council-leaders-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border, #e2e8f0) 85%, transparent);
}

.council-leaders-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--color-primary-soft, #e2e8f0) 55%, #fff);
  color: var(--color-text, #0f172a);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.council-leaders-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--color-surface, #fff) 92%, var(--color-primary-soft, #e2e8f0));
}

.council-leaders-table tbody tr:hover td {
  background: color-mix(in srgb, var(--color-primary-soft, #e2e8f0) 35%, #fff);
}

.council-leaders-col-order {
  width: 3.2rem;
  color: var(--color-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.council-leaders-col-period {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-brand, var(--color-primary, #1e5a8a));
}

.council-leaders-col-name {
  font-weight: 600;
  min-width: 10rem;
}

.council-leaders-col-years {
  white-space: nowrap;
  color: var(--color-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.council-leaders-col-house {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted, #64748b);
}

.council-leaders-col-note {
  color: var(--color-text-muted, #475569);
  font-size: 0.88rem;
  max-width: 18rem;
}

.council-leaders-source p {
  margin: 0;
  line-height: 1.55;
  color: var(--color-text-muted, #475569);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .council-leaders-table {
    font-size: 0.86rem;
  }

  .council-leaders-table th,
  .council-leaders-table td {
    padding: 0.45rem 0.5rem;
  }

  .council-leaders-col-note {
    max-width: 12rem;
  }
}
