/* Shared visual standard, kept local to the Software site. */
.header .nav {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  min-height: 78px;
  gap: 24px;
}

.header .brand img {
  width: 46px;
  height: 46px;
}

.header .brand span {
  font-size: 18px;
  line-height: 1.15;
}

.header .links {
  gap: 22px;
  font-size: 13px;
}

.header .menu {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.header .menu > span:not(.sr-only) {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease;
}

.header .menu[aria-expanded="true"] {
  background: var(--sky);
  border-color: #bcdbea;
}

.header .menu[aria-expanded="true"] > span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.header .menu[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
  .header .nav {
    width: calc(100% - 36px);
    min-height: 70px;
  }

  .header .menu {
    display: inline-flex;
  }

  .header .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(24, 62, 88, .1);
  }

  .header .links.open {
    display: flex;
    animation: softwareNavReveal .22s ease both;
  }

  .header .links a {
    padding: 10px;
    border-radius: 7px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .header .links a:not(.nav-cta):hover {
    background: var(--sky);
    transform: translateX(4px);
  }
}

@keyframes softwareNavReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .header .menu > span,
  .header .links.open,
  .header .links a {
    animation: none;
    transition: none;
  }
}
