Pension Plans and Other Postretirement Benefit Plans - Summary of Deferred Compensation Plan Amounts Recognized On Balance Sheet (Details) - USD ($) $ in Thousands |
Jun. 30, 2026 |
Jun. 30, 2025 |
|---|---|---|
| Retirement Benefits [Abstract] | ||
| Non-current assets (recorded in Other non-current assets) | $ 6,924 | $ 5,238 |
| Current liabilities (recorded in Accounts payable, accrued and other current liabilities) | (1,622) | 0 |
| Non-current liabilities (recorded in Other non-current liabilities) | $ (5,301) | $ (5,238) |