26. Old school...
section { --link: green }
footer { --link: blue }
a { background: var(--link, red) }
footer section a { background: green }
footer a { background: blue }
a { background: red }
<body>
<a>Link 1</a>
<footer>
<a>Link 2</a>
<section>
<a>Link 3</a>
</section>
</footer>
</body>
27. Old school...
section { --link: green }
footer { --link: blue }
a { background: var(--link, red) }
--------------
footer section a { background: green }
footer a { background: blue }
a { background: red }
<body>
<a>Link 1</a>
<footer>
<a>Link 2</a>
<section>
<a>Link 3</a>
</section>
</footer>
</body>
The end of specificity war!