/* Mobile hamburger nav — pills collapse into menu at ≤470px */

.nav-toggle {
  display: none;
}

@media (max-width: 470px) {
  .bottom-left {
    left: clamp(12px, 2.4vw, 48px);
    right: clamp(12px, 2.4vw, 48px);
    width: auto;
    margin-bottom: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .logo-svg {
    width: 48px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: pointer;
  }

  .nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg, #ce4127);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .bottom-left.is-nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .bottom-left.is-nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .bottom-left.is-nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .pills {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 21;
  }

  .bottom-left.is-nav-open .pills {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pill {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }
}
