XML 42 R29.htm IDEA: XBRL DOCUMENT v3.22.2
Summary of Significant Accounting Policies - Summary of Changes in Accumulated Other Comprehensive Income (Loss) net of tax (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2022
May 31, 2021
May 31, 2020
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance $ 840,377 $ 725,177 $ 637,899
Other comprehensive income (loss) (16,394) 8,334 (8,069)
Ending Balance 887,374 840,377 725,177
Foreign Currency Translation Adjustments      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance (11,533) (20,135)  
Other comprehensive income (loss) (13,955) 8,602  
Ending Balance (25,488) (11,533) (20,135)
Unrealized Gain on Marketable Securities      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance 158 426  
Other comprehensive income (loss) (2,439) (268)  
Ending Balance (2,281) 158 426
Total AOCI      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance (11,375) (19,709) (11,640)
Other comprehensive income (loss) (16,394) 8,334 (8,069)
Ending Balance $ (27,769) $ (11,375) $ (19,709)