Earnings Per Share - Reconciliation of Numerator and Denominator of Basic and Diluted Earnings Per Share (Parenthetical) (Detail) - shares |
12 Months Ended | ||
|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|
| 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 | 450,000 | 170,000 | 260,000 |