STYLE: add polyfill for <details>

- add polyfill for <details>
- style template more consistently