Suggestion: You can use :nth(1) and :nth(2) element selectors since we're doing html5 anyway. That way you collapse a level.