Moved the rule nesting logic in situ with the parsing instead of applying it after the fact.
Simplified the selectors type and got parent selector replacement working.
Added a deeply-nested, complicated parent selector example to test I got the permutations correct.