.primary-nav {
  gap: 8px;
  margin-left: -8px;
}

.primary-nav a,
body.site-machine .unified-nav a {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  color: #707070;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
}

.primary-nav a::before,
body.site-machine .unified-nav a::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  border-radius: 32px;
  background: rgba(0, 0, 0, .05);
  content: "";
  transform: translate(-50%, -50%);
  transition: top .38s cubic-bezier(.22, 1, .36, 1),
              left .38s cubic-bezier(.22, 1, .36, 1),
              width .38s cubic-bezier(.22, 1, .36, 1),
              height .38s cubic-bezier(.22, 1, .36, 1),
              transform .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.primary-nav a:is(:hover, :focus-visible),
body.site-machine .unified-nav a:is(:hover, :focus-visible) {
  color: #707070;
  opacity: 1;
}

.primary-nav a:is(:hover, :focus-visible)::before,
body.site-machine .unified-nav a:is(:hover, :focus-visible)::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

body.site-machine .unified-nav {
  gap: 8px !important;
  margin-left: -8px !important;
}

body.site-machine .unified-nav a {
  position: relative !important;
  display: inline-flex !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  color: #707070 !important;
  line-height: 1 !important;
  transform: none !important;
}

body.site-machine .unified-nav a:is(:hover, :focus-visible) {
  color: #707070 !important;
}

body.site-machine .unified-nav a::before {
  content: "" !important;
}

@media (max-width: 1100px) {
  .primary-nav { gap: 0; }
  body.site-machine .unified-nav { gap: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav a::before,
  body.site-machine .unified-nav a::before { transition: none !important; }
}
