Net Income Per Share - Summary of Anti-dilutive Securities (Details) - shares shares in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Anti-dilutive securities excluded from diluted per share calculations | |||
| Anti-dilutive securities excluded (in shares) | 53 | 76 | 24 |
| Restricted stock units | |||
| Anti-dilutive securities excluded from diluted per share calculations | |||
| Anti-dilutive securities excluded (in shares) | 31 | 8 | 12 |
| Performance stock units | |||
| Anti-dilutive securities excluded from diluted per share calculations | |||
| Anti-dilutive securities excluded (in shares) | 22 | 0 | 0 |
| Market stock units | |||
| Anti-dilutive securities excluded from diluted per share calculations | |||
| Anti-dilutive securities excluded (in shares) | 0 | 68 | 12 |