Hah! You figured out what was going on with the weird lines! Great job — that is super-tricky.
Máirín Duffy
1

Not quite, actually: you’ll notice the extra line in the expanded one. I haven’t yet done the translation to div from table. I’m actually not sure how to make lines when not in a table!