I made a minor change that will allow your &:nth-of-type(1)
css to work, we had an extra containing div in there preventing it. This should be available if you update your site in a few hours.
https://github.com/discourse/discourse/commit/a009ec597da2a72561cc396aca40d0e77481b751