@Simon Willison

@simonw You may have seen it already, but I found this a while back while working on something similar: w3.org/TR/wai-aria-pr… Perhaps it can help you vet the accessibility of options you are considering. I also saw a lot about using <details> like @choldgraf mentioned.