Strategic Alternatives, Restructuring and Other - Schedule of Strategic Alternatives, Restructuring and Other (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||||
|---|---|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
|||
| Restructuring and Related Activities [Abstract] | ||||||
| Strategic alternatives | $ 856 | $ 2,402 | $ 6,133 | $ 7,401 | ||
| Cybersecurity incident | 267 | 0 | 5,096 | 0 | ||
| Lease restructuring expense | 4,029 | 2,121 | 7,634 | 3,837 | ||
| Litigation charges and regulatory expense | [1] | 4,977 | 1,203 | 7,383 | 3,609 | |
| Other | 1,808 | 1,111 | 5,427 | 3,039 | ||
| Strategic alternatives, restructuring and other | $ 11,937 | $ 6,837 | $ 31,673 | $ 17,886 | ||
| ||||||