Accumulated Other Comprehensive Loss (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
Aug. 31, 2025 |
|
| Foreign currency translation | |||||
| Beginning balance | $ (894,328) | $ (1,937,629) | $ (1,060,062) | $ (1,295,743) | |
| Foreign currency translation | (185,855) | 758,598 | (21,817) | 98,485 | |
| Income tax benefit (expense) | 5,614 | (5,368) | 10,875 | 168 | |
| Portion attributable to noncontrolling interests | 1,766 | (14,708) | (1,799) | (2,017) | |
| Foreign currency translation, net of tax | (178,475) | 738,522 | (12,741) | 96,636 | |
| Ending balance | (1,072,803) | (1,199,107) | (1,072,803) | (1,199,107) | |
| Defined benefit plans | |||||
| Beginning balance | (176,075) | (266,511) | (195,940) | (254,172) | |
| Actuarial gains (losses) | 0 | 0 | 109,527 | 0 | |
| Prior service costs arising during the period | 0 | 0 | (102,407) | 0 | |
| Reclassifications into net periodic pension and post-retirement expense | 6,006 | 4,650 | 16,857 | (8,775) | |
| Income tax benefit (expense) | (1,752) | (1,101) | 161 | (27) | |
| Portion attributable to noncontrolling interests | (208) | (4) | (227) | 8 | |
| Defined benefit plans, net of tax | 4,046 | 3,545 | 23,911 | (8,794) | |
| Ending balance | (172,029) | (262,966) | (172,029) | (262,966) | |
| Cash flow hedges | |||||
| Beginning balance | (330,083) | (104,290) | (209,377) | (4,827) | |
| Unrealized gain (loss) | (373,867) | 76,998 | (609,221) | (22,024) | |
| Reclassification adjustments into Cost of services | 106,192 | 1,893 | 193,679 | (3,754) | |
| Income tax benefit (expense) | 42,081 | 1,958 | 69,129 | 7,071 | |
| Portion attributable to noncontrolling interests | 213 | (75) | 326 | 18 | |
| Cash flow hedges, net of tax | (225,381) | 80,774 | (346,087) | (18,689) | |
| Ending Balance | (555,464) | (23,516) | (555,464) | (23,516) | |
| Accumulated other comprehensive loss | $ (1,800,296) | $ (1,485,589) | (1,800,296) | $ (1,485,589) | $ (1,465,379) |
| Net unrealized losses expected to be reclassified in the next twelve months | $ 362,320 | ||||
| X | ||||||||||
- Definition Amount, after tax, of accumulated other comprehensive (income) loss for defined benefit plan, that has not been recognized in net periodic benefit cost (credit). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Accumulated adjustment, net of tax, that results from the process of translating subsidiary financial statements and foreign equity investments into the reporting currency from the functional currency of the reporting entity, net of reclassification of realized foreign currency translation gains or losses. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after tax, of accumulated gain (loss) on derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The estimated net amount of existing gains or losses on cash flow hedges at the reporting date expected to be reclassified to earnings within the next 12 months. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, before tax, of cost (credit) of benefit change attributable to participants' prior service from plan amendment or plan initiation of defined benefit plan, that has not been recognized in net periodic benefit cost (credit). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, before tax, after reclassification adjustment, of (increase) decrease in accumulated other comprehensive (income) loss for defined benefit plan, attributable to noncontrolling interest. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount before tax, after reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature, attributable to noncontrolling interests. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of tax expense (benefit), before reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after tax and reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax and reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, attributable to noncontrolling interest. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, before tax and reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, before tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount before tax, after reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount after tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, before tax, of gain (loss) for (increase) decrease in value of benefit obligation for change in actuarial assumptions and increase (decrease) in value of plan assets from experience different from that assumed of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after reclassification adjustment, of tax (expense) benefit for (increase) decrease in accumulated other comprehensive income of defined benefit plan. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, before tax, of reclassification adjustment from accumulated other comprehensive (income) loss for net period benefit cost (credit) of defined benefit plan. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|