Let's say I have this HTML
.A {
  border: thick blue solid;
}
.B {
  border: medium red solid;
}<div class="root">
  <div class="A">
    <div class="B">
      DON'T SELECT ME
    </div>
  </div>
  <div class="B">
    SELECT ME
  </div>
  <div class="A">
    <div class="C">
      <div class="B">
        ALSO DON'T SELECT ME
      </div>
    </div>
  </div>
</div>How do I, for example, set the background to yellow of the "SELECT ME" div, without doing so to the other two? I was thinking it should be something like:
.root>:not(.A) .B { background: yellow; }
... but that doesn't seem to work and I don't understand why; and searching the web isn't turning up anything to my shock and surprise. Is this something that can be achieved with CSS?
 
     
    