== Background
See {T306660} for context. This is the first of two tickets that will provide collapsible behavior for the table of contents. The first ({T307900}) will allow the ToC to automatically collapse into a button adjacent to the title for narrow screens. The second (this ticket) will allow the ToC to be collapsible into a button alongside the title at all screen sizes.
== Prototype
https://di-collapsible-menus.web.app/Brown_bear
== Acceptance criteria
[] Create a "hide" button for the ToC
{F35119497}
[] Selecting the hide button will collapse the ToC into the title
{F35119500}
[] When ToC is opened from the title a move to sidebar button should appear
{F35119504}
[] Selecting move to sidebar will put the ToC back to its original location
[] The "hide" and "move to sidebar" should be button elements, not links
[] The brackets around "hide" and "move to sidebar" are purely visual elements, not read out by screen readers
== QA steps
- On beta cluster page with a TOC, expand the view port to above desktop (1000px) and note that there are `hide` and `move to sidebar` links visible next to the TOC `Contents` that toggles the TOC location between the sidebar and below the TOC icon per ACs.
- Ensure that TOC works as before below desktop
- Ensure that the TOC toggle links are not visible in the no-js context