Modified the details polyfill to add a class 'closed' for the closed state to allow eliminating the use of :not in the CSS.