v3.25.2
Long-Term Debt - Additional Information (Detail) - USD ($)
6 Months Ended
Aug. 10, 2023
Jun. 30, 2025
Credit Agreements [Member] | Freddie Mac MSR and Servicing Advance Receivables Financing    
Debt Instrument [Line Items]    
Aggregate loan amount   $ 2,000,000,000
Maturity date of debt instrument   Aug. 31, 2026
Senior Notes [Member]    
Debt Instrument [Line Items]    
Percentage of interest on debt   100.00%
Series 2023-VF1 and Class A-VF1 Variable Funding Note | Freddie Mac MSR and Servicing Advance Receivables Financing    
Debt Instrument [Line Items]    
Maturity date of debt instrument Mar. 06, 2026  
Series 2023-VF1 and Class A-VF1 Variable Funding Note | Freddie Mac MSR and Servicing Advance Receivables Financing | Maximum [Member]    
Debt Instrument [Line Items]    
Aggregate principal amount $ 175,000,000  
PennyMac Loan Services, LLC [Member] | Fannie Mae MSR Financing    
Debt Instrument [Line Items]    
Line of credit, maximum borrowing capacity   $ 1,100,000,000
Repurchase agreement facilities   2 years