I think this needs to be set on the `ul`. In my testing setting the `max-width` here unfloats the ToC.