Annual report [Section 13 and 15(d), not S-K Item 405]

Financing - Narrative (Details)

v3.25.4
Financing - Narrative (Details)
$ in Thousands
12 Months Ended
May 13, 2025
USD ($)
Dec. 31, 2025
USD ($)
Dec. 31, 2024
USD ($)
Dec. 31, 2023
USD ($)
Dec. 31, 2022
USD ($)
Debt Instrument [Line Items]          
Percent of equity of the amount at risk under repurchase agreements   10.00% 10.00%    
Revolving credit facilities   $ 919,371 $ 1,020,171    
Mortgage servicing rights, at fair value   2,421,910 2,994,271 $ 3,052,016 $ 2,984,937
Servicing advances   103,500 141,600    
Warehouse lines of credit   9,406 2,032    
Mortgage loans held-for-sale, at fair value   13,630 2,334    
Senior notes   111,055 0    
Repurchase of convertible senior notes   0 9,675 13,169  
Convertible senior notes   261,810 260,229    
Asset Pledged as Collateral          
Debt Instrument [Line Items]          
Mortgage servicing rights, at fair value   $ 2,400,000 $ 3,000,000    
Revolving Credit Facilities          
Debt Instrument [Line Items]          
Weighted average borrowing rate   6.77% 7.56%    
Weighted average remaining maturity   1 year 9 months 18 days 1 year 7 months 6 days    
Revolving Credit Facilities | Asset Pledged as Collateral          
Debt Instrument [Line Items]          
Mortgage servicing rights, at fair value   $ 1,500,000 $ 1,600,000    
Servicing advances   $ 100,100 $ 118,700    
Warehouse Lines of Credit          
Debt Instrument [Line Items]          
Weighted average remaining maturities   90 days      
Weighted average remaining maturities   60 days      
Weighted average borrowing rate   6.00% 6.64%    
Weighted average remaining maturities   80 days 87 days    
Cash held in restricted accounts as collateral   $ 400 $ 400    
Warehouse Lines of Credit | Asset Pledged as Collateral          
Debt Instrument [Line Items]          
Mortgage loans held-for-sale, at fair value   9,600 2,100    
Senior Notes          
Debt Instrument [Line Items]          
Aggregate principal amount $ 115,000        
Secured financing interest rate per annum 9.375%        
Redemption price 100.00%        
Net proceeds $ 110,600        
Senior notes   111,100      
Senior Notes Overallotment Option          
Debt Instrument [Line Items]          
Aggregate principal amount $ 15,000        
Convertible Senior Notes          
Debt Instrument [Line Items]          
Aggregate principal amount   $ 261,900 $ 261,900    
Secured financing interest rate per annum   6.25%      
Convertible senior notes conversion ratio   0.0338752 0.0338752    
Principal amount repurchased   $ 0 $ 10,000 15,600  
Repurchase of convertible senior notes     9,700 13,200  
Gain on repurchase of convertible notes     $ 200 $ 2,200