Category depth takes headings into account.