v3.25.2
Stock-Based Compensation - Schedule of Non-qualified Stock Options Granted (Detail) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Granted 54,200 58,000 84,400
Weighted average exercise price, per common share $ 44.38 $ 68.68 $ 46.39
Weighted average grant date fair value, per common share $ 16.38 $ 25.61 $ 16.36
Stock-based compensation $ 16,186 $ 16,688 $ 19,178
Non-Qualified Stock Options      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock-based compensation $ 888 $ 1,485 $ 1,381