Earnings (Loss) Per Common Share - Schedule of Effects Excluded from Computation of Dilutive Loss Per Share (Detail) - USD ($) shares in Thousands, $ in Thousands |
12 Months Ended | |||||
|---|---|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
|||||
| Earnings Per Share [Abstract] | ||||||
| Interest expense on convertible notes, net of amounts capitalized | $ 0 | $ 6,451 | ||||
| Derivative gain (loss) - convertible note derivatives | 0 | 1,357 | ||||
| Gain (loss) on extinguishment of debt | $ 0 | $ 17,333 | ||||
| Additional shares assuming conversion of convertible notes | [1] | 0 | 3,120 | |||
| Additional shares assuming exercise of warrants | [2] | 3,280 | 6,096 | |||
| Stock options, unvested restricted stock units and performance share units excluded due to anti-dilutive effect | 987 | 725 | ||||
| ||||||