Writing efficient CSS selectors