Specificity ladder

:where() adds nothing: the type selector's order decides. Sky blue.

One class beats any count of type selectors. Green.

Two classes beat one. Violet. Numbers add per position; they never carry.

The inline style attribute wins over the ID (red). In dev tools, the Styles pane shows it as "element.style" at the top of the list.