Leases - Additional Information (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jan. 31, 2026 |
Jan. 31, 2025 |
Jan. 31, 2026 |
Jan. 31, 2025 |
|
| Leases [Abstract] | ||||
| Gain on modification of office lease | $ 0 | $ 0 | $ 13,907 | $ 0 |
| Impairment of right-of-use assets | $ 0 | $ 2,452 | $ 0 | $ 2,452 |