Psst, you no longer need JavaScript to create an exclusive accordion!
As of Chrome 120 you can give `<details>` elements a `name` value.
Just like radio buttons, those with the same name will form a group, of which only one can be chosen at the same time.
https://developer.chrome.com/docs/css-ui/exclusive-accordion
Exclusive Accordion (aka “named <details>”) is also supported in Safari 17.2 and up.
And oh, we’re also looking into making it more easy for you to add animations `<details>` … but more on that later ;)