/*
 * Crypto12 global header.
 *
 * The approved homepage navigation is the design source of truth. Structural
 * markup, menu behavior, language switching and CTA data remain parent-owned.
 */
#navbar.navigation-section {
  background-color: rgba(7, 7, 7, .38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .28s ease-in-out, background-color .42s ease;
}

#navbar.navigation-section::before {
  content: none;
}

#navbar .navigation .theme-menu-wrapper .theme-menu-content > ul > .menu-item::after,
#navbar .navigation .language-switcher .wpml-ls-item::after {
  content: none;
}

#navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item.current-menu-parent:not(.ignore-active) > a,
#navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item.current-menu-item:not(.ignore-active) > a,
#navbar .navigation .language-switcher .wpml-ls-current-language > a,
#navbar .navigation .language-switcher .wpml-ls-current-language > a * {
  color: #61c7f0;
}

#navbar .navigation .header-cta .c12-header-registration {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 .72rem 0 1.5rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), background-color 180ms ease, border-color 180ms ease;
}

#navbar .navigation .header-cta .c12-header-registration:hover,
#navbar .navigation .header-cta .c12-header-registration:focus-visible {
  border-color: #36addd;
  background: #36addd;
  color: #050505;
  transform: translateY(-2px);
}

#navbar .navigation .header-cta .c12-header-registration:active {
  transform: scale(.98);
}

#navbar .navigation .header-cta .c12-header-registration::after {
  content: none;
}

.c12-home .c12-button > span,
.c12-registration-arrow {
  display: grid;
  flex: 0 0 2.18rem;
  width: 2.18rem;
  height: 2.18rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #080808;
  font-size: 1.05rem;
}

#navbar .c12-header-registration .c12-registration-arrow {
  margin-left: 1.25rem;
}

.c12-home .c12-arrow,
#navbar .c12-header-registration .c12-arrow {
  display: block;
  width: .95rem;
  height: .95rem;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.c12-home .c12-arrow path,
#navbar .c12-header-registration .c12-arrow path {
  vector-effect: non-scaling-stroke;
}

.c12-home a[href*="crypto12.onelink.me"] > span .c12-arrow,
#navbar .c12-header-registration .c12-arrow {
  transform: rotate(-90deg);
}

@media (max-width: 60rem) {
  .c12-home a[href*="crypto12.onelink.me"] > span .c12-arrow,
  #navbar .c12-header-registration .c12-arrow {
    transform: none;
  }
}

/* Prevent the logo, language switcher and CTAs from wrapping on narrow desktops. */
@media (min-width: 60.0625rem) and (max-width: 74.999rem) {
  #navbar .navigation .left-nav .nav-logo {
    padding-right: .5rem;
  }

  #navbar .navigation .left-nav .nav-logo .home-link .site-logo {
    max-width: 9rem;
  }

  #navbar .navigation .header-cta {
    padding-left: .5rem !important;
  }

  #navbar .navigation .header-cta .btn:not(.c12-header-registration) {
    margin-left: .25rem !important;
    padding-inline: 1.125rem;
  }
}

/* WordPress uses a taller admin bar below 783px. */
@media (max-width: 48.9375rem) {
  body.admin-bar #navbar.navigation-section {
    top: 46px;
  }
}

@media (max-width: 60rem) {
  #navbar.navigation-section.open {
    background-color: #030a0f;
    transform: translateY(0) !important;
  }

  #navbar .navigation .theme-menu-wrapper {
    top: 57px;
    bottom: auto;
    height: calc(100vh - 57px);
    height: calc(100dvh - 57px);
    min-height: 0;
    max-height: calc(100dvh - 57px);
    padding: .65rem var(--bs-gutter-x, .75rem) max(1rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #030a0f;
    -webkit-overflow-scrolling: touch;
  }

  #navbar.navigation-section.open .theme-menu-wrapper {
    background: #030a0f;
    transform: translateX(0);
  }

  #navbar .theme-menu-content {
    padding-top: 0;
  }

  #navbar .navigation .theme-menu-wrapper .theme-menu-content > ul > .menu-item {
    display: block;
    width: 100%;
    padding: 0;
  }

  #navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item > a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding: .55rem .75rem;
    color: #f5f7fa;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
  }

  #navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item.current-menu-parent:not(.ignore-active) > a,
  #navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item.current-menu-item:not(.ignore-active) > a {
    color: #61c7f0;
  }

  #navbar .navigation .theme-menu-wrapper .theme-menu-content > ul > .menu-item::after {
    content: none;
  }

  #navbar .mobile-navigation-footer {
    margin-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  #navbar .navigation .mobile-navigation-footer .language-switcher {
    padding: 1rem .75rem .75rem;
    border-top: 0;
  }

  #navbar .navigation .mobile-navigation-footer .language-switcher ul {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  #navbar .navigation .mobile-navigation-footer .language-switcher a {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  #navbar .navigation .mobile-navigation-footer .language-switcher .wpml-ls-item:not(.wpml-ls-current-language) > a,
  #navbar .navigation .mobile-navigation-footer .language-switcher .wpml-ls-item:not(.wpml-ls-current-language) > a * {
    color: #fff;
  }

  #navbar .navigation .mobile-navigation-footer .language-switcher .wpml-ls-current-language > a,
  #navbar .navigation .mobile-navigation-footer .language-switcher .wpml-ls-current-language > a * {
    color: #61c7f0;
  }

  #navbar .navigation .mobile-navigation-footer .header-cta {
    padding: 0 .75rem .75rem !important;
  }

  #navbar .navigation .mobile-navigation-footer .header-cta .btn {
    width: 100%;
    min-height: 3.4rem;
    margin: 0 !important;
  }

  body.admin-bar #navbar .navigation .theme-menu-wrapper {
    top: 57px;
    height: calc(100vh - 103px);
    height: calc(100dvh - 103px);
    max-height: calc(100dvh - 103px);
  }
}

#navbar .navigation .theme-menu-content.c12-navigation-pending-group .menu-item.current-menu-parent:not(.ignore-active) > a,
#navbar .navigation .theme-menu-content.c12-navigation-pending-group .menu-item.current-menu-item:not(.ignore-active) > a,
#navbar .navigation .language-switcher.c12-navigation-pending-group .wpml-ls-current-language > a,
#navbar .navigation .language-switcher.c12-navigation-pending-group .wpml-ls-current-language > a * {
  color: #fff;
}

#navbar .navigation a.c12-navigation-pending-link,
#navbar .navigation a.c12-navigation-pending-link * {
  color: #61c7f0;
}

/* Hover is available at EVERY viewport width when the device has a real hover pointer. */
@media (hover: hover) and (pointer: fine) {
  #navbar .navigation .theme-menu-content .menu-item > a:hover,
  #navbar .navigation .theme-menu-content .menu-item > a:hover *,
  #navbar .navigation .language-switcher a:hover,
  #navbar .navigation .language-switcher a:hover * {
    color: #61c7f0 !important;
  }
}

/* Keyboard focus remains visible independent of pointer type. */
#navbar .navigation .theme-menu-content .menu-item > a:focus-visible,
#navbar .navigation .theme-menu-content .menu-item > a:focus-visible *,
#navbar .navigation .language-switcher a:focus-visible,
#navbar .navigation .language-switcher a:focus-visible * {
  color: #61c7f0 !important;
}

/* Same fast color transition on wide desktop and narrow mouse-driven windows. */
@media (hover: hover) and (pointer: fine) {
  #navbar .navigation .theme-menu-content .menu-item > a,
  #navbar .navigation .theme-menu-content .menu-item > a *,
  #navbar .navigation .language-switcher a,
  #navbar .navigation .language-switcher a * {
    transition-property: color !important;
    transition-duration: .08s !important;
    transition-timing-function: ease-out !important;
  }
}

/* A pending destination always wins over the previous WP/WPML active item. */
#navbar .navigation .c12-navigation-pending-group .menu-item > a:not(.c12-navigation-pending-link),
#navbar .navigation .c12-navigation-pending-group .menu-item > a:not(.c12-navigation-pending-link) *,
#navbar .navigation .c12-navigation-pending-group .wpml-ls-item > a:not(.c12-navigation-pending-link),
#navbar .navigation .c12-navigation-pending-group .wpml-ls-item > a:not(.c12-navigation-pending-link) * {
  color: #fff !important;
}
#navbar .navigation a.c12-navigation-pending-link,
#navbar .navigation a.c12-navigation-pending-link * {
  color: #61c7f0 !important;
  transition: none !important;
  -webkit-transition: none !important;
}

/* Touch devices: understated feedback - blue text only, no box, line or fill. */
@media (hover: none) and (pointer: coarse) {
  #navbar .navigation .theme-menu-wrapper .theme-menu-content .menu-item > a.c12-navigation-pending-link,
  #navbar .navigation .mobile-navigation-footer .language-switcher a.c12-navigation-pending-link,
  #navbar .navigation .theme-menu-wrapper .language-switcher a.c12-navigation-pending-link {
    color: #61c7f0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    font-weight: 700;
    transition: none !important;
    -webkit-transition: none !important;
  }
}
