Fix Bug 1083481 - <details> fallback JavaScript and CSS is not #a11y

Code improvements to https://github.com/mozilla/kuma/pull/2918/files