v3.25.2
Stock-Based Compensation - Schedule of Assumptions Used to Determine Grant Date Fair Value of Market Based Restricted Common Shares (Detail) - Market-Based Restricted Common Shares
12 Months Ended
May 31, 2024
May 31, 2023
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]    
Dividend yield 1.05% 2.67%
Expected volatility 33.90% 43.00%
Risk-free interest rate 4.52% 3.18%