XML 62 R53.htm IDEA: XBRL DOCUMENT v3.23.1
Income Taxes - Additional Information (Detail) - USD ($)
3 Months Ended 9 Months Ended
Feb. 28, 2023
Feb. 28, 2022
Feb. 28, 2023
Feb. 28, 2022
May 31, 2022
Income Taxes [Line Items]          
Income tax expense (benefit) $ (10,450,000) $ 1,200,000 $ (1,250,000) $ 7,950,000  
Income tax expense related to nondeductible transaction costs 1,100,000        
Unrecognized tax benefits that would impact the tax effective rate $ 1,500,000   $ 1,500,000   $ 808,000