Safari has support for <input type="checkbox" switch> where a normal ☑️ checkbox turns into a toggle. You don’t strictly need the browser support to get the look, as it’s weirdly easy to replicate (based on idea from Richard Keizer). But Thomas Steiner has a more comprehensive polyfill if you want it to behave more exactly correctly, respecting writing-mode and accent-color and such.
Featured
The Drill-Down Menu with Details and @scope
Even if you nest details elements, you can ensure only one level of them is open at a time, making a menu you can drill down (and up!) from.