/* ================================================================
   NAV — one canonical pill (hamburger + wordmark + bag), identical size
   and position on every page, fixed so it (and the cart icon, styled
   alongside in cart.css) stay put on screen as the page scrolls — never
   scrolling away with any hero/section content. The hamburger opens a
   dropdown that grows directly out of the SAME rounded box (one
   continuous shape, not a separate flyout), matching the reference.
   ================================================================ */

.hero-nav-pill {
  position: fixed;
  top: 20px;
  left: 20px;
  /* Above .draggable-ephemera.is-dragging's z-index:50 (style.css) — a
     dragged charm can be moved anywhere on the page, but should never be
     able to visually cover the nav pill itself. */
  z-index: 55;
  width: min(258px, calc(100vw - 40px));
  background: rgba(255, 248, 240, 0.96);
  border-radius: 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}

.nav-pill-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 20px;
}

.nav-hamburger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex: none;
}
.menu-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-icon span { height: 2px; border-radius: 2px; background: var(--brand-red); display: block; }

.nav-wordmark,
.nav-bag-link { text-decoration: none; cursor: pointer; }
.nav-wordmark {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--brand-red);
}
.nav-bag-link { display: flex; align-items: center; flex: none; }
.nav-bag-link img.nav-bag { height: 23.1px; width: auto; }

/* ---------- dropdown: grows out of the pill itself, same width ---------- */
.nav-pill-drop {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}
.nav-pill-drop.is-open {
  max-height: 340px;
  opacity: 1;
  padding: 6px 22px 22px;
  border-top: 1px solid rgba(163, 29, 31, 0.12);
}

.nav-drop-links { display: flex; flex-direction: column; gap: 14px; }
.nav-drop-links a {
  color: var(--brand-red);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.nav-drop-links a:hover { text-decoration: underline; }

.nav-drop-social { display: flex; gap: 14px; }
.nav-drop-social a { display: block; width: 22px; }
.nav-drop-social img { width: 100%; height: auto; display: block; }

.nav-drop-subtext {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #9a9a9a;
  text-align: center;
}
.nav-drop-subtext a { color: #9a9a9a; text-decoration: underline; }

@media (max-width: 480px) {
  .hero-nav-pill { width: min(228px, calc(100vw - 32px)); }
  .nav-pill-row { gap: 10px; padding: 0 16px; }
  .nav-wordmark { font-size: 16px; }
}
