Simon,
Thanks for the input. I can accomplish what I want within a single page using CSS. There are articles on the web (e.g. https://2ality.com/2012/01/numbering-headingshtml.html ) that explain how to do this. However, that does not seem to work across pages. I'll keep your suggestions about javascript (yes, I do have access to the theme) in mind.
Many thanks,
Chris