.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --map-navy: #0e1e40;
  --map-navy-2: #14284f;
  --map-gold: #d7a40a;
  --map-blue: #355070;
  --map-soft: #f5f7fb;
  --map-line: rgba(14, 30, 64, .1);
  --map-muted: #64708a;
  --map-ink: #1c2740;
}

.council-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 164, 10, .18), transparent 28%),
    linear-gradient(135deg, #0e1e40 0%, #09162f 100%);
  color: #fff;
  padding: 52px 0 48px;
}

.council-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.council-breadcrumbs a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.council-badge {
  display: inline-flex;
  border: 1px solid rgba(215, 164, 10, .42);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--map-gold);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.council-title {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.council-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.65;
}

.council-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.council-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 10px 17px;
  font-weight: 900;
  text-decoration: none;
}

.council-button--primary {
  background: var(--map-gold);
  color: var(--map-navy);
}

.council-button--ghost {
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

.council-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.council-section {
  padding: 54px 0;
  background: #fff;
}

.council-section--soft {
  background: var(--map-soft);
}

.council-section-head {
  max-width: 880px;
  margin-bottom: 28px;
}

.council-kicker {
  color: #765900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.council-section h2 {
  margin: 0 0 12px;
  color: var(--map-navy);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.16;
  font-weight: 900;
}

.council-section-text {
  margin: 0;
  color: var(--map-muted);
  font-size: 16px;
  line-height: 1.75;
}

.council-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -24px;
}

.council-kpi {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 18px rgba(14, 30, 64, .07);
}

.council-kpi strong {
  display: block;
  color: var(--map-navy);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.council-kpi span {
  display: block;
  color: var(--map-ink);
  font-weight: 800;
  margin-bottom: 6px;
}

.council-kpi small {
  color: var(--map-muted);
  line-height: 1.45;
}

.council-note {
  border: 1px solid rgba(215, 164, 10, .36);
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(215, 164, 10, .05);
  color: var(--map-ink);
  line-height: 1.72;
}

.council-scope {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: center;
  border-left: 4px solid var(--map-gold);
  padding: 16px 18px;
  background: rgba(215, 164, 10, .08);
  color: var(--map-ink);
  line-height: 1.55;
}

.council-scope strong {
  color: var(--map-navy);
}

.council-scope span {
  color: var(--map-ink);
}
.council-corpus-note {
  margin-top: 12px;
  font-size: .88rem;
  color: rgba(14, 30, 64, .55);
  line-height: 1.55;
}

.council-filters {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(14, 30, 64, .06);
  margin: 22px 0;
}

.council-filter-primary,
.council-filter-advanced {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.council-filter-advanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 16px;
}

.council-advanced {
  border-top: 1px solid var(--map-line);
  border-bottom: 1px solid var(--map-line);
}

.council-advanced summary,
.council-map-source summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--map-navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 44px;
}

.council-advanced summary:focus-visible,
.council-map-source summary:focus-visible {
  outline: 3px solid rgba(215, 164, 10, .42);
  outline-offset: 3px;
}

#advancedFilterCount:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  margin-left: 6px;
  background: var(--map-navy);
  color: #fff;
}

.council-filter-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.council-filter-status > div {
  min-width: 0;
}

#filterResultCount {
  display: block;
  color: var(--map-navy);
  font-size: 14px;
}

.council-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.council-active-filter {
  border: 1px solid rgba(53, 80, 112, .18);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--map-soft);
  color: var(--map-muted);
  font-size: 12px;
}

.council-field label {
  display: block;
  color: var(--map-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.council-field input,
.council-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  color: var(--map-ink);
  background: #fff;
}

.council-field input:focus,
.council-field select:focus,
.council-reset:focus,
.council-pagination button:focus,
.council-map-region:focus {
  outline: 3px solid rgba(215, 164, 10, .35);
  outline-offset: 2px;
}

.council-filter-actions {
  display: flex;
  align-items: end;
}

.council-reset {
  min-height: 44px;
  border: 2px solid var(--map-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--map-navy);
  font-weight: 900;
  cursor: pointer;
  padding: 8px 16px;
}

.council-reset:disabled {
  border-color: rgba(14, 30, 64, .2);
  color: rgba(14, 30, 64, .45);
  cursor: not-allowed;
}

.council-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 22px;
  align-items: start;
}

.council-map-card,
.council-panel,
.council-table-card,
.council-context-card {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(14, 30, 64, .06);
}

.council-map-card {
  padding: 18px;
}

.council-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.council-map-title {
  color: var(--map-navy);
  font-size: 18px;
  font-weight: 900;
}

.council-map-toolbar p {
  margin: 4px 0 0;
  color: var(--map-muted);
  font-size: 13px;
}

.council-map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--map-muted);
  font-size: 12px;
}

.council-map-legend strong {
  margin-right: 2px;
  font-weight: 700;
}

.council-map-legend span {
  width: 18px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(14, 30, 64, .08);
}

.council-map-legend .legend-1 { background: #edf1f7; }
.council-map-legend .legend-2 { background: #c8d5e9; }
.council-map-legend .legend-3 { background: #92aecf; }
.council-map-legend .legend-4 { background: #5a7fad; }
.council-map-legend .legend-5 { background: #355070; }

.council-map-wrap {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.council-map-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
}

.council-map-source {
  border-top: 1px solid var(--map-line);
  margin-top: 12px;
}

.council-map-source p {
  margin: 0 0 8px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.55;
}

.council-map-region {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition: stroke .15s, stroke-width .15s, filter .15s;
}

.council-map-region:hover {
  filter: brightness(.98);
  stroke: var(--map-gold);
}

.council-map-region.is-selected {
  stroke: var(--map-navy);
  stroke-width: 3;
}

.council-map-badge {
  pointer-events: none;
}

.council-map-badge circle {
  fill: #fff;
  stroke: var(--map-gold);
  stroke-width: 3;
  filter: drop-shadow(0 8px 14px rgba(14, 30, 64, .18));
}

.council-map-badge.is-empty circle {
  fill: rgba(255, 255, 255, .72);
  stroke: rgba(100, 112, 138, .42);
  filter: none;
}

.council-map-label {
  pointer-events: none;
  fill: var(--map-navy);
  font-size: 15px;
  font-weight: 900;
}

.council-map-badge.is-empty .council-map-label {
  fill: var(--map-muted);
}

.council-panel {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.council-panel h3 {
  color: var(--map-navy);
  font-size: 22px;
  margin: 0 0 10px;
}

.council-panel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.council-panel-summary div {
  border-radius: 12px;
  background: var(--map-soft);
  padding: 12px;
}

.council-panel-summary strong {
  display: block;
  color: var(--map-navy);
  font-size: 20px;
}

.council-panel-summary span {
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.35;
}

.council-linkage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}

.council-linkage-strip div {
  border: 1px solid rgba(14, 30, 64, .08);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.council-linkage-strip strong {
  display: block;
  color: var(--map-navy);
  font-size: 18px;
  line-height: 1;
  margin-bottom: 5px;
}

.council-linkage-strip span {
  color: var(--map-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.council-record-list {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.council-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 9px;
  padding: 9px 14px;
  background: var(--map-navy);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.council-record-card {
  border: 1px solid var(--map-line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.council-record-card h4 {
  color: var(--map-navy);
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.council-record-meta {
  color: var(--map-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.council-linkage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.council-linkage-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(14, 30, 64, .1);
  color: var(--map-muted);
  background: var(--map-soft);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.council-linkage-badges .is-ready {
  border-color: rgba(215, 164, 10, .36);
  color: var(--map-navy);
  background: rgba(215, 164, 10, .1);
}

.council-record-grid {
  display: grid;
  gap: 6px;
  color: var(--map-ink);
  font-size: 13px;
  line-height: 1.45;
}

.council-record-grid span {
  color: var(--map-muted);
}

.council-record-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--map-line);
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.45;
}

.council-record-source-note {
  margin: 6px 0 0;
  color: var(--map-muted);
  font-size: 11px;
  font-style: italic;
}

.council-date-warning {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  color: #b45309;
  font-size: 12px;
  cursor: help;
  vertical-align: middle;
}

.council-party-block {
  margin-top: 12px;
  border: 1px solid rgba(215, 164, 10, .28);
  border-radius: 12px;
  background: rgba(215, 164, 10, .06);
  overflow: hidden;
}

.council-party-block summary {
  cursor: pointer;
  padding: 11px 13px;
  color: var(--map-navy);
  font-size: 13px;
  font-weight: 900;
  list-style-position: inside;
}

.council-party-block summary:focus-visible {
  outline: 3px solid rgba(215, 164, 10, .35);
  outline-offset: 2px;
}

.council-party-block p {
  margin: 0;
  padding: 0 13px 13px;
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.55;
}

.council-party-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 13px 10px;
}

.council-party-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--map-muted);
  font-size: 11px;
  font-weight: 800;
}

.council-party-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 13px 12px;
  list-style: none;
}

.council-party-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--map-ink);
  font-size: 12px;
}

.council-party-list strong {
  color: var(--map-navy);
}

.council-party-list span {
  color: var(--map-muted);
  white-space: nowrap;
}

.council-party-note {
  border-top: 1px solid rgba(14, 30, 64, .08);
  padding-top: 10px !important;
}

.council-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.council-record-links a {
  color: var(--map-navy);
  font-weight: 900;
  text-underline-offset: 3px;
}

.council-empty {
  color: var(--map-muted);
  line-height: 1.65;
  padding: 14px 0;
}

.council-table-card {
  padding: 22px;
}

.council-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.council-table-head h2 {
  margin: 0;
  color: var(--map-navy);
  font-size: 26px;
}

.council-sort {
  min-height: 44px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--map-ink);
  background: #fff;
}

.council-sort-field {
  min-width: 260px;
}

.council-sort-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--map-navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.council-table-wrap {
  overflow-x: auto;
  max-height: 780px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
}

.council-table {
  width: 100%;
  border-collapse: collapse;
}

.council-table th {
  color: var(--map-navy);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 12px 10px;
  border-bottom: 2px solid rgba(14, 30, 64, .12);
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.council-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(14, 30, 64, .08);
  color: var(--map-ink);
  font-size: 14px;
  vertical-align: top;
}

.council-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(53, 80, 112, .1);
  color: var(--map-navy);
  font-size: 12px;
  font-weight: 900;
}

.council-pill--gold {
  background: rgba(215, 164, 10, .18);
}

.council-pill--yes {
  background: rgba(215, 164, 10, .18);
}

.council-pill--no {
  background: rgba(100, 112, 138, .1);
  color: var(--map-navy);
}

.council-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.council-pagination button {
  min-width: 92px;
  min-height: 44px;
  border: 1px solid var(--map-navy);
  border-radius: 9px;
  background: #fff;
  color: var(--map-navy);
  font-weight: 900;
  cursor: pointer;
}

.council-pagination button:disabled {
  border-color: rgba(14, 30, 64, .18);
  color: rgba(14, 30, 64, .38);
  cursor: not-allowed;
}

.council-pagination span {
  color: var(--map-muted);
  font-size: 13px;
}

.council-context-card {
  padding: 28px;
}

.council-context-card h2 {
  color: var(--map-navy);
  margin: 0 0 12px;
}

.council-context-card p {
  color: var(--map-muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.council-context-details {
  border-top: 1px solid var(--map-line);
  margin-top: 18px;
  padding-top: 4px;
}

.council-context-details summary {
  min-height: 46px;
  cursor: pointer;
  color: var(--map-navy);
  font-weight: 900;
  line-height: 46px;
}

.council-context-details summary:focus-visible {
  outline: 3px solid rgba(215, 164, 10, .42);
  outline-offset: 3px;
}

.council-context-details[open] summary {
  margin-bottom: 12px;
}

.council-placeholder {
  border: 1px dashed rgba(14, 30, 64, .24);
  border-radius: 12px;
  padding: 14px;
  color: var(--map-muted);
  background: var(--map-soft);
}

.council-related-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(215, 164, 10, .28);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(215, 164, 10, .07);
}

.council-related-link span {
  color: #765900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.council-related-link a {
  color: var(--map-navy);
  font-weight: 900;
  text-align: right;
  text-underline-offset: 3px;
}

.council-party-status {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(215, 164, 10, .26);
  border-radius: 12px;
  padding: 14px;
  background: rgba(215, 164, 10, .07);
}

.council-party-status strong {
  color: var(--map-navy);
}

.council-party-status span {
  color: var(--map-muted);
  line-height: 1.55;
}

.council-linked-data {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.council-linked-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.council-linked-metrics div {
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.council-linked-metrics strong {
  display: block;
  color: var(--map-navy);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.council-linked-metrics span {
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 800;
}

.council-linked-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.council-linked-parties li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--map-ink);
}

.council-linked-parties strong {
  color: var(--map-navy);
  font-size: 13px;
}

.council-linked-parties span,
.council-linked-empty {
  color: var(--map-muted);
  font-size: 12px;
}

.council-linked-empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

/* ── Oblast bar chart ─────────────────────────────────────────── */
.council-oblast-chart {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
}

.council-oblast-chart-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--map-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.council-oblast-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.legend-dot--matched {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #2d5bc4;
  flex-shrink: 0;
}

.council-oblast-rows {
  display: grid;
  gap: 5px;
}

.council-oblast-row {
  display: grid;
  grid-template-columns: 140px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.council-oblast-name {
  font-size: 12px;
  color: var(--map-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.council-oblast-bar {
  height: 16px;
  background: rgba(14, 30, 64, .1);
  border-radius: 4px;
  overflow: hidden;
  width: var(--w, 100%);
}

.council-oblast-fill {
  height: 100%;
  width: var(--fw, 0%);
  background: #2d5bc4;
  border-radius: 4px 0 0 4px;
  transition: width .4s ease;
}

.council-oblast-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--map-muted);
  text-align: right;
}

.council-linked-note {
  margin: 0;
  font-size: 12px;
  color: var(--map-muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 480px) {
  .council-oblast-row {
    grid-template-columns: 90px 1fr 22px;
  }
  .council-oblast-name {
    font-size: 11px;
  }
}

.council-error {
  border: 1px solid rgba(215, 164, 10, .38);
  border-radius: 14px;
  padding: 18px;
  background: rgba(215, 164, 10, .09);
  color: var(--map-navy);
}

.corpus-card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--map-navy, #0e1e40);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .council-kpis,
  .council-map-layout,
  .council-linked-parties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .council-filter-primary,
  .council-filter-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .council-field--search {
    grid-column: 1 / -1;
  }

  .council-map-card,
  .council-panel {
    grid-column: 1 / -1;
  }

  .council-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .council-hero {
    padding: 38px 0;
  }

  .council-kpis,
  .council-map-layout,
  .council-panel-summary,
  .council-linkage-strip,
  .council-linked-metrics,
  .council-linked-parties {
    grid-template-columns: 1fr;
  }

  .council-title {
    font-size: clamp(30px, 10vw, 40px);
  }

  .council-lead {
    font-size: 16px;
  }

  .council-hero-actions,
  .council-button {
    width: 100%;
  }

  .council-section {
    padding: 42px 0;
  }

  .council-kpis {
    margin-top: -16px;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .council-kpi {
    padding: 15px;
  }

  .council-kpi strong {
    font-size: 28px;
  }

  .council-kpi small {
    display: none;
  }

  .council-scope,
  .council-filter-primary,
  .council-filter-advanced {
    grid-template-columns: 1fr;
  }

  .council-filters,
  .council-map-card,
  .council-panel,
  .council-table-card,
  .council-context-card {
    padding: 16px;
  }

  .council-filter-status {
    align-items: stretch;
    flex-direction: column;
  }

  .council-reset {
    width: 100%;
  }

  .council-map-toolbar,
  .council-table-head,
  .council-related-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .council-related-link a {
    text-align: left;
  }

  .council-map-wrap {
    min-height: 260px;
  }

  .council-map-legend {
    flex-wrap: wrap;
  }

  .council-sort-field {
    width: 100%;
    min-width: 0;
  }

  .council-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
  }

  .council-table thead {
    display: none;
  }

  .council-table,
  .council-table tbody,
  .council-table tr,
  .council-table td {
    display: block;
    width: 100%;
  }

  .council-table tr {
    border: 1px solid var(--map-line);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
  }

  .council-table td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .council-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--map-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .council-pagination {
    justify-content: space-between;
    gap: 8px;
  }

  .council-pagination button {
    min-width: 76px;
  }
}

@media (max-width: 380px) {
  .council-kpis {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .council-map-region,
  .council-oblast-fill {
    transition: none;
  }
}
