Accumulated Other Comprehensive Income (Loss) (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Nov. 30, 2021 |
Nov. 30, 2020 |
Nov. 30, 2021 |
Nov. 30, 2020 |
|
| AOCI Attributable to Parent, Net of Tax [Roll Forward] | ||||
| Beginning Balance | $ 435,950 | $ 455,054 | $ 439,457 | $ 454,872 |
| Net other comprehensive income | 819 | 1,180 | 1,409 | 3,275 |
| Ending Balance | 432,368 | $ 454,343 | 432,368 | $ 454,343 |
| Foreign currency translation income | ||||
| AOCI Attributable to Parent, Net of Tax [Roll Forward] | ||||
| Beginning Balance | 3,743 | 3,153 | ||
| Other comprehensive income, net of tax | 819 | 1,409 | ||
| Net other comprehensive income | 819 | 1,409 | ||
| Ending Balance | $ 4,562 | $ 4,562 | ||