Mark link and text items with the same class
Use details tag but not legend
Use details...summary only when there are subitems