/* Tokeniser — overflow + mobile nav (load before production-exact.css) */

html {
  overflow-x: clip;
  width: 100%;
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.site-header {
  z-index: 200;
  width: 100%;
  overflow: visible;
}

.site-header__inner {
  min-width: 0;
  gap: 12px;
  overflow: visible;
}

.site-header .logo {
  flex-shrink: 0;
  min-width: 0;
  overflow: visible;
}

.site-header .logo img {
  display: block;
  flex-shrink: 0;
}

.header-actions {
  flex-shrink: 0;
  align-items: center;
}

.anywhere {
  overflow-x: clip !important;
  width: 100%;
}

.anywhere__media {
  overflow: hidden;
}

/* ─── Mobile-only menu control (hidden on desktop / large screens) ─── */
.mobile-only {
  display: none !important;
}

.mobile-only[hidden] {
  display: none !important;
}

.hamburger {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}

.hamburger__icon {
  display: block;
  width: 24px;
  height: 16px;
}

@media (max-width: 1023px) {
  .header-actions > a.btn {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    flex-wrap: nowrap !important;
  }

  .site-header .mobile-only,
  .site-header .header-actions .mobile-only,
  .site-header .hamburger,
  .site-header .header-actions .hamburger,
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
  }

  body.mobile-nav-open {
    overflow: auto;
  }
}

.mobile-nav {
  position: fixed;
  top: var(--prod-header-h-mobile, 72px);
  left: 0;
  right: 0;
  z-index: 150;
  margin: 0;
  padding: 24px 16px 32px;
  background: #343740;
  color: #fff;
  font-family: "Public Sans", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__contact {
  font-weight: 600;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -1px;
  color: #77feb3;
  text-decoration: none;
}

.mobile-nav__contact:hover {
  opacity: 0.9;
}

.mobile-nav__signin {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 32px;
  background: #54f9a1;
  color: #343740;
  font-family: "Geist", "Public Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav__signin:hover {
  opacity: 0.9;
}

body.mobile-nav-open {
  overflow: hidden;
}
