v3.26.3
Earnings Per Share - Reconciliation of Numerator and Denominator of Basic and Diluted Earnings Per Share (Parenthetical) (Detail) - shares
shares in Thousands
3 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Stock-Based Compensation Plans    
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]    
Shares excluded from the calculation of diluted earnings per share 860 400