body { background: linear-gradient( yellow, greenyellow ); } .toclevel-3 { display: none; } h1, h2, h3, h4, h5 { color: red; } section:has( h2 ) { display: none; } section:has( h1:target, h2:target, h3:target, h4:target ) { display: block; }