.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 82px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,248,238,.6);
  color: var(--ink);
  cursor: pointer;
  font: 600 .78rem/1 "Inter Tight", sans-serif;
}

.menu-glyph {
  display: grid;
  gap: 3px;
  width: 16px;
}

.menu-glyph i {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-glyph i:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-glyph i:nth-child(2) {
  opacity: 0;
  transform: scaleX(.35);
}

.menu-toggle[aria-expanded="true"] .menu-glyph i:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

header.nav {
  overflow: hidden;
  transition: border-radius .28s ease, background .28s ease;
}

header.nav.menu-open {
  border-radius: 26px;
  background: color-mix(in srgb, var(--cream-hi) 94%, transparent);
}

.mobile-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  max-height: 0;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  border-top: 1px solid transparent;
  transition: max-height .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease, padding .32s ease, border-color .3s ease;
}

.menu-open .mobile-menu {
  max-height: 280px;
  padding: 14px 24px 18px;
  opacity: 1;
  pointer-events: auto;
  border-color: var(--hairline);
}

.mobile-menu a {
  padding: 10px 2px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline-2);
}

.mobile-menu a:nth-last-child(-n+3) { border-bottom: 0; }
.mobile-menu a:last-child { color: var(--rose); }

/* The promotion sits on its own full-width row at the top, so the rules
   above keep counting from the same nine links they were written for. */
.mobile-menu .menu-offer {
  grid-column: 1 / -1;
  color: var(--rose);
  border-bottom: 1px solid var(--hairline-2);
}

@media (max-width: 900px) {
  .nav-links .nav-hide-sm { display: none; }
}

@media (max-width: 700px) {
  .nav-inner { justify-content: flex-start; gap: 9px; }
  .menu-toggle {
    min-width: 38px;
    width: 38px;
    flex-basis: 38px;
    padding: 0;
    border-radius: 50%;
  }
  .menu-text { display: none; }
  .nav-inner > .brand { margin-right: auto; }
  .mobile-menu { grid-template-columns: 1fr 1fr; gap: 0 18px; padding-inline: 18px; }
  .menu-open .mobile-menu { max-height: 290px; padding: 14px 18px 18px; }
  .mobile-menu a:nth-last-child(-n+3) { border-bottom: 1px solid var(--hairline-2); }
  .mobile-menu a:nth-last-child(-n+2) { border-bottom: 0; }
  header.nav .nav-inner > .btn { font-size: .78rem; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  header.nav,
  .menu-glyph i,
  .mobile-menu { transition: none; }
}
