This should fix the issue once and for all—this takes a simpler approach to the borders and seems to fix all the movement I could see (which was actually visible without even zooming in, at least in Safari).
- Pushes the borders to the
.accordion-iteminstead of the.accordion-button - Simplifies the
.accordion-flush'sborderresets - Recreates the
.accordion-button'sborder-bottomwith an insetbox-shadow - Moves the
border-radiusto the parent, which necessitated the new$accordion-inner-border-radiusvariable
Fixes #32250 (closed), closes #32251.
Preview: https://deploy-preview-33149--twbs-bootstrap.netlify.app/docs/5.0/components/accordion/