Annual report pursuant to Section 13 and 15(d)

FAIR VALUE MEASUREMENT - Weighted Average Inputs used in Valuing Excess MSRs Owned Directly and through Equity Method Investees (Details)

v3.20.4
FAIR VALUE MEASUREMENT - Weighted Average Inputs used in Valuing Excess MSRs Owned Directly and through Equity Method Investees (Details)
12 Months Ended
Dec. 31, 2019
security
$ / Loan
Dec. 31, 2020
$ / Loan
Prepayment Rate    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.123  
Prepayment Rate | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.095  
Prepayment Rate | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.076
Prepayment Rate | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.056
Prepayment Rate | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.241
Prepayment Rate | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.129
Prepayment Rate | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.085
Prepayment Rate | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.129  
Prepayment Rate | Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.125  
Prepayment Rate | Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.154 0.121
Prepayment Rate | Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.079
Prepayment Rate | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.079
Prepayment Rate | Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.233
Prepayment Rate | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.233
Prepayment Rate | Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.131
Prepayment Rate | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.131
Prepayment Rate | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.084  
Prepayment Rate | Non-Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.116  
Prepayment Rate | Non-Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.083 0.076
Prepayment Rate | Non-Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.076
Prepayment Rate | Non-Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.095
Prepayment Rate | Non-Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.164
Prepayment Rate | Non-Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.164
Prepayment Rate | Non-Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.077
Prepayment Rate | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.131
Prepayment Rate | Ginnie Mae | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.162  
Prepayment Rate | Ginnie Mae | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.090
Prepayment Rate | Ginnie Mae | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.241
Prepayment Rate | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.203
Prepayment Rate | Directly Held | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.093  
Prepayment Rate | Directly Held | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.056
Prepayment Rate | Directly Held | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Directly Held | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.085
Prepayment Rate | Directly Held | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.092  
Prepayment Rate | Directly Held | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.086  
Prepayment Rate | Directly Held | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.107  
Prepayment Rate | Directly Held | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.071
Prepayment Rate | Directly Held | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.07
Prepayment Rate | Directly Held | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.07
Prepayment Rate | Directly Held | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.109
Prepayment Rate | Directly Held | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Directly Held | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Directly Held | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.078
Prepayment Rate | Directly Held | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.096
Prepayment Rate | Directly Held | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.084
Prepayment Rate | Directly Held | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.094  
Prepayment Rate | Directly Held | Non-Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.097  
Prepayment Rate | Directly Held | Non-Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.075  
Prepayment Rate | Directly Held | Non-Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.066
Prepayment Rate | Directly Held | Non-Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.056
Prepayment Rate | Directly Held | Non-Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.056
Prepayment Rate | Directly Held | Non-Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Directly Held | Non-Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.074
Prepayment Rate | Directly Held | Non-Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.119
Prepayment Rate | Directly Held | Non-Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.09
Prepayment Rate | Directly Held | Non-Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.061
Prepayment Rate | Directly Held | Non-Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.085
Prepayment Rate | Held through Equity Method Investees | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.075
Prepayment Rate | Held through Equity Method Investees | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.107
Prepayment Rate | Held through Equity Method Investees | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.090
Prepayment Rate | Held through Equity Method Investees | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.098  
Prepayment Rate | Held through Equity Method Investees | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.093  
Prepayment Rate | Held through Equity Method Investees | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.103  
Prepayment Rate | Held through Equity Method Investees | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.071
Prepayment Rate | Held through Equity Method Investees | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.086
Prepayment Rate | Held through Equity Method Investees | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.102
Prepayment Rate | Held through Equity Method Investees | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.105
Prepayment Rate | Held through Equity Method Investees | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.08
Prepayment Rate | Held through Equity Method Investees | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.093
Delinquency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.041  
Delinquency | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.010  
Delinquency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.004
Delinquency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Delinquency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.130
Delinquency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.139
Delinquency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.042
Delinquency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.036
Delinquency | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.009  
Delinquency | Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.010  
Delinquency | Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.004 0.007
Delinquency | Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.004
Delinquency | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.004
Delinquency | Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.021
Delinquency | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.021
Delinquency | Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.009
Delinquency | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.009
Delinquency | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.142  
Delinquency | Non-Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.012  
Delinquency | Non-Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.144 0.130
Delinquency | Non-Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.009
Delinquency | Non-Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.009
Delinquency | Non-Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.130
Delinquency | Non-Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.094
Delinquency | Non-Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.129
Delinquency | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.049
Delinquency | Ginnie Mae | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.044  
Delinquency | Ginnie Mae | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.023
Delinquency | Ginnie Mae | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.056
Delinquency | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.047
Delinquency | Directly Held | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.009  
Delinquency | Directly Held | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Delinquency | Directly Held | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.139
Delinquency | Directly Held | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.048
Delinquency | Directly Held | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.009  
Delinquency | Directly Held | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.011  
Delinquency | Directly Held | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.005  
Delinquency | Directly Held | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Delinquency | Directly Held | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Delinquency | Directly Held | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Delinquency | Directly Held | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.035
Delinquency | Directly Held | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.04
Delinquency | Directly Held | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.04
Delinquency | Directly Held | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.014
Delinquency | Directly Held | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.009
Delinquency | Directly Held | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.012
Delinquency | Directly Held | Non-Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.026
Delinquency | Directly Held | Non-Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.002
Delinquency | Directly Held | Non-Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.002
Delinquency | Directly Held | Non-Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.139
Delinquency | Directly Held | Non-Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.005
Delinquency | Directly Held | Non-Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.139
Delinquency | Directly Held | Non-Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.102
Delinquency | Directly Held | Non-Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.004
Delinquency | Directly Held | Non-Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.102
Delinquency | Held through Equity Method Investees | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.006
Delinquency | Held through Equity Method Investees | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.022
Delinquency | Held through Equity Method Investees | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.012
Delinquency | Held through Equity Method Investees | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.011  
Delinquency | Held through Equity Method Investees | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.014  
Delinquency | Held through Equity Method Investees | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.008  
Delinquency | Held through Equity Method Investees | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.012
Delinquency | Held through Equity Method Investees | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.006
Delinquency | Held through Equity Method Investees | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.025
Delinquency | Held through Equity Method Investees | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.017
Delinquency | Held through Equity Method Investees | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.016
Delinquency | Held through Equity Method Investees | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.012
Recapture Rate    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.200  
Recapture Rate | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.214  
Recapture Rate | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.025
Recapture Rate | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.355
Recapture Rate | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.350
Recapture Rate | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.20
Recapture Rate | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.122
Recapture Rate | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.222  
Recapture Rate | Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.233  
Recapture Rate | Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.158 0.159
Recapture Rate | Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.025
Recapture Rate | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.025
Recapture Rate | Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.355
Recapture Rate | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.355
Recapture Rate | Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.205
Recapture Rate | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.206
Recapture Rate | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.095  
Recapture Rate | Non-Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.221  
Recapture Rate | Non-Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.093 0.079
Recapture Rate | Non-Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.043
Recapture Rate | Non-Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.043
Recapture Rate | Non-Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.316
Recapture Rate | Non-Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.316
Recapture Rate | Non-Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.081
Recapture Rate | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.186
Recapture Rate | Ginnie Mae | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.281  
Recapture Rate | Ginnie Mae | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.162
Recapture Rate | Ginnie Mae | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.350
Recapture Rate | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.249
Recapture Rate | Directly Held | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.194  
Recapture Rate | Directly Held | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Directly Held | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.350
Recapture Rate | Directly Held | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.123
Recapture Rate | Directly Held | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.223  
Recapture Rate | Directly Held | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.203  
Recapture Rate | Directly Held | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.278  
Recapture Rate | Directly Held | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.044
Recapture Rate | Directly Held | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Directly Held | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Directly Held | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.233
Recapture Rate | Directly Held | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.350
Recapture Rate | Directly Held | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.350
Recapture Rate | Directly Held | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.103
Recapture Rate | Directly Held | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.204
Recapture Rate | Directly Held | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.138
Recapture Rate | Directly Held | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.158  
Recapture Rate | Directly Held | Non-Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.155  
Recapture Rate | Directly Held | Non-Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.174  
Recapture Rate | Directly Held | Non-Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Directly Held | Non-Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.121
Recapture Rate | Directly Held | Non-Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Recapture Rate | Directly Held | Non-Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.131
Recapture Rate | Directly Held | Non-Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.214
Recapture Rate | Directly Held | Non-Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.214
Recapture Rate | Directly Held | Non-Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.10
Recapture Rate | Directly Held | Non-Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.142
Recapture Rate | Directly Held | Non-Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.107
Recapture Rate | Held through Equity Method Investees | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.055
Recapture Rate | Held through Equity Method Investees | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.298
Recapture Rate | Held through Equity Method Investees | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.129
Recapture Rate | Held through Equity Method Investees | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.251  
Recapture Rate | Held through Equity Method Investees | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.237  
Recapture Rate | Held through Equity Method Investees | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 0.267  
Recapture Rate | Held through Equity Method Investees | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.052
Recapture Rate | Held through Equity Method Investees | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.117
Recapture Rate | Held through Equity Method Investees | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.233
Recapture Rate | Held through Equity Method Investees | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.289
Recapture Rate | Held through Equity Method Investees | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.089
Recapture Rate | Held through Equity Method Investees | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0.15
Servicing Amount Percent    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 33  
Servicing Amount Percent | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 20  
Servicing Amount Percent | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   5
Servicing Amount Percent | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   88
Servicing Amount Percent | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   35
Servicing Amount Percent | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   20
Servicing Amount Percent | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 28  
Servicing Amount Percent | Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 28  
Servicing Amount Percent | Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 27 25
Servicing Amount Percent | Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   28
Servicing Amount Percent | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   28
Servicing Amount Percent | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 47  
Servicing Amount Percent | Non-Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 31  
Servicing Amount Percent | Non-Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 47 48
Servicing Amount Percent | Non-Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   26
Servicing Amount Percent | Non-Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   26
Servicing Amount Percent | Non-Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   88
Servicing Amount Percent | Non-Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   88
Servicing Amount Percent | Non-Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   48
Servicing Amount Percent | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   55
Servicing Amount Percent | Ginnie Mae | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 42  
Servicing Amount Percent | Ginnie Mae | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   32
Servicing Amount Percent | Ginnie Mae | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   50
Servicing Amount Percent | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   45
Servicing Amount Percent | Directly Held | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 19  
Servicing Amount Percent | Directly Held | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   5
Servicing Amount Percent | Directly Held | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Directly Held | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   19
Servicing Amount Percent | Directly Held | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 22  
Servicing Amount Percent | Directly Held | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 21  
Servicing Amount Percent | Directly Held | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 23  
Servicing Amount Percent | Directly Held | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   15
Servicing Amount Percent | Directly Held | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Servicing Amount Percent | Directly Held | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   15
Servicing Amount Percent | Directly Held | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Directly Held | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   29
Servicing Amount Percent | Directly Held | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   31
Servicing Amount Percent | Directly Held | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Servicing Amount Percent | Directly Held | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   24
Servicing Amount Percent | Directly Held | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Servicing Amount Percent | Directly Held | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 16  
Servicing Amount Percent | Directly Held | Non-Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 15  
Servicing Amount Percent | Directly Held | Non-Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 24  
Servicing Amount Percent | Directly Held | Non-Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   5
Servicing Amount Percent | Directly Held | Non-Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Servicing Amount Percent | Directly Held | Non-Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   5
Servicing Amount Percent | Directly Held | Non-Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Directly Held | Non-Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   27
Servicing Amount Percent | Directly Held | Non-Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   27
Servicing Amount Percent | Directly Held | Non-Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   15
Servicing Amount Percent | Directly Held | Non-Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Directly Held | Non-Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   17
Servicing Amount Percent | Held through Equity Method Investees | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 21  
Servicing Amount Percent | Held through Equity Method Investees | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 19  
Servicing Amount Percent | Held through Equity Method Investees | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input 24  
Servicing Amount Percent | Held through Equity Method Investees | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   15
Servicing Amount Percent | Held through Equity Method Investees | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Servicing Amount Percent | Held through Equity Method Investees | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   15
Servicing Amount Percent | Held through Equity Method Investees | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Held through Equity Method Investees | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   28
Servicing Amount Percent | Held through Equity Method Investees | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   28
Servicing Amount Percent | Held through Equity Method Investees | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   19
Servicing Amount Percent | Held through Equity Method Investees | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Servicing Amount Percent | Held through Equity Method Investees | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 23 years  
Collateral Weighted Average Maturity Years | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 21 years  
Collateral Weighted Average Maturity Years | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   13
Collateral Weighted Average Maturity Years | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   29
Collateral Weighted Average Maturity Years | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Collateral Weighted Average Maturity Years | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 22 years  
Collateral Weighted Average Maturity Years | Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 22 years  
Collateral Weighted Average Maturity Years | Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 25 years  
Collateral Weighted Average Maturity Years | Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Agency | Minimum | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Agency | Maximum | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years | Agency | Weighted Average | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 25 years  
Collateral Weighted Average Maturity Years | Non-Agency | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 16 years  
Collateral Weighted Average Maturity Years | Non-Agency | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 25 years  
Collateral Weighted Average Maturity Years | Non-Agency | Minimum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Non-Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Non-Agency | Minimum | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Non-Agency | Maximum    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Non-Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Non-Agency | Maximum | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Non-Agency | Weighted Average    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Collateral Weighted Average Maturity Years | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   16
Collateral Weighted Average Maturity Years | Non-Agency | Weighted Average | Mortgage Servicing Rights Financing Receivable    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   25
Collateral Weighted Average Maturity Years | Ginnie Mae | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 27 years  
Collateral Weighted Average Maturity Years | Ginnie Mae | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   0
Collateral Weighted Average Maturity Years | Ginnie Mae | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   30
Collateral Weighted Average Maturity Years | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   27
Collateral Weighted Average Maturity Years | Directly Held | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 22 years  
Collateral Weighted Average Maturity Years | Directly Held | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   13
Collateral Weighted Average Maturity Years | Directly Held | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   29
Collateral Weighted Average Maturity Years | Directly Held | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Collateral Weighted Average Maturity Years | Directly Held | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 21 years  
Collateral Weighted Average Maturity Years | Directly Held | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 20 years  
Collateral Weighted Average Maturity Years | Directly Held | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 23 years  
Collateral Weighted Average Maturity Years | Directly Held | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   13
Collateral Weighted Average Maturity Years | Directly Held | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   19
Collateral Weighted Average Maturity Years | Directly Held | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   13
Collateral Weighted Average Maturity Years | Directly Held | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Collateral Weighted Average Maturity Years | Directly Held | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   24
Collateral Weighted Average Maturity Years | Directly Held | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   24
Collateral Weighted Average Maturity Years | Directly Held | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   19
Collateral Weighted Average Maturity Years | Directly Held | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years | Directly Held | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   20
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 24 years  
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 24 years  
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 23 years  
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   18
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   21
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   29
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   18
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Directly Held | Non-Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 20 years  
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 19 years  
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Collateral Weighted Average Maturity (in years) 22 years  
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Minimum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   18
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Minimum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   20
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Minimum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   18
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Maximum | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   19
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Maximum | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Maximum | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   23
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Weighted Average | Original Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   18
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Weighted Average | Recaptured Pools    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   22
Collateral Weighted Average Maturity Years | Held through Equity Method Investees | Agency | Weighted Average | Excess MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input   20
Sub-Servicing Cost | Agency | Minimum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input | $ / Loan   6.20
Sub-Servicing Cost | Agency | Maximum | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input | $ / Loan   7.50
Sub-Servicing Cost | Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input | $ / Loan 7.18 7.00
Sub-Servicing Cost | Non-Agency | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input | $ / Loan 11.28 10.90
Sub-Servicing Cost | Ginnie Mae | Weighted Average | MSRs    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Servicing asset, measurement input | $ / Loan 9.20 8.90