/* Progressive enhancement for the shared Juris marketing navigation.
   Without JavaScript the native <details> menus remain fully functional. */
.motion-nav-ready {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.motion-nav-ready .nav-links > a::after,
.motion-nav-ready .nav-group > summary::before {
  content: none !important;
  display: none !important;
}

.motion-nav-ready .nav-links > a,
.motion-nav-ready .nav-group > summary,
.motion-nav-ready .nav-links > a:hover,
.motion-nav-ready .nav-group > summary:hover,
.motion-nav-ready .nav-links > a[aria-current="page"],
.motion-nav-ready .nav-group[open] > summary {
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.motion-nav-ready .nav-links > a:focus-visible,
.motion-nav-ready .nav-group > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-bottom: 0 !important;
  border-radius: 1px;
  background: transparent !important;
  box-shadow: none;
  text-decoration: none !important;
}

@media (min-width: 861px) {
  .motion-nav-ready .nav-links {
    position: absolute;
    left: 50%;
    gap: clamp(10px, 1.4vw, 22px);
    transform: translateX(-50%);
    isolation: isolate;
  }

  .motion-nav-ready .nav-links > a,
  .motion-nav-ready .nav-group,
  .motion-nav-ready .nav-group > summary {
    z-index: 1;
  }

  .motion-nav-ready .nav-group > .nav-menu {
    display: none;
  }

  .motion-nav-ready .nav-group > summary::after {
    transition: transform .24s cubic-bezier(.16, 1, .3, 1);
  }

  .motion-nav-viewport {
    --motion-nav-x: 50%;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--motion-nav-x), -5px, 0) translateX(-50%);
    transition:
      transform .24s cubic-bezier(.16, 1, .3, 1),
      opacity .15s ease;
  }

  .motion-nav-viewport.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(var(--motion-nav-x), 0, 0) translateX(-50%);
  }

  .motion-nav-surface {
    position: relative;
    width: 196px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line, var(--rule, #d9dadd));
    border-radius: 6px;
    background: #fff;
    color: #0e1116;
    box-shadow: 0 4px 8px -6px rgba(13, 15, 18, .38);
    transition:
      width .28s cubic-bezier(.16, 1, .3, 1),
      height .28s cubic-bezier(.16, 1, .3, 1);
  }

  .motion-nav-panel {
    position: absolute;
    inset: 0 auto auto 0;
    width: 196px;
    min-width: 196px;
    padding: 6px;
    opacity: 0;
    transform: translateX(var(--motion-panel-enter, 6px));
    transition:
      transform .22s cubic-bezier(.16, 1, .3, 1),
      opacity .16s ease;
  }

  .motion-nav-panel-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .motion-nav-panel.is-active {
    opacity: 1;
    transform: translateX(0);
  }

  .motion-nav-panel.is-exiting-left {
    opacity: 0;
    transform: translateX(-6px);
  }

  .motion-nav-panel.is-exiting-right {
    opacity: 0;
    transform: translateX(6px);
  }

  .motion-nav-panel a {
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 3px;
    color: inherit;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
  }

  .motion-nav-panel-links a:hover,
  .motion-nav-panel-links a:focus-visible,
  .motion-nav-panel-links a[aria-current="page"] {
    background: rgba(14, 17, 22, .06);
  }
}

@media (min-width: 861px) and (max-width: 1020px) {
  .motion-nav-ready .nav-actions .button.light,
  .motion-nav-ready .nav-cta .pill-b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-nav-ready .nav-group > summary::after,
  .motion-nav-viewport,
  .motion-nav-surface,
  .motion-nav-panel,
  .motion-nav-panel a {
    transition-duration: .001ms !important;
  }
}
