Earnings per Share - Schedule of Non Cash Buyback Activity by Program (Details) - Noncash Share Repurchase Transaction - USD ($) $ / shares in Units, shares in Thousands, $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|
| Equity, Class of Treasury Stock [Line Items] | |||
| Shares (in shares) | 613 | 808 | 1,133 |
| Average Price per Share (in dollars per share) | $ 205.13 | $ 196.93 | $ 137.18 |
| Total purchase price of shares repurchased | $ 125,766 | $ 158,953 | $ 155,403 |
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Total cost of shares repurchased divided by the total number of shares repurchased. No definition available.
|
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and are being held in treasury. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|