/* Shared finishing layer: consistent interactions, keyboard focus and mobile behaviour. */
html {
  scroll-padding-top: 18px;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

.nav a,
.nav a.is-active {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  line-height: 1;
  transform: none;
}

.nav a::before {
  border-radius: inherit;
}

.nav a:active,
.nav a.is-active:active,
.hero-cta:active,
.button:active,
button:active {
  border-radius: 12px;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

input,
textarea,
select,
button {
  font: inherit;
}

img {
  height: auto;
}

@media (max-width: 720px) {
  .toprow {
    min-width: 0;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav a,
  .nav a.is-active {
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

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

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