/* Mapa do Brasil */
.mapa {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  gap: 8px;
  align-content: start;
}
.mapa figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  font-size: 14px;
}
.mapa svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}
.mapa path {
  fill: var(--m0);
  stroke: var(--m-borda);
  stroke-width: 1.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.15s;
}
.mapa path:hover {
  filter: brightness(0.93);
}
.mapa path.sel {
  stroke: var(--m-sel);
  stroke-width: 4;
}
.mapa path:focus {
  outline: none;
}
.mapa path:focus-visible {
  stroke: var(--tinta);
  stroke-width: 4;
}
.mapa text {
  font:
    600 12px 'Segoe UI',
    sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  fill: var(--tinta);
}
.mapa text.sobre {
  fill: #fff;
}
.mapa .total {
  font-weight: 800;
  font-size: 13px;
}
.mapa text.zero {
  fill: var(--suave);
  font-weight: 500;
}
.mapa text.zero .total {
  font-weight: 600;
}
.mapa text.fora {
  text-anchor: start;
  pointer-events: auto;
  cursor: pointer;
}
.mapa text.fora:hover,
.mapa text.sel.fora {
  text-decoration: underline;
}
.mapa .traco {
  stroke: var(--suave);
  stroke-width: 0.8;
  opacity: 0.7;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .mapa text.sobre {
    fill: #06241c;
  }
}
.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--suave);
}
.legenda span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.legenda i {
  width: 14px;
  height: 12px;
  border-radius: 3px;
}
.dica {
  position: absolute;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 12.5px;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
