Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Parenthetical) (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended |
|---|---|---|
Feb. 28, 2026 |
Feb. 28, 2026 |
|
| Fair Value Disclosures [Abstract] | ||
| Unrealized loss on investment in marketable securities | $ 340 | $ 1,584 |