html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

#dc-root,
#dc-root > .sc-host {
  height: auto !important;
  min-height: 100%;
}

.site-header.is-scrolled {
  background: rgba(243, 248, 252, 0.96) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
}

.site-header > div > a:first-child {
  flex: 0 0 auto;
}

.language-link {
  align-items: center;
  color: var(--afp-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 44px;
  min-width: 28px;
  text-decoration: none;
  text-transform: lowercase;
}

.header-actions {
  align-items: center;
  display: flex !important;
  gap: 6px;
  position: relative;
}

.header-cta {
  text-align: center;
}

.scp0:focus {
  top: 12px !important;
  color: #fff !important;
}

@media (hover: hover) {
  .scp1:hover {
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
  }

  .scp2:hover,
  .language-link:hover,
  .export-button--text:hover {
    text-decoration: underline !important;
  }

  .scp3:hover {
    background: var(--afp-blue-100) !important;
  }

  .header-cta:hover {
    background: var(--afp-blue) !important;
    color: var(--afp-white) !important;
  }

  .export-button--primary:hover:not(:disabled) {
    background: var(--afp-blue-hover) !important;
  }

  .export-button--light:hover {
    background: var(--afp-blue-100) !important;
  }
}

@media (min-width: 1100px) {
  .header-actions > .language-link {
    position: absolute;
    right: calc(100% + 8px);
  }
}

.site-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

input[type="checkbox"] + .checkbox-mark {
  pointer-events: none;
  position: relative;
}

input[type="checkbox"]:focus-visible + .checkbox-mark {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

input[type="checkbox"]:checked + .checkbox-mark {
  background: var(--afp-blue) !important;
}

input[type="checkbox"]:checked + .checkbox-mark::after {
  color: #fff;
  content: "✓";
  font: 700 11px/1 var(--font-mono);
}

.contact-status {
  min-height: 1.5em;
}

.contact-status[data-state="error"] {
  color: #9f1d20;
}

.contact-status[data-state="success"] {
  color: #0a6830;
}

dialog::backdrop {
  background: transparent;
}

@media (max-width: 1099px) {
  .site-nav {
    display: none !important;
  }

  .site-header > div {
    gap: 8px !important;
  }
}

@media (max-width: 600px) {
  #ansatz :is(p, h2)[style*="white-space: nowrap"] {
    white-space: normal !important;
  }
}

@media (max-width: 520px) {
  [data-contact-grid] {
    grid-template-columns: 1fr !important;
  }

  html[lang="en"] :is(.header-cta, #top .export-button) {
    font-size: 12px !important;
    letter-spacing: 0.10em !important;
  }

  html[lang="en"] .header-cta {
    white-space: normal !important;
  }
}

@media (max-width: 389px) {
  .site-header > div {
    padding-inline: 12px !important;
  }

  .site-header img[alt="ANDfutureproof"] {
    height: 40px !important;
  }

  .header-cta {
    font-size: 12px !important;
    letter-spacing: 0.10em !important;
    padding-inline: 10px !important;
    white-space: normal !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

