/* AidEM logo top left on the map, shared by both pages. Links to the AidEM
   website; the home icon shows on hover and keyboard focus. */
.brand {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #000000;
  text-decoration: none;
  font: 700 24.375px/1.1 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: -0.4875px;
  white-space: nowrap;
}
.brand img {
  display: block;
  flex: none;
}
.brand .home {
  opacity: 0;
  transition: opacity 0.15s;
}
.brand:hover .home,
.brand:focus-visible .home {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .brand .home {
    transition: none;
  }
}

/* Loading screen, over the page until loading.js takes it away */
#loading {
  position: fixed;
  inset: 0;
  z-index: 900; /* under the fade between the two pages (fade.js) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0f0f0;
  color: #000000;
  font: 700 32px/1.1 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: -0.64px;
  transition: opacity 0.4s;
}
#loading img {
  width: 42px;
  height: 42px;
}
/* Under the logo, which stays centred */
#loading span {
  position: absolute;
  top: calc(50% + 42px);
  left: 0;
  right: 0;
  text-align: center;
  font: 400 14px/20px Inter, system-ui, sans-serif;
  letter-spacing: 0;
  color: #a3a3a3;
}
#loading.done {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #loading {
    transition: none;
  }
}
