.wx-map {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  background: #07131f;
}

.wx-map__canvas {
  position: absolute;
  inset: 0;
}

.wx-map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--text, #f4f8fb);
  background: linear-gradient(180deg, rgb(7 19 31 / 82%), rgb(7 19 31 / 96%));
  text-align: center;
}

.wx-map:not(.wx-map--failed) .wx-map__fallback {
  display: none;
}

.wx-map .maplibregl-ctrl-group,
.wx-map .maplibregl-ctrl-attrib {
  color: #16212a;
}

/* MapLibre's attribution links are told apart from their sentence by an underline, not by
   colour alone (WCAG 1.4.1): its own sheet colours them a grey that sits at 1.6:1 against the
   text around them. Two classes deep so the rule wins whichever sheet loads last. */
.wx-map .maplibregl-ctrl-attrib a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  .wx-map .maplibregl-canvas {
    scroll-behavior: auto;
  }
}
