v3.25.2
Defined Contribution Benefit Plan - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution 401(K) benefit expense $ 3,726 $ 3,368 $ 2,439
First 3% employees deferred amount      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan employer matching contribution 100.00%    
Next 2% employees deferred amount      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan employer matching contribution 50.00%