Try show-for-print, hide-for-print online

Revert accordion, pdf generation will show hidden accordion parts as
well