DrDoc - 6:34 pm on Jul 24, 2013 (gmt 0)
visibility: hidden is a perfectly viable option, and appears to also be the best option in this case.
Your other options would involve heavy scripting to hide/show surrounding elements, or to traverse the tree to figure out what should be hidden/visible.
If it works and does what you need it to do,
visibility: hidden is by far the cleanest and easiest to read solution I would be able to think of.