v3.25.2
Earnings Per Share - Additional Information (Detail) - shares
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Earnings Per Share [Abstract]      
Shares excluded from computation of diluted earnings per common share 99,785 46,778 90,570