/* Menu finder (issue 559): a combobox above the menu. The field is sticky; the list lies over the menu. */
.nav-finder { position: sticky; top: 0; z-index: 5; display: grid; gap: var(--space-3xs); padding-block: var(--space-2xs); background: var(--paper-2); }
.nf-input {
  width: 100%; min-height: 40px; padding: 6px 34px 6px var(--space-xs); border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm);
}
.nf-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nf-kbd { position: absolute; inset-inline-end: var(--space-xs); top: 10px; font: inherit; font-size: var(--text-xs); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; pointer-events: none; }
.nf-pop { position: absolute; inset-inline: 0; top: 100%; z-index: 6; max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); }
.nf-pop[hidden], .nf-none[hidden], .nf-head[hidden] { display: none; }
.nf-list { list-style: none; margin: 0; padding: var(--space-3xs); display: grid; gap: 1px; }
.nf-list li[role="option"] { display: grid; gap: 1px; padding: 6px var(--space-xs); border-radius: var(--radius); cursor: pointer; font-size: var(--text-sm); min-height: 40px; }
.nf-list li[aria-selected="true"] { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule); }
.nf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-group { font-size: var(--text-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-head { margin: 0; font-size: var(--text-xs); color: var(--ink-3); padding: 6px var(--space-xs) 0; }
.nf-none { margin: 0; padding: var(--space-xs); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 860px) {
  /* Phone: the finder is a full row between the brand row and the menu row. */
  .sidebar .nav-finder { order: 3; flex-basis: 100%; }
  .nf-kbd { display: none; }
  .nav-finder { position: static; padding-block: 0; background: none; }
  .sidebar { overflow: visible; } /* the phone menu is one row: the list may leave it */
}
