/* Preserve the native attribution toggle's space, including after lazy-loaded
   MapLibre styles. Credits wrap within the map instead of underneath the toggle. */
.maplibregl-map .maplibregl-ctrl-bottom-right,
.leaflet-container .leaflet-bottom.leaflet-right {
  max-width: calc(100% - 16px);
}
.maplibregl-map .maplibregl-ctrl-attrib,
.leaflet-container .leaflet-control-attribution {
  box-sizing: border-box;
  max-width: 100%;
  font:
    10px/18px Manrope,
    system-ui,
    sans-serif;
  color: #34453c;
  background: rgba(255, 255, 255, 0.94);
  overflow-wrap: anywhere;
}
.maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact {
  box-sizing: border-box;
  min-height: 24px;
  padding: 2px 24px 2px 0;
}
/* MapLibre also minimizes on map drag by removing compact-show, while the
   native details element can remain open. Match the visible credits. */
.maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show[open] {
  padding: 2px 28px 2px 8px;
}
.maplibregl-map .maplibregl-ctrl-attrib:not(.maplibregl-compact) {
  padding: 2px 8px;
}
.maplibregl-map .maplibregl-ctrl-attrib a,
.leaflet-container .leaflet-control-attribution a {
  color: inherit;
}
.maplibregl-map .maplibregl-ctrl-attrib a:focus-visible,
.leaflet-container .leaflet-control-attribution a:focus-visible {
  outline: 2px solid #2463eb;
  outline-offset: 1px;
}
