Restructuring - Additional Information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||||
|---|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
May 31, 2026 |
Oct. 15, 2025 |
|
| Restructuring and Related Activities [Abstract] | |||||
| Restructuring and related cost, expected number of positions eliminated, percent | 30.00% | 6.00% | |||
| Restructuring expense | $ 90,895 | $ 0 | $ 27,587 | ||
| Restructuring expenses, stock-based compensation expense | $ 15,500 | ||||