This example starts open. The initial aria-expanded and aria-hidden attributes reflect the visible state.
The demo sets a CSS class "open" for visible state and JavaScript updates ARIA attributes when toggled.
Accessibility: each button manages aria-expanded on itself and aria-hidden on the controlled element. The controlled content container uses the class "details".