Investment (Income), Net - Investment (Income), Net (Detail) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Nov. 30, 2023 |
Nov. 30, 2022 |
Nov. 30, 2023 |
Nov. 30, 2022 |
|
| Investment Income, Net [Abstract] | ||||
| Interest (income) | $ (4,897) | $ (2,389) | $ (10,348) | $ (4,539) |
| Net loss (gain) on marketable securities | 225 | (3,794) | (6,226) | 2,812 |
| Dividend (income) | (617) | (668) | (1,154) | (1,460) |
| Investment (income), net | $ (5,289) | $ (6,851) | $ (17,728) | $ (3,187) |