/* The nav's menu on phones (AD, 2026-11-14: "the nav does not let you navigate in phone screen").
   Where the pill hides its links, a round menu button appears beside Request invite; it opens the
   links inside the pill, one to a row. nav-menu.js adds the button and the .has-menu / .open classes. */
.nav__menu { display: none; flex: none; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; background: var(--fill-1, rgba(255,255,255,.06)); color: var(--text, #fff); cursor: pointer; place-items: center; padding: 0; -webkit-tap-highlight-color: transparent; }
.nav__menu i { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .25s ease; }
.nav__menu i + i { margin-top: 4px; }
.nav__menu span { display: grid; place-items: center; }
.nav.has-menu .nav__menu { display: inline-grid; }
.nav.has-menu .nav__cta { margin-left: 8px; }
.nav.open .nav__menu i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.open .nav__menu i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav.has-menu.open { height: auto !important; flex-wrap: wrap; width: calc(100vw - 2 * var(--gutter, 16px)) !important; max-width: 420px; border-radius: 24px !important; padding-bottom: 8px !important; row-gap: 0; }
.nav.has-menu.open .nav__links { display: flex !important; order: 9; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 6px; padding: 0; }
.nav.has-menu.open .nav__links a { display: flex; align-items: center; min-height: 46px; padding: 0 10px; border-radius: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 1rem; color: var(--text-2, #cfcfcf); background: none; }
.nav.has-menu.open .nav__links a[aria-current="page"] { color: var(--text, #fff); }
/* the button as on the previous site: no fill, just the two lines (AD, 2026-11-14), sitting just left of the button */
.nav__menu { width: 44px; height: 44px; background: none; border-radius: 50%; }
.nav__menu svg path { transition: transform .25s ease; transform-origin: 10px 10px; }
.nav.open .nav__menu .l1 { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav__menu .l2 { transform: translateY(-3.5px) rotate(-45deg); }
.nav.has-menu .nav__cta { margin-left: 4px; }
/* phones (AD, 2026-11-14): Request invite sits 6px inside the pill on all three sides, not 3px, so it no longer looks pressed against the edge */
@media (max-width: 640px) {
  nav.nav.has-menu { padding-right: 6px !important; }
  nav.nav.has-menu .nav__cta { height: calc(var(--nh) - 12px) !important; min-height: 0 !important; padding-inline: 16px !important; }
}
/* narrow phones (AD, 2026-11-15): the logo, the menu button and Request invite fit inside the pill — tighter gaps, a smaller menu
   button, a little less padding round the button's label */
@media (max-width: 380px) {
  nav.nav.has-menu { gap: 4px !important; padding-left: 12px !important; max-width: calc(100vw - 24px) !important; }
  nav.nav.has-menu .nav__mark { padding-right: 0 !important; gap: 6px; }
  nav.nav.has-menu .nav__menu { width: 36px; height: 36px; }
  nav.nav.has-menu .nav__cta { padding-inline: 12px !important; margin-left: 2px !important; font-size: 13px; }
}
@media (max-width: 330px) { nav.nav.has-menu .nav__word { font-size: 13px !important; } nav.nav.has-menu .nav__cta { padding-inline: 10px !important; } nav.nav.has-menu .nav__orb { width: 22px !important; } }
