:root {
  scroll-padding-top: 6rem;
}

nav a:not(:has(img)),
footer a,
main a:not(.inline-flex),
#manage-cookies,
.cookie-preferences a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

nav a:not(:has(img)):hover,
footer a:hover,
main a:not(.inline-flex):hover,
#manage-cookies:hover,
.cookie-preferences a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}

.cookie-preferences {
  position: fixed;
  z-index: 60;
  inset-inline: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 32rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1rem;
  margin-inline: auto;
  border: 1px solid #0f766e;
  border-radius: 1rem;
  background: #fff;
  color: #134e4a;
  box-shadow: 0 8px 24px rgb(19 78 74 / 20%);
}

.cookie-preferences h2 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-actions button {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #0f766e;
  border-radius: 0.5rem;
  font-weight: 600;
}

.cookie-actions button:hover {
  background: #ccfbf1;
}

.page-loading {
  display: none;
}

[data-page-loading="true"] .page-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--page-loading-background, #fff);
  visibility: hidden;
  animation: page-loading-visibility 1.5s steps(1, end) 150ms;
}

.page-loading img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

@keyframes page-loading-visibility {
  0% {
    visibility: visible;
  }
  100% {
    visibility: hidden;
  }
}
