/* Menu toggle button that lives inside the navbar's .nav-left cluster.
   Morphs three bars into an X when .is-open is applied. */

.hamburger-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  margin-right: 0.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.hamburger-toggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.hamburger-toggle:active {
  background-color: rgba(255, 255, 255, 0.18);
}

.hamburger-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hamburger-box {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
}

.hamburger-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1),
              opacity 0.2s ease,
              top 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hamburger-bar:nth-child(1) { top: 0; }
.hamburger-bar:nth-child(2) { top: 6px; }
.hamburger-bar:nth-child(3) { top: 12px; }

.hamburger-toggle.is-open .hamburger-bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger-toggle.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-toggle.is-open .hamburger-bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media print {
  .hamburger-toggle {
    display: none;
  }
}
