When several rules could style an element, two mechanisms decide the result: the cascade (which rule wins) and inheritance (which properties pass down from parents).
The cascade — resolving conflicts, in order
The browser picks the winning declaration by checking, in priority order:
1. Importance → !important beats normal declarations
2. Specificity → more specific selector wins (ids > classes > elements)
3. Source order → if still tied, the LAST rule defined wins
