Something that I think should be commented here that worked for me:
Use :last-child
multiple times in the places needed so that it always gets the last of the last.
Take this for example:
.page.one .page-container .comment:last-child {
color: red;
}
.page.two .page-container:last-child .comment:last-child {
color: blue;
}
When you use .comment:last-child
you only get the last comment in both parents
Something
Something
Something
Something
When you use .page-container:last-child .comment:last-child
you get the last page-container's, last comment
Something
Something
Something
Something