/* SMACSS Module: the map source credit — shown whenever a swisstopo raster
   background is active, as their terms of use require. Its visibility lives as
   `is-visible` on the element. */
.attribution {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  /* Keeps the writing clear of a rounded screen's edge and the home
     indicator. */
  padding: 2px calc(8px + env(safe-area-inset-right))
    calc(2px + env(safe-area-inset-bottom)) 8px;
  border-radius: 6px 0 0 0;
  background: var(--color-surface-translucent);
  backdrop-filter: blur(6px);
  color: var(--color-text);
  font-size: 11px;
  display: none;
}

.attribution.is-visible {
  display: block;
}

.attribution-source {
  color: inherit;
  text-decoration: underline;
}

@media (hover: hover) {
  .attribution-source:hover {
    color: var(--color-control-text);
  }
}
