Probably can’t be done as you might think.
As you can see from the linked article, there are two menus….it’s just that JS populates one of them with information from the first one. You can’t do that with CSS.
Of course, if you are happy to update the HTML manually then you can do it without the JS.
Up to you.