mobile-first delegated dropdown menus with smart positioning