Insert the panel after the lead section if it exists
Do so both in mobile and desktop. Make sure the panel is to the
right of the TOC on large screens. Left a fixme for minerva in
which the TOC may not be ready at the time the panel is inserted.
Also add vertical margins to the panel so that there is some
space between the panel and the precending element. And finally,
simplify the thumbnail selection.