:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --border: #d6dedb;
  --text: #17211d;
  --muted: #5c6a65;
  --accent: #256f73;
  --accent-2: #8a5f1f;
  --danger: #a83d33;
  --warn: #b7791f;
  --good: #28704c;
  --blue: #2d5f9a;
  --shadow: 0 18px 50px rgba(23, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 32px 18px;
  background: #fbfcfc;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 12px 32px;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 9px 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

main {
  padding: 24px 32px 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  min-height: 96px;
  text-align: left;
}

.metric-button {
  cursor: pointer;
}

.metric-button:hover,
.metric-button:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 111, 115, 0.12);
  outline: none;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric .value {
  display: block;
  margin-top: 10px;
  font-size: 27px;
  line-height: 1;
  font-weight: 750;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.panel-header,
.section-heading {
  margin-bottom: 14px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.map-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.assessment-map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #dfe8e5;
}

.assessment-map .leaflet-pane,
.assessment-map .leaflet-top,
.assessment-map .leaflet-bottom {
  z-index: 1;
}

.assessment-map.map-loading::before {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}

.assessment-map.map-loading::before {
  content: "";
  inset: 0;
  background: rgba(245, 247, 248, 0.76);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.map-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  grid-template-columns: 28px auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(23, 33, 29, 0.18);
}

.assessment-map.map-loading .map-loader {
  display: grid;
}

.map-loader-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #d7e3df;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: mapSpin 900ms linear infinite;
}

@keyframes mapSpin {
  to {
    transform: rotate(360deg);
  }
}

.map-legend {
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
  gap: 6px;
  max-width: none;
  overflow-x: auto;
  padding-bottom: 2px;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.map-legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.map-legend-item:hover {
  border-color: var(--accent);
}

.map-legend-item.selected {
  border-color: var(--accent);
  background: var(--surface-2);
}

.section-heading p {
  margin: 6px 0 16px;
  color: var(--muted);
  max-width: 900px;
}

.explain-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.explain-strip article {
  min-height: 116px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface);
}

.explain-strip h2 {
  font-size: 14px;
  margin-bottom: 6px;
}

.explain-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bar-list,
.compact-list,
.row-list {
  display: grid;
  gap: 10px;
}

.chart-layout {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
}

.donut-wrap svg {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
}

.donut-segment {
  cursor: pointer;
  transition: opacity 120ms ease;
}

.donut-segment:hover {
  opacity: 0.82;
}

.chart-total {
  font-size: 31px;
  font-weight: 800;
  fill: var(--text);
}

.chart-caption {
  font-size: 13px;
  fill: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.legend-chip {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 9px 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.legend-chip:hover {
  border-color: var(--accent);
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.dot-0 {
  background: #2d5f9a;
}

.dot-1 {
  background: #9a6a22;
}

.dot-2 {
  background: #b7791f;
}

.dot-3 {
  background: #a83d33;
}

.dot-4 {
  background: #28704c;
}

.dot-5 {
  background: #5c6a65;
}

.dot-6 {
  background: #94a3a0;
}

.legend-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(145px, 220px) minmax(120px, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.clickable-row {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.clickable-row:hover span:first-child {
  color: var(--accent);
}

.bar-track {
  height: 10px;
  background: #e1e8e5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
}

.compact-item,
.list-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

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

.panel-subheader {
  margin: 18px 0 10px;
}

.first-subheader {
  margin-top: 0;
}

.muted-card {
  background: #f8faf9;
}

.segment-table {
  display: grid;
  gap: 9px;
}

.segment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 54px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfc;
  text-align: left;
  cursor: pointer;
}

.segment-row:hover {
  border-color: var(--accent);
}

.segment-row strong {
  font-size: 20px;
}

.county-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  gap: 18px;
  align-items: start;
}

.county-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  grid-auto-rows: minmax(64px, auto);
  gap: 8px;
  align-content: start;
}

.county-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  min-height: 64px;
  background: var(--pressure-bg, #fbfcfc);
  border-color: var(--pressure-border, var(--border));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.county-tile strong,
.county-tile span {
  display: block;
}

.county-tile span {
  margin-top: 6px;
  color: var(--pressure-text, var(--muted));
  font-weight: 800;
}

.county-tile:hover,
.county-tile.selected {
  border-color: var(--pressure-accent, var(--accent));
  box-shadow: inset 0 0 0 2px var(--pressure-ring, rgba(45, 95, 154, 0.16));
}

.county-tile.pressure-low {
  --pressure-bg: #eef8f1;
  --pressure-border: #b8dbc1;
  --pressure-text: #28704c;
  --pressure-accent: #28704c;
  --pressure-ring: rgba(40, 112, 76, 0.18);
}

.county-tile.pressure-moderate {
  --pressure-bg: #fff2d5;
  --pressure-border: #d79a35;
  --pressure-text: #9a6a22;
  --pressure-accent: #9a6a22;
  --pressure-ring: rgba(154, 106, 34, 0.22);
}

.county-tile.pressure-high {
  --pressure-bg: #fae9e6;
  --pressure-border: #d89a92;
  --pressure-text: #8f352d;
  --pressure-accent: #a83d33;
  --pressure-ring: rgba(168, 61, 51, 0.2);
}

.county-tile.pressure-critical {
  --pressure-bg: #f4d8d4;
  --pressure-border: #c9746b;
  --pressure-text: #7e2f28;
  --pressure-accent: #8f352d;
  --pressure-ring: rgba(143, 53, 45, 0.24);
}

.county-tile.empty {
  display: none;
}

.county-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
  align-self: start;
}

.panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.county-chart {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.county-chart h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stacked-bar {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f4f6f6;
}

.stacked-bar span {
  min-width: 3px;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.health-distressed {
  background: rgb(169, 57, 54);
}

.health-deteriorating {
  background: rgb(184, 118, 48);
}

.health-aging {
  background: rgb(139, 93, 41);
}

.health-monitor {
  background: rgb(92, 106, 101);
}

.health-stable {
  background: rgb(95, 126, 54);
}

.health-other {
  background: #9a6a22;
}

.mini-bar-track i.pressure-low {
  background: #28704c;
}

.mini-bar-track i.pressure-moderate {
  background: #9a6a22;
}

.mini-bar-track i.pressure-high {
  background: #a83d33;
}

.mini-bar-track i.pressure-critical {
  background: #7e2f28;
}

.mini-bars {
  display: grid;
  gap: 7px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.mini-bar-row strong {
  color: var(--text);
  text-align: right;
}

.mini-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f1;
}

.mini-bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.county-town {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  min-height: 63px;
}

.county-town:hover {
  border-color: var(--accent);
}

.county-town-scroll {
  max-height: 284px;
  overflow-y: auto;
  padding-right: 4px;
}

.county-town-scroll::-webkit-scrollbar {
  width: 8px;
}

.county-town-scroll::-webkit-scrollbar-thumb {
  background: #c8d3cf;
  border-radius: 999px;
}

.county-town small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.compact-item p,
.list-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(150px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.toolbar input,
.toolbar select {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--text);
}

.check-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  white-space: nowrap;
  color: var(--muted);
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  max-height: 66vh;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.35;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f3;
  color: #31413b;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8faf9;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge.distressed,
.badge.likely {
  color: #7c2824;
  background: #f8dedb;
}

.badge.deteriorating {
  color: #7a4e08;
  background: #f8ead1;
}

.badge.aging {
  color: #6b421c;
  background: #f2e4d7;
}

.badge.monitor {
  color: #33413e;
  background: #e2e8e6;
}

.badge.healthy,
.badge.stable,
.badge.awarded {
  color: #1f573c;
  background: #dcefe5;
}

.badge.annual {
  color: #4d671f;
  background: #e6f1d5;
}

.badge.active,
.badge.order {
  color: #214b82;
  background: #dce8f8;
}

.badge.neutral {
  color: #465650;
  background: #e7ecea;
}

.score {
  font-weight: 750;
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(760px, 94vw);
  height: 100vh;
  overflow: auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 160ms ease;
}

.detail-panel.open {
  transform: translateX(0);
}

.panel-shade {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(23, 33, 29, 0.28);
}

.panel-shade.open {
  display: block;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfc;
}

.detail-body {
  padding: 18px 22px 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.fact {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.fact strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.source-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .split-layout,
  .county-map-layout,
  .map-header,
  .explain-strip,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .map-header {
    display: block;
  }

  .map-legend {
    justify-content: start;
    margin-top: 12px;
  }

  .finding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-layout {
    justify-items: start;
  }

  .donut-wrap {
    width: min(260px, 100%);
  }
}

@media (max-width: 720px) {
  body {
    background: var(--surface);
  }

  .app-header,
  main,
  .tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-header {
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  main {
    padding-top: 16px;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 4px;
    padding-top: 9px;
    padding-bottom: 9px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    padding: 8px 10px;
    font-size: 14px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
  }

  .metric {
    min-height: 82px;
    padding: 12px;
  }

  .metric .label {
    font-size: 11px;
  }

  .metric .value {
    font-size: 24px;
  }

  .split-layout,
  .panel {
    margin-bottom: 12px;
  }

  .panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 14px 16px;
    margin-left: -16px;
    margin-right: -16px;
  }

  .chart-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .chart-legend {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .legend-chip {
    min-height: 39px;
    padding: 8px;
    gap: 7px;
  }

  .legend-label {
    font-size: 13px;
  }

  .segment-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 9px;
  }

  .segment-row strong {
    font-size: 18px;
  }

  .finding-grid,
  .explain-strip {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-map-layout {
    gap: 12px;
  }

  .county-detail {
    padding: 12px;
  }

  .county-town-scroll {
    max-height: 270px;
  }

  .map-header {
    margin-bottom: 10px;
  }

  .map-legend {
    margin-left: -2px;
    padding: 2px 0 7px;
    scroll-snap-type: x proximity;
  }

  .map-legend-item {
    min-height: 30px;
    scroll-snap-align: start;
  }

  .assessment-map {
    height: 62vh;
    min-height: 360px;
    border-radius: 6px;
  }

  .toolbar {
    gap: 8px;
  }

  .table-meta {
    display: grid;
    gap: 3px;
  }

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

  #municipalityTable {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  #municipalityTable thead {
    display: none;
  }

  #municipalityTable tbody,
  #municipalityTable tr,
  #municipalityTable td {
    display: block;
    width: 100%;
  }

  #municipalityTable tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
  }

  #municipalityTable tr:hover {
    background: var(--surface);
    border-color: var(--accent);
  }

  #municipalityTable td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 38px;
    border-bottom: 1px solid var(--border);
    padding: 9px 11px;
  }

  #municipalityTable td:last-child {
    border-bottom: 0;
  }

  #municipalityTable td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .detail-panel {
    width: 100vw;
  }

  .detail-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px;
  }

  .detail-body {
    padding: 14px 16px 28px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 460px) {
  .app-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  main,
  .tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 20px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .chart-legend,
  .facts,
  .county-map {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 76px;
  }

  .assessment-map {
    height: 56vh;
    min-height: 330px;
  }

  .segment-row {
    grid-template-columns: 1fr auto;
  }

  .segment-row span:last-child {
    grid-column: 2;
    font-size: 13px;
  }

  #municipalityTable td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .badge {
    width: fit-content;
  }
}
