COMMON STOCK AND STOCK-BASED COMPENSATION - Total Stock-Based Compensation Expense (Details) - Class B Common Stock - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | $ 715 | $ 709 | $ 804 |
| Stock options | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | 278 | 292 | 336 |
| ESPPs | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | 58 | 69 | 69 |
| Restricted stock and restricted stock units | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | |||
| Stock-based compensation expense | $ 379 | $ 348 | $ 399 |