first-of-type, bold

neither, plain

last-of-type, italic

not empty, grey

a heading

adjacent sibling of h2, purple

general sibling of h2, orange left rule

equal specificity, the later rule wins, blue