v3.25.2
Cash, Cash Equivalents and Restricted Cash - Restricted Cash and Cash Equivalents (Details) - USD ($)
$ in Thousands
Jun. 30, 2025
Dec. 31, 2024
Restricted Cash and Cash Equivalent Item [Line Items]    
Total $ 140,481 $ 313,028
For securities trading activity    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total 600 950
For derivatives trading activity    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total 37,080 43,398
For servicing activities    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total 58,165 49,900
As restricted collateral for borrowings    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total 44,569 218,715
Total restricted cash balances held by trading counterparties    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total 140,414 312,963
Restricted cash balance pursuant to letter of credit on office lease    
Restricted Cash and Cash Equivalent Item [Line Items]    
Total $ 67 $ 65