/* B's T225 hand-off: the side menu's items with places inside them (Accounts, Tickets, My mail, Settings, Servers):
   a small chevron at the right; the places open as a flyout beside the menu (a mouse resting on the item, or the
   chevron), or in place under the item on touch and the phone's menu (an accordion).
   The look (E, T225): the chevron is the drawn one (icons/ui/chevron.svg) in a pill-shaped button, 44 px tall; the
   flyout is a rounded card (14 px) on the page's surface with a hairline and a soft shadow (no navy ring), its rows
   pills on hover and focus, 40 px tall (44 by touch); in place, the rows are in the menu's own colours, indented to
   the item's label. Only the chevron turns (in place, while open), and not when the person asks for less motion. */
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav-item > .nav { flex: 1 1 auto; width: auto; min-width: 0; }
.nav-more { flex: none; width: 32px; min-height: 44px; margin-left: 2px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-pill, 999px);
  background: none; color: var(--on-side-soft, var(--cream-2)); cursor: pointer; }
.nav-more .chev { width: 16px; height: 16px; }
.nav-more:hover, .nav-item.open > .nav-more { background: color-mix(in oklab, var(--on-side, var(--cream)) 10%, transparent); color: var(--on-side, var(--cream)); }
@media (prefers-reduced-motion: no-preference) { .nav-more .chev { transition: rotate .15s ease; } }
.nav-item.as-list.open > .nav-more .chev { rotate: 90deg; }
@media (pointer: coarse) { .nav-more { width: 44px; } }
.nav-fly[hidden] { display: none; }
.nav-fly { flex: 1 0 100%; box-sizing: border-box; display: grid; gap: 2px; }
.nav-fly-title { display: none; padding: 6px 12px 6px; font: 600 var(--t-tiny)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.nav-fly-link { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill, 999px); color: inherit; text-decoration: none;
  font-weight: 600; font-size: var(--t-ui); }
@media (pointer: coarse) { .nav-fly-link { min-height: 44px; } }
/* the flyout: a rounded card beside the menu (placed by panel.js), pill rows on hover and focus */
.nav-item.as-fly > .nav-fly { position: fixed; z-index: 40; min-width: 220px; max-width: 300px; padding: 6px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--row-line), 0 12px 32px rgba(20, 29, 51, .18); }
.nav-item.as-fly .nav-fly-link:hover, .nav-item.as-fly .nav-fly-link:focus-visible { background: var(--btn-quiet); color: var(--ink); }
/* the accordion: the list in place, under the item, in the menu's colours */
.nav-item.as-list > .nav-fly { padding: 2px 0 6px 34px; }
.nav-item.as-list .nav-fly-link { color: var(--on-side-soft, var(--cream-2)); }
.nav-item.as-list .nav-fly-link:hover { background: var(--side-hover, var(--navy-2)); color: var(--on-side, var(--cream)); }
/* the folded menu (icons only): no room for the chevron; the flyout says the item's name first */
@media (min-width: 900px) {   /* the phone's menu is never folded */
  .menu-folded > .side .nav-more { display: none; }
  .menu-folded > .side .nav-item.as-fly .nav-fly-title { display: block; }
}
/* touch and the phone: 44 px targets (F, T225 menu) */
@media (max-width: 899px), (pointer: coarse) {
  .nav-more { width: 44px; }
  .nav-item.as-list .nav-fly-link { min-height: 44px; }
}
