{
 "instance": {
  "nymt-20230630.htm": {
   "axisCustom": 1,
   "axisStandard": 42,
   "baseTaxonomies": {
    "http://fasb.org/srt/2023": 14,
    "http://fasb.org/us-gaap/2023": 2254,
    "http://xbrl.sec.gov/dei/2023": 41
   },
   "contextCount": 1031,
   "dts": {
    "calculationLink": {
     "local": [
      "nymt-20230630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "nymt-20230630_def.xml"
     ]
    },
    "inline": {
     "local": [
      "nymt-20230630.htm"
     ]
    },
    "labelLink": {
     "local": [
      "nymt-20230630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "nymt-20230630_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "nymt-20230630.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/stpr/2023/stpr-2023.xsd"
     ]
    }
   },
   "elementCount": 911,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2023": 16,
    "http://nymtrust.com/20230630": 1,
    "http://xbrl.sec.gov/dei/2023": 5,
    "total": 22
   },
   "keyCustom": 132,
   "keyStandard": 396,
   "memberCustom": 99,
   "memberStandard": 80,
   "nsprefix": "nymt",
   "nsuri": "http://nymtrust.com/20230630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "0000001 - Document - Cover",
     "menuCat": "Cover",
     "order": "1",
     "role": "http://nymtrust.com/role/Cover",
     "shortName": "Cover",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000010 - Disclosure - Summary of Significant Accounting Policies",
     "menuCat": "Notes",
     "order": "10",
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-544",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954770 - Disclosure - Debt - Preferred Securities (Details)",
     "menuCat": "Details",
     "order": "100",
     "role": "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
     "shortName": "Debt - Preferred Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-544",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-550",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ContractualInterestExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954771 - Disclosure - Debt - Schedule of Interest Expense from Convertible Debt (Details)",
     "menuCat": "Details",
     "order": "101",
     "role": "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
     "shortName": "Debt - Schedule of Interest Expense from Convertible Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-550",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ContractualInterestExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954772 - Disclosure - Debt - Schedule of Mortgage Notes Payable On Operating Real Estate (Details)",
     "menuCat": "Details",
     "order": "102",
     "role": "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
     "shortName": "Debt - Schedule of Mortgage Notes Payable On Operating Real Estate (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:UnrealizedGainLossOnInvestments",
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-558",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:UnrealizedGainLossOnInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954773 - Disclosure - Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "menuCat": "Details",
     "order": "103",
     "role": "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
     "shortName": "Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-559",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AmountAgreedToFundJointVentureEquityInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954774 - Disclosure - Commitments and Contingencies (Details)",
     "menuCat": "Details",
     "order": "104",
     "role": "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
     "shortName": "Commitments and Contingencies (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-559",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AmountAgreedToFundJointVentureEquityInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954775 - Disclosure - Fair Value of Financial Instruments - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "menuCat": "Details",
     "order": "105",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
     "shortName": "Fair Value of Financial Instruments - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-627",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-36",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954776 - Disclosure - Fair Value of Financial Instruments - Valuation for Level 3 Assets (Details)",
     "menuCat": "Details",
     "order": "106",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
     "shortName": "Fair Value of Financial Instruments - Valuation for Level 3 Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-36",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-734",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954777 - Disclosure - Fair Value of Financial Instruments - Valuation for Level 3 Liabilities (Details)",
     "menuCat": "Details",
     "order": "107",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
     "shortName": "Fair Value of Financial Instruments - Valuation for Level 3 Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-734",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-16",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SecuredDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954778 - Disclosure - Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "menuCat": "Details",
     "order": "108",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
     "shortName": "Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-769",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-811",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954779 - Disclosure - Fair Value of Financial Instruments - Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "menuCat": "Details",
     "order": "109",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
     "shortName": "Fair Value of Financial Instruments - Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-811",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000011 - Disclosure - Residential Loans, at Fair Value",
     "menuCat": "Notes",
     "order": "11",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValue",
     "shortName": "Residential Loans, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954780 - Disclosure - Fair Value of Financial Instruments - Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "menuCat": "Details",
     "order": "110",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
     "shortName": "Fair Value of Financial Instruments - Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-835",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R111": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
      "reportCount": 1,
      "unitRef": "seriesofpreferredstock",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954781 - Disclosure - Stockholders' Equity - Narrative (Details)",
     "menuCat": "Details",
     "order": "111",
     "role": "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
     "shortName": "Stockholders' Equity - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "lang": "en-US",
      "name": "nymt:PreferredStockRedemptionPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R112": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954782 - Disclosure - Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "menuCat": "Details",
     "order": "112",
     "role": "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails",
     "shortName": "Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-870",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:PreferredStockValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R113": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDividendsPayableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-893",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954783 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "menuCat": "Details",
     "order": "113",
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDividendsPayableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-893",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R114": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954784 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "menuCat": "Details",
     "order": "114",
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R115": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-548",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ExtinguishmentOfDebtAmount",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954785 - Disclosure - (Loss) Earnings Per Common Share - Narrative (Details)",
     "menuCat": "Details",
     "order": "115",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
     "shortName": "(Loss) Earnings Per Common Share - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R116": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954786 - Disclosure - (Loss) Earnings Per Common Share - Computation of Basic and Diluted (Loss) Earnings per Common Share (Details)",
     "menuCat": "Details",
     "order": "116",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
     "shortName": "(Loss) Earnings Per Common Share - Computation of Basic and Diluted (Loss) Earnings per Common Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R117": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-958",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954787 - Disclosure - Stock Based Compensation - Narrative (Details)",
     "menuCat": "Details",
     "order": "117",
     "role": "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
     "shortName": "Stock Based Compensation - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-952",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R118": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-956",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954788 - Disclosure - Stock Based Compensation - Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "menuCat": "Details",
     "order": "118",
     "role": "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails",
     "shortName": "Stock Based Compensation - Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-953",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R119": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954789 - Disclosure - Income Taxes - Income Tax Provision (Benefit) (Details)",
     "menuCat": "Details",
     "order": "119",
     "role": "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails",
     "shortName": "Income Taxes - Income Tax Provision (Benefit) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000012 - Disclosure - Multi-family Loans, at Fair Value",
     "menuCat": "Notes",
     "order": "12",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValue",
     "shortName": "Multi-family Loans, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R120": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954790 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "menuCat": "Details",
     "order": "120",
     "role": "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails",
     "shortName": "Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R121": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954791 - Disclosure - Income Taxes - Narrative (Details)",
     "menuCat": "Details",
     "order": "121",
     "role": "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
     "shortName": "Income Taxes - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R122": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954792 - Disclosure - Net Interest Income - Schedule of Components of Interest Income and Interest Expense (Details)",
     "menuCat": "Details",
     "order": "122",
     "role": "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
     "shortName": "Net Interest Income - Schedule of Components of Interest Income and Interest Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1024",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestExpenseMediumTermNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R123": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954793 - Disclosure - Other (Loss) Income - Schedule of Other (Loss) Income (Details)",
     "menuCat": "Details",
     "order": "123",
     "role": "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails",
     "shortName": "Other (Loss) Income - Schedule of Other (Loss) Income (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:OtherLossIncomeMiscellaneous",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000013 - Disclosure - Investment Securities Available for Sale, at Fair Value",
     "menuCat": "Notes",
     "order": "13",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValue",
     "shortName": "Investment Securities Available for Sale, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000014 - Disclosure - Equity Investments, at Fair Value",
     "menuCat": "Notes",
     "order": "14",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValue",
     "shortName": "Equity Investments, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000015 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "menuCat": "Notes",
     "order": "15",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000016 - Disclosure - Real Estate, Net",
     "menuCat": "Notes",
     "order": "16",
     "role": "http://nymtrust.com/role/RealEstateNet",
     "shortName": "Real Estate, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000017 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale",
     "menuCat": "Notes",
     "order": "17",
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSale",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000018 - Disclosure - Derivative Instruments and Hedging Activities",
     "menuCat": "Notes",
     "order": "18",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities",
     "shortName": "Derivative Instruments and Hedging Activities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000019 - Disclosure - Other Assets and Other Liabilities",
     "menuCat": "Notes",
     "order": "19",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilities",
     "shortName": "Other Assets and Other Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000002 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS",
     "menuCat": "Statements",
     "order": "2",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:OperatingRealEstateNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000020 - Disclosure - Repurchase Agreements",
     "menuCat": "Notes",
     "order": "20",
     "role": "http://nymtrust.com/role/RepurchaseAgreements",
     "shortName": "Repurchase Agreements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000021 - Disclosure - Collateralized Debt Obligations",
     "menuCat": "Notes",
     "order": "21",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligations",
     "shortName": "Collateralized Debt Obligations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000022 - Disclosure - Debt",
     "menuCat": "Notes",
     "order": "22",
     "role": "http://nymtrust.com/role/Debt",
     "shortName": "Debt",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000023 - Disclosure - Commitments and Contingencies",
     "menuCat": "Notes",
     "order": "23",
     "role": "http://nymtrust.com/role/CommitmentsandContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000024 - Disclosure - Fair Value of Financial Instruments",
     "menuCat": "Notes",
     "order": "24",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstruments",
     "shortName": "Fair Value of Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000025 - Disclosure - Stockholders' Equity",
     "menuCat": "Notes",
     "order": "25",
     "role": "http://nymtrust.com/role/StockholdersEquity",
     "shortName": "Stockholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000026 - Disclosure - (Loss) Earnings Per Common Share",
     "menuCat": "Notes",
     "order": "26",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShare",
     "shortName": "(Loss) Earnings Per Common Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000027 - Disclosure - Stock Based Compensation",
     "menuCat": "Notes",
     "order": "27",
     "role": "http://nymtrust.com/role/StockBasedCompensation",
     "shortName": "Stock Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000028 - Disclosure - Income Taxes",
     "menuCat": "Notes",
     "order": "28",
     "role": "http://nymtrust.com/role/IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000029 - Disclosure - Net Interest Income",
     "menuCat": "Notes",
     "order": "29",
     "role": "http://nymtrust.com/role/NetInterestIncome",
     "shortName": "Net Interest Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000003 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "menuCat": "Statements",
     "order": "3",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:PreferredStockParOrStatedValuePerShare",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-23",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:PreferredStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000030 - Disclosure - Other (Loss) Income",
     "menuCat": "Notes",
     "order": "30",
     "role": "http://nymtrust.com/role/OtherLossIncome",
     "shortName": "Other (Loss) Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954701 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "menuCat": "Policies",
     "order": "31",
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954702 - Disclosure - Residential Loans, at Fair Value (Tables)",
     "menuCat": "Tables",
     "order": "32",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueTables",
     "shortName": "Residential Loans, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954703 - Disclosure - Multi-family Loans, at Fair Value (Tables)",
     "menuCat": "Tables",
     "order": "33",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
     "shortName": "Multi-family Loans, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "lang": "en-US",
      "name": "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954704 - Disclosure - Investment Securities Available for Sale, at Fair Value (Tables)",
     "menuCat": "Tables",
     "order": "34",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables",
     "shortName": "Investment Securities Available for Sale, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954705 - Disclosure - Equity Investments, at Fair Values (Tables)",
     "menuCat": "Tables",
     "order": "35",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables",
     "shortName": "Equity Investments, at Fair Values (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954706 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "menuCat": "Tables",
     "order": "36",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954707 - Disclosure - Real Estate, Net (Tables)",
     "menuCat": "Tables",
     "order": "37",
     "role": "http://nymtrust.com/role/RealEstateNetTables",
     "shortName": "Real Estate, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954708 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale (Tables)",
     "menuCat": "Tables",
     "order": "38",
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleTables",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954709 - Disclosure - Derivative Instruments and Hedging Activities (Tables)",
     "menuCat": "Tables",
     "order": "39",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables",
     "shortName": "Derivative Instruments and Hedging Activities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000004 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "menuCat": "Statements",
     "order": "4",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:RentalIncomeNonoperatingExcludingOtherRealEstateIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954710 - Disclosure - Other Assets and Other Liabilities (Tables)",
     "menuCat": "Tables",
     "order": "40",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables",
     "shortName": "Other Assets and Other Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954711 - Disclosure - Repurchase Agreements (Tables)",
     "menuCat": "Tables",
     "order": "41",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsTables",
     "shortName": "Repurchase Agreements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954712 - Disclosure - Collateralized Debt Obligations (Tables)",
     "menuCat": "Tables",
     "order": "42",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
     "shortName": "Collateralized Debt Obligations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentRedemptionTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954713 - Disclosure - Debt (Tables)",
     "menuCat": "Tables",
     "order": "43",
     "role": "http://nymtrust.com/role/DebtTables",
     "shortName": "Debt (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentRedemptionTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954714 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "menuCat": "Tables",
     "order": "44",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954715 - Disclosure - Stockholders' Equity (Tables)",
     "menuCat": "Tables",
     "order": "45",
     "role": "http://nymtrust.com/role/StockholdersEquityTables",
     "shortName": "Stockholders' Equity (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954716 - Disclosure - (Loss) Earnings Per Common Share (Tables)",
     "menuCat": "Tables",
     "order": "46",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareTables",
     "shortName": "(Loss) Earnings Per Common Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954717 - Disclosure - Stock Based Compensation (Tables)",
     "menuCat": "Tables",
     "order": "47",
     "role": "http://nymtrust.com/role/StockBasedCompensationTables",
     "shortName": "Stock Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954718 - Disclosure - Income Taxes (Tables)",
     "menuCat": "Tables",
     "order": "48",
     "role": "http://nymtrust.com/role/IncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954719 - Disclosure - Net Interest Income (Tables)",
     "menuCat": "Tables",
     "order": "49",
     "role": "http://nymtrust.com/role/NetInterestIncomeTables",
     "shortName": "Net Interest Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": null
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000005 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME",
     "menuCat": "Statements",
     "order": "5",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954720 - Disclosure - Other (Loss) Income (Tables)",
     "menuCat": "Tables",
     "order": "50",
     "role": "http://nymtrust.com/role/OtherLossIncomeTables",
     "shortName": "Other (Loss) Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954721 - Disclosure - Summary of Significant Accounting Policies - Narrative (Details)",
     "menuCat": "Details",
     "order": "51",
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails",
     "shortName": "Summary of Significant Accounting Policies - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954722 - Disclosure - Residential Loans, at Fair Value - Schedule of Residential Loans at Fair Value (Details)",
     "menuCat": "Details",
     "order": "52",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
     "shortName": "Residential Loans, at Fair Value - Schedule of Residential Loans at Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-121",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954723 - Disclosure - Residential Loans, at Fair Value - Components of Net Gain (Loss) on Residential Mortgages (Details)",
     "menuCat": "Details",
     "order": "53",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
     "shortName": "Residential Loans, at Fair Value - Components of Net Gain (Loss) on Residential Mortgages (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-121",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954724 - Disclosure - Residential Loans, at Fair Value - Narrative (Details)",
     "menuCat": "Details",
     "order": "54",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
     "shortName": "Residential Loans, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-132",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954725 - Disclosure - Residential Loans, at Fair Value - Concentration of Risk (Details)",
     "menuCat": "Details",
     "order": "55",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
     "shortName": "Residential Loans, at Fair Value - Concentration of Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-132",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954726 - Disclosure - Residential Loans, at Fair Value - Differences Between Fair Value and Aggregate Unpaid Principal (Details)",
     "menuCat": "Details",
     "order": "56",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
     "shortName": "Residential Loans, at Fair Value - Differences Between Fair Value and Aggregate Unpaid Principal (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-174",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-180",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954727 - Disclosure - Multi-family Loans, at Fair Value - Preferred Equity and Mezzanine Loan Investments (Details)",
     "menuCat": "Details",
     "order": "57",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
     "shortName": "Multi-family Loans, at Fair Value - Preferred Equity and Mezzanine Loan Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-180",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954728 - Disclosure - Multi-family Loans, at Fair Value - Narrative (Details)",
     "menuCat": "Details",
     "order": "58",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
     "shortName": "Multi-family Loans, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-182",
      "decimals": "-5",
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-186",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954729 - Disclosure - Multi-family Loans, at Fair Value - Unpaid Principal Balance (Details)",
     "menuCat": "Details",
     "order": "59",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
     "shortName": "Multi-family Loans, at Fair Value - Unpaid Principal Balance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-186",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-104",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000006 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "menuCat": "Statements",
     "order": "6",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-104",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-188",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954730 - Disclosure - Multi-family Loans, at Fair Value - Geographic Concentration Risk (Details)",
     "menuCat": "Details",
     "order": "60",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
     "shortName": "Multi-family Loans, at Fair Value - Geographic Concentration Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-188",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954731 - Disclosure - Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "menuCat": "Details",
     "order": "61",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954732 - Disclosure - Investment Securities Available for Sale, at Fair Value - Narrative (Details)",
     "menuCat": "Details",
     "order": "62",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-13",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954733 - Disclosure - Investment Securities Available for Sale, at Fair Value - Proceeds from Sale (Details)",
     "menuCat": "Details",
     "order": "63",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Proceeds from Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleRealizedGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954734 - Disclosure - Investment Securities Available for Sale, at Fair Value - Weighted Average Lives for Available-for-Sale Securities (Details)",
     "menuCat": "Details",
     "order": "64",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Weighted Average Lives for Available-for-Sale Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954735 - Disclosure - Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "menuCat": "Details",
     "order": "65",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:EquityMethodInvestmentsTextBlock",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-236",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954736 - Disclosure - Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "menuCat": "Details",
     "order": "66",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:EquityMethodInvestmentsTextBlock",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-237",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954737 - Disclosure - Equity Investments, at Fair Value - Narrative (Details)",
     "menuCat": "Details",
     "order": "67",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
     "shortName": "Equity Investments, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-248",
      "decimals": "2",
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-316",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954738 - Disclosure - Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "menuCat": "Details",
     "order": "68",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-316",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UnrealizedGainLossOnInvestments",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954739 - Disclosure - Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "menuCat": "Details",
     "order": "69",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-332",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000007 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "menuCat": "Statements",
     "order": "7",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-115",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954740 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "menuCat": "Details",
     "order": "70",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-352",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:IncreaseDecreaseInCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954741 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Fair Value of the Assets, Liabilities and Non-controlling Interests Consolidated During Period (Details)",
     "menuCat": "Details",
     "order": "71",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Fair Value of the Assets, Liabilities and Non-controlling Interests Consolidated During Period (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-352",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:IncreaseDecreaseInCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954742 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Assets and Liabilities of Consolidated VIEs (Details)",
     "menuCat": "Details",
     "order": "72",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Assets and Liabilities of Consolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-357",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestExpense",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954743 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Operations (Details)",
     "menuCat": "Details",
     "order": "73",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-376",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestAndOtherIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954744 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "menuCat": "Details",
     "order": "74",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-394",
      "decimals": "3",
      "lang": "en-US",
      "name": "nymt:RedeemableNonControllingInterestWeightedAverageCapitalizationRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954745 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "menuCat": "Details",
     "order": "75",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-416",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-442",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Land",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954746 - Disclosure - Real Estate, Net - Summary of Investments (Details)",
     "menuCat": "Details",
     "order": "76",
     "role": "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
     "shortName": "Real Estate, Net - Summary of Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-442",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Land",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromRepaymentsOfNotesPayable",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954747 - Disclosure - Real Estate, Net - Narrative (Details)",
     "menuCat": "Details",
     "order": "77",
     "role": "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
     "shortName": "Real Estate, Net - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-444",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleOfRealEstateHeldforinvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DepreciationDepletionAndAmortization",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954748 - Disclosure - Real Estate, Net - Components of Income From Real Estate and Expenses (Details)",
     "menuCat": "Details",
     "order": "78",
     "role": "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
     "shortName": "Real Estate, Net - Components of Income From Real Estate and Expenses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-445",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DepreciationAmortizationAndAccretionNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-449",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954749 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Narrative (Details)",
     "menuCat": "Details",
     "order": "79",
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-449",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "0000008 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "menuCat": "Statements",
     "order": "8",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954750 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Carrying Values of Assets and Liabilities of Disposal Group Held for Sale (Details)",
     "menuCat": "Details",
     "order": "80",
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Carrying Values of Assets and Liabilities of Disposal Group Held for Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954751 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Pretax Losses of Disposal Group Held for Sale (Details)",
     "menuCat": "Details",
     "order": "81",
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Pretax Losses of Disposal Group Held for Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-26",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-215",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NumberOfDerivativeTransactions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "transaction",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954752 - Disclosure - Derivative Instruments and Hedging Activities - Narrative (Details)",
     "menuCat": "Details",
     "order": "82",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-215",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NumberOfDerivativeTransactions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "transaction",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954753 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Derivative Instruments (Details)",
     "menuCat": "Details",
     "order": "83",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Derivative Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-455",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954754 - Disclosure - Derivative Instruments and Hedging Activities - Reconciliation of Gross Derivative Assets and Liabilities (Details)",
     "menuCat": "Details",
     "order": "84",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Reconciliation of Gross Derivative Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DerivativeAssetFairValueGrossLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-465",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DerivativeAssetLiabilityNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954755 - Disclosure - Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "menuCat": "Details",
     "order": "85",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-465",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DerivativeAssetLiabilityNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-475",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GainLossOnSaleOfDerivatives",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954756 - Disclosure - Derivative Instruments and Hedging Activities - Components of Investment Fair Value Changes (Details)",
     "menuCat": "Details",
     "order": "86",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Components of Investment Fair Value Changes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-475",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GainLossOnSaleOfDerivatives",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfInterestRateDerivativesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-481",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954757 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Interest Rate Derivatives (Details)",
     "menuCat": "Details",
     "order": "87",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Interest Rate Derivatives (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfInterestRateDerivativesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-481",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RestrictedCashAndCashEquivalents",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954758 - Disclosure - Other Assets and Other Liabilities - Other Assets (Details)",
     "menuCat": "Details",
     "order": "88",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
     "shortName": "Other Assets and Other Liabilities - Other Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DividendsPayableCurrentAndNoncurrent",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954759 - Disclosure - Other Assets and Other Liabilities - Other Liabilities (Details)",
     "menuCat": "Details",
     "order": "89",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails",
     "shortName": "Other Assets and Other Liabilities - Other Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestPayableCurrentAndNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0000009 - Disclosure - Organization",
     "menuCat": "Notes",
     "order": "9",
     "role": "http://nymtrust.com/role/Organization",
     "shortName": "Organization",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-1",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-491",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954760 - Disclosure - Repurchase Agreements - Company's Repurchase Agreements (Details)",
     "menuCat": "Details",
     "order": "90",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
     "shortName": "Repurchase Agreements - Company's Repurchase Agreements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-485",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954761 - Disclosure - Repurchase Agreements - Narrative (Details)",
     "menuCat": "Details",
     "order": "91",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
     "shortName": "Repurchase Agreements - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-13",
      "decimals": "INF",
      "lang": "en-US",
      "name": "nymt:NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements",
      "reportCount": 1,
      "unique": true,
      "unitRef": "counterparty",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-491",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SecuritiesBorrowed",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954762 - Disclosure - Repurchase Agreements - Schedule of Unencumbered Securities (Details)",
     "menuCat": "Details",
     "order": "92",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
     "shortName": "Repurchase Agreements - Schedule of Unencumbered Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-499",
      "decimals": "-5",
      "lang": "en-US",
      "name": "nymt:CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954763 - Disclosure - Repurchase Agreements - Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "menuCat": "Details",
     "order": "93",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
     "shortName": "Repurchase Agreements - Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-511",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954764 - Disclosure - Repurchase Agreements - Repurchase Agreements Secured by Investment Securities (Details)",
     "menuCat": "Details",
     "order": "94",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
     "shortName": "Repurchase Agreements - Repurchase Agreements Secured by Investment Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-491",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954765 - Disclosure - Repurchase Agreements - Maturities (Details)",
     "menuCat": "Details",
     "order": "95",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
     "shortName": "Repurchase Agreements - Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-522",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-530",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954766 - Disclosure - Collateralized Debt Obligations - Schedule of Debt (Details)",
     "menuCat": "Details",
     "order": "96",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
     "shortName": "Collateralized Debt Obligations - Schedule of Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-530",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954767 - Disclosure - Collateralized Debt Obligations - Maturities (Details)",
     "menuCat": "Details",
     "order": "97",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
     "shortName": "Collateralized Debt Obligations - Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-530",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-12",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954768 - Disclosure - Debt - Narrative (Details)",
     "menuCat": "Details",
     "order": "98",
     "role": "http://nymtrust.com/role/DebtNarrativeDetails",
     "shortName": "Debt - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-534",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-541",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplyer",
      "reportCount": 1,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "9954769 - Disclosure - Debt - Schedule of Debt Redemption Details (Details)",
     "menuCat": "Details",
     "order": "99",
     "role": "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
     "shortName": "Debt - Schedule of Debt Redemption Details (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "nymt-20230630.htm",
      "contextRef": "c-542",
      "decimals": "INF",
      "lang": "en-US",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplyer",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 213,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]",
        "terseLabel": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Document Information [Line Items]",
        "terseLabel": "Document Information [Line Items]"
       }
      }
     },
     "localname": "DocumentInformationLineItems",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package.",
        "label": "Document Information [Table]",
        "terseLabel": "Document Information [Table]"
       }
      }
     },
     "localname": "DocumentInformationTable",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r907"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r908"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding (in shares)"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r909"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r904"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r906"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "nymt_A1122ChicagoDELLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "1122 Chicago DE, LLC [Member]",
        "label": "1122 Chicago DE, LLC [Member]",
        "terseLabel": "1122 Chicago DE, LLC"
       }
      }
     },
     "localname": "A1122ChicagoDELLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A2017PlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "2017 Plan [Member]",
        "label": "2017 Plan [Member]",
        "terseLabel": "2017 Incentive Plan"
       }
      }
     },
     "localname": "A2017PlanMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "label": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ABSMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ABS",
        "label": "ABS [Member]",
        "terseLabel": "ABS"
       }
      }
     },
     "localname": "ABSMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AdvancedRemittancesFromResidentialLoanServicers": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Advanced Remittances From Residential Loan Servicers",
        "label": "Advanced Remittances From Residential Loan Servicers",
        "terseLabel": "Advanced remittances from residential loan servicers"
       }
      }
     },
     "localname": "AdvancedRemittancesFromResidentialLoanServicers",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AgencyResidentialMortgageBackedSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agency Residential Mortgage Backed Securities [Member]",
        "label": "Agency Residential Mortgage Backed Securities [Member]",
        "terseLabel": "Agency RMBS"
       }
      }
     },
     "localname": "AgencyResidentialMortgageBackedSecuritiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AmericaWalksAtPortStLucieLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "America Walks at Port St. Lucie, LLC",
        "label": "America Walks at Port St. Lucie, LLC [Member]",
        "terseLabel": "America Walks at Port St. Lucie, LLC"
       }
      }
     },
     "localname": "AmericaWalksAtPortStLucieLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AmortizationOfUnderwritersDiscountAndDeferredCharges": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpenseBorrowings",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization Of Underwriter's Discount And Deferred Charges",
        "label": "Amortization Of Underwriter's Discount And Deferred Charges",
        "terseLabel": "Amortization of underwriter's discount and deferred charges"
       }
      }
     },
     "localname": "AmortizationOfUnderwritersDiscountAndDeferredCharges",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AmountAgreedToFundJointVentureEquityInvestments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount Agreed To Fund Joint Venture Equity Investments",
        "label": "Amount Agreed To Fund Joint Venture Equity Investments",
        "terseLabel": "Amount agreed to fund joint venture equity investments"
       }
      }
     },
     "localname": "AmountAgreedToFundJointVentureEquityInvestments",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsOfDisposalGroupHeldForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets Of Disposal Group Held For Sale",
        "label": "Assets Of Disposal Group Held For Sale [Member]",
        "terseLabel": "Assets of disposal group held for sale"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupHeldForSaleMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged",
        "label": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged",
        "terseLabel": "Amortized Cost of Collateral Pledged"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net",
        "label": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net",
        "negatedTerseLabel": "Net Deferred Finance Costs"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of repossession that is available under the repurchase agreement.",
        "label": "Assets Sold Under Agreements to Repurchase, Maximum Repurchase Amount",
        "terseLabel": "Maximum Aggregate Uncommitted Principal Amount"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AtlasSPMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Atlas SP",
        "label": "Atlas SP [Member]",
        "terseLabel": "Atlas SP"
       }
      }
     },
     "localname": "AtlasSPMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AvailableForSaleSecuritiesPortfolioLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the weighted average life of the available for sale securities portfolio.",
        "label": "Available For Sale Securities Portfolio Life",
        "terseLabel": "Weighted average life of available for sale securities portfolio"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesPortfolioLife",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_BOrBelowCreditRatingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "B+ Or Below Credit Rating",
        "label": "B+ Or Below Credit Rating [Member]",
        "terseLabel": "B+ or Below Credit Rating"
       }
      }
     },
     "localname": "BOrBelowCreditRatingMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BankOfAmericaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bank Of America",
        "label": "Bank Of America [Member]",
        "terseLabel": "Bank of America"
       }
      }
     },
     "localname": "BankOfAmericaMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BetweenBBAndBCreditRatingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Between BB+ And B+ Credit Rating",
        "label": "Between BB+ And B+ Credit Rating [Member]",
        "terseLabel": "Between BB+ and B+ Credit Rating"
       }
      }
     },
     "localname": "BetweenBBAndBCreditRatingMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BighausLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bighaus, LLC",
        "label": "Bighaus, LLC [Member]",
        "terseLabel": "Bighaus, LLC"
       }
      }
     },
     "localname": "BighausLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CMBSMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CMBS.",
        "label": "CMBS [Member]",
        "terseLabel": "CMBS"
       }
      }
     },
     "localname": "CMBSMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CentralClearingHouseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Central Clearing House",
        "label": "Central Clearing House [Member]",
        "terseLabel": "Central Clearing House"
       }
      }
     },
     "localname": "CentralClearingHouseMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateralized Debt Obligations, Repurchased Residential Loan Securitization",
        "label": "Collateralized Debt Obligations, Repurchased Residential Loan Securitization",
        "terseLabel": "Collateralized debt obligations, repurchased residential loan securitization"
       }
      }
     },
     "localname": "CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_CommonStockParValue001PerShareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Stock, par value $0.01 per share",
        "label": "Common Stock, par value $0.01 per share [Member]",
        "terseLabel": "Common Stock, par value $0.01 per share"
       }
      }
     },
     "localname": "CommonStockParValue001PerShareMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CommonStockValueofSharesReservedforFutureIssuanceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate value of common shares reserved for future issuance.",
        "label": "Common Stock, Value of Shares Reserved for Future Issuance, Value",
        "terseLabel": "Common stock reserved for issuance"
       }
      }
     },
     "localname": "CommonStockValueofSharesReservedforFutureIssuanceValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]",
        "label": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]",
        "terseLabel": "Schedule of Components of Net Gain on Residential Mortgage Loans at Fair Value"
       }
      }
     },
     "localname": "ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ConsolidatedRealEstateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consolidated Real Estate",
        "label": "Consolidated Real Estate [Member]",
        "terseLabel": "Consolidated Real Estate"
       }
      }
     },
     "localname": "ConsolidatedRealEstateMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ConsolidatedSLSTMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consolidated SLST [Member]",
        "label": "Consolidated SLST [Member]",
        "terseLabel": "Consolidated SLST",
        "verboseLabel": "Consolidated SLST"
       }
      }
     },
     "localname": "ConsolidatedSLSTMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ConstructiveLoansLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Constructive Loans LLC",
        "label": "Constructive Loans LLC [Member]",
        "terseLabel": "Constructive Loans, LLC"
       }
      }
     },
     "localname": "ConstructiveLoansLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ContractualInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpenseBorrowings",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual Interest Expense",
        "label": "Contractual Interest Expense",
        "terseLabel": "Contractual interest expense"
       }
      }
     },
     "localname": "ContractualInterestExpense",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ContractualMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual maturities of investments.",
        "label": "Contractual Maturities",
        "terseLabel": "Contractual maturities (up to)"
       }
      }
     },
     "localname": "ContractualMaturities",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_ContributionsOfNonControllingInterestInConsolidatedVariableInterestEntities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contributions Of Non-controlling Interest In Consolidated Variable Interest Entities",
        "label": "Contributions Of Non-controlling Interest In Consolidated Variable Interest Entities",
        "terseLabel": "Contributions of non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "ContributionsOfNonControllingInterestInConsolidatedVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DCPGoldCreekLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "DCP Gold Creek, LLC [Member]",
        "label": "DCP Gold Creek, LLC [Member]",
        "terseLabel": "DCP Gold Creek, LLC"
       }
      }
     },
     "localname": "DCPGoldCreekLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_DebtInstrumentPercentageOfPrincipalIssued": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument, Percentage Of Principal Issued",
        "label": "Debt Instrument, Percentage Of Principal Issued",
        "terseLabel": "Debt instrument, percentage of principal issued"
       }
      }
     },
     "localname": "DebtInstrumentPercentageOfPrincipalIssued",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtInstrumentRedemptionPricePercentageMultiplyer": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument, Redemption Price, Percentage Multiplyer",
        "label": "Debt Instrument, Redemption Price, Percentage Multiplyer",
        "terseLabel": "Debt instrument, redemption price, percentage multiplyer"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPricePercentageMultiplyer",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtIssuanceCostsAmortizationRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Issuance Costs, Amortization Rate",
        "label": "Debt Issuance Costs, Amortization Rate",
        "terseLabel": "Debt issuance costs, amortization rate"
       }
      }
     },
     "localname": "DebtIssuanceCostsAmortizationRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost",
        "terseLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-For-Sale, Excluding Accrued Interest, Including Fair Value Option",
        "label": "Debt Securities, Available-For-Sale, Excluding Accrued Interest, Including Fair Value Option",
        "terseLabel": "Investment securities available for sale, at fair value",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 2.0,
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Gross Unrealized Losses, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Loss, Fair Value Option",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]",
        "label": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]",
        "terseLabel": "Schedule of Weighted Average Lives of Investment Securities"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax",
        "negatedTerseLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 1.0,
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Fair Value Option",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 3.0,
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Unrealized Gains, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Gains, Fair Value Option",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 1.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value",
        "label": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value",
        "terseLabel": "0 to 5 years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 3.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "terseLabel": "10+ years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 2.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "terseLabel": "Over 5 to 10 years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DerivativeAssetLiabilityNotionalAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Asset (Liability), Notional Amount",
        "label": "Derivative Asset (Liability), Notional Amount",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "DerivativeAssetLiabilityNotionalAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]"
       }
      }
     },
     "localname": "DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_DerivativePaymentTypeAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Payment Type",
        "label": "Derivative Payment Type [Axis]",
        "terseLabel": "Derivative Payment Type [Axis]"
       }
      }
     },
     "localname": "DerivativePaymentTypeAxis",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_DerivativePaymentTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Payment Type [Domain]",
        "label": "Derivative Payment Type [Domain]",
        "terseLabel": "Derivative Payment Type [Domain]"
       }
      }
     },
     "localname": "DerivativePaymentTypeDomain",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationLongTermDebt": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Long-Term Debt",
        "label": "Disposal Group, Including Discontinued Operation, Long-Term Debt",
        "terseLabel": "Mortgages payable on real estate in disposal group held for sale, carrying value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLongTermDebt",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationLongTermDebtFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Long-Term Debt, Fair Value Disclosure",
        "label": "Disposal Group, Including Discontinued Operation, Long-Term Debt, Fair Value Disclosure",
        "terseLabel": "Mortgages payable on real estate in disposal group held for sale, estimated fair value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLongTermDebtFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationMortgagesPayableOnRealEstate": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgages Payable On Real Estate",
        "label": "Disposal Group, Including Discontinued Operation, Mortgages Payable On Real Estate",
        "terseLabel": "Mortgages payable on real estate"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgagesPayableOnRealEstate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationRealEstateNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Real Estate, Net",
        "label": "Disposal Group, Including Discontinued Operation, Real Estate, Net",
        "terseLabel": "Real estate, net"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRealEstateNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsDerivativeAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Derivative Assets",
        "label": "Disposal Group, Including Discontinued Operations, Derivative Assets",
        "terseLabel": "Derivative assets in disposal group held for sale, carrying value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsDerivativeAssets",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsDerivativeAssetsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Derivative Assets, Fair Value Disclosure",
        "label": "Disposal Group, Including Discontinued Operations, Derivative Assets, Fair Value Disclosure",
        "terseLabel": "Derivative assets in disposal group held for sale, estimated fair value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsDerivativeAssetsFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsEquityMethodInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Equity Method Investments",
        "label": "Disposal Group, Including Discontinued Operations, Equity Method Investments",
        "terseLabel": "Equity investments",
        "verboseLabel": "Equity investments in disposal group held for sale, carrying value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsEquityMethodInvestments",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsEquityMethodInvestmentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Equity Method Investments, Fair Value Disclosure",
        "label": "Disposal Group, Including Discontinued Operations, Equity Method Investments, Fair Value Disclosure",
        "terseLabel": "Equity investments in disposal group held for sale, estimated fair value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsEquityMethodInvestmentsFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_EmployeeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee [Member]",
        "label": "Employee [Member]",
        "terseLabel": "Employee"
       }
      }
     },
     "localname": "EmployeeMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans",
        "label": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans",
        "terseLabel": "Unpaid Principal Balance"
       }
      }
     },
     "localname": "EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_EquityDistributionAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to the separate equity distribution agreements (collectively, the \"Equity Distribution Agreements\") with each of JMP Securities LLC (\"JMP\") and MLV &amp; Co. LLC (\"MLV\").",
        "label": "Equity Distribution Agreements [Member]",
        "terseLabel": "Equity Distribution Agreements"
       }
      }
     },
     "localname": "EquityDistributionAgreementsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityMethodInvestmentMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Method Investment, Measurement Input",
        "label": "Equity Method Investment, Measurement Input",
        "terseLabel": "Equity method investment, measurement input"
       }
      }
     },
     "localname": "EquityMethodInvestmentMeasurementInput",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_EquityMethodInvestmentsInDisposalGroupHeldForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Method Investments In Disposal Group Held For Sale",
        "label": "Equity Method Investments In Disposal Group Held For Sale [Member]",
        "terseLabel": "Equity investments in disposal group held for sale"
       }
      }
     },
     "localname": "EquityMethodInvestmentsInDisposalGroupHeldForSaleMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityandMezzanineLoansFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity and Mezzanine Loans, Fair Value",
        "label": "Equity and Mezzanine Loans, Fair Value",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "EquityandMezzanineLoansFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ExpensesRelatedToOperatingRealEstate": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses Related To Operating Real Estate",
        "label": "Expenses Related To Operating Real Estate",
        "terseLabel": "Expenses related to real estate",
        "totalLabel": "Total expenses related to real estate"
       }
      }
     },
     "localname": "ExpensesRelatedToOperatingRealEstate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ExpensesRelatedToRealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses Related To Real Estate",
        "label": "Expenses Related To Real Estate [Abstract]",
        "terseLabel": "Expenses related to real estate"
       }
      }
     },
     "localname": "ExpensesRelatedToRealEstateAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_FFRMI20MidtownLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FF RMI 20 Midtown, LLC",
        "label": "FF RMI 20 Midtown, LLC [Member]",
        "terseLabel": "FF/RMI 20 Midtown, LLC"
       }
      }
     },
     "localname": "FFRMI20MidtownLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions",
        "terseLabel": "Funding/Contributions"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Out of Securitization Trust, Net",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Securitization Trust, Net",
        "negatedTerseLabel": "Transfers to securitization trust, net"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialAssetsLessthan90daysMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Assets, Less than 90 days [Member]",
        "label": "Financial Assets, Less than 90 days [Member]",
        "terseLabel": "Less than 90 days past due"
       }
      }
     },
     "localname": "FinancialAssetsLessthan90daysMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FinancialInstrumentOwnedDeferredLoanFees": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instrument Owned, Deferred Loan Fees",
        "label": "Financial Instrument Owned, Deferred Loan Fees",
        "negatedTerseLabel": "Deferred loan fees, net"
       }
      }
     },
     "localname": "FinancialInstrumentOwnedDeferredLoanFees",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instrument Owned, Loans And Preferred Equity, Net",
        "label": "Financial Instrument Owned, Loans And Preferred Equity, Net",
        "terseLabel": "Multi-family loans, at fair value",
        "totalLabel": "Total, at Fair Value"
       }
      }
     },
     "localname": "FinancialInstrumentOwnedLoansAndPreferredEquityNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Measurement Input",
        "label": "Financial Instruments Owned, Measurement Input",
        "terseLabel": "Financial instruments owned, measurement input"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMeasurementInput",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period",
        "label": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period",
        "terseLabel": "Financial instruments owned, assumed redemption period (in months)"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_FinancialInstrumentsOwnedMultiFamilyLoans": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Multi-family Loans",
        "label": "Financial Instruments Owned, Multi-family Loans",
        "verboseLabel": "Multi-family loans"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMultiFamilyLoans",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansAtFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Residential Loans At Fair Value",
        "label": "Financial Instruments Owned, Residential Loans At Fair Value",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedResidentialLoansAtFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansatFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Residential Loans at Fair Value",
        "label": "Financial Instruments Owned, Residential Loans at Fair Value",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedResidentialLoansatFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancingAndOtherVIEsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing And Other VIEs",
        "label": "Financing And Other VIEs [Member]",
        "terseLabel": "Financing And Other VIEs"
       }
      }
     },
     "localname": "FinancingAndOtherVIEsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable",
        "label": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable",
        "terseLabel": "Collections receivable from residential loan servicers"
       }
      }
     },
     "localname": "FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances",
        "label": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances",
        "terseLabel": "Recoverable advances on residential loans"
       }
      }
     },
     "localname": "FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six",
        "label": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six [Member]",
        "terseLabel": "5.75% Senior Notes Due 2026"
       }
      }
     },
     "localname": "FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FixedRatePaymentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed Rate Payments",
        "label": "Fixed Rate Payments [Member]",
        "terseLabel": "Fixed Rate Payments"
       }
      }
     },
     "localname": "FixedRatePaymentsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FloatingRatePaymentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Floating Rate Payments",
        "label": "Floating Rate Payments [Member]",
        "terseLabel": "Floating Rate Payments"
       }
      }
     },
     "localname": "FloatingRatePaymentsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GWRCedarsPartnersLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GWR Cedars Partners, LLC",
        "label": "GWR Cedars Partners, LLC [Member]",
        "terseLabel": "GWR Cedars Partners, LLC"
       }
      }
     },
     "localname": "GWRCedarsPartnersLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GWRGatewayPartnersLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GWR Gateway Partners, LLC",
        "label": "GWR Gateway Partners, LLC [Member]",
        "terseLabel": "GWR Gateway Partners, LLC"
       }
      }
     },
     "localname": "GWRGatewayPartnersLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GainOnRepurchaseOfPreferredStock": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain on Repurchase of Preferred Stock",
        "label": "Gain on Repurchase of Preferred Stock",
        "terseLabel": "Plus: Gain on repurchase of Preferred Stock"
       }
      }
     },
     "localname": "GainOnRepurchaseOfPreferredStock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]",
        "label": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]",
        "terseLabel": "Headlands Asset Management Fund III (Cayman), LP (Headlands Flagship Opportunity Fund Series I)"
       }
      }
     },
     "localname": "HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_HudsonBridgeAptsLLCSeriesABriarHillAptsLLCKingsGlenAptssLLCFlagstoneAptsLLCBrookfieldAptsIILLCSeriesBAndSilberJBSMPropertiesLLCCollectivelyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hudson Bridge Apts, LLC - Series A, Briar Hill Apts, LLC, Kings Glen Aptss, LLC, Flagstone Apts, LLC, Brookfield Apts II, LLC - Series B, and Silber JBSM Properties, LLC (collectively)",
        "label": "Hudson Bridge Apts, LLC - Series A, Briar Hill Apts, LLC, Kings Glen Aptss, LLC, Flagstone Apts, LLC, Brookfield Apts II, LLC - Series B, and Silber JBSM Properties, LLC (collectively) [Member]",
        "terseLabel": "Hudson Bridge Apartments, LLC - Series A, Briar Hill Apartments, LLC, Kings Glen Apartments, LLC, Flagstone Apartments, LLC, Brookfield Apartments II, LLC - Series B, and Silber JBSM Properties, LLC (collectively)"
       }
      }
     },
     "localname": "HudsonBridgeAptsLLCSeriesABriarHillAptsLLCKingsGlenAptssLLCFlagstoneAptsLLCBrookfieldAptsIILLCSeriesBAndSilberJBSMPropertiesLLCCollectivelyMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ImpairmentOfRealEstateRecoveryImpairmentValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impairment of Real Estate, Recovery Impairment Value",
        "label": "Impairment of Real Estate, Recovery Impairment Value",
        "terseLabel": "Impairment of real estate, recovery impairment value"
       }
      }
     },
     "localname": "ImpairmentOfRealEstateRecoveryImpairmentValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncomeFromRealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income From Real Estate",
        "label": "Income From Real Estate [Abstract]",
        "terseLabel": "Income from real estate"
       }
      }
     },
     "localname": "IncomeFromRealEstateAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_IncreaseDecreaseFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) From Equity Method Investments, Preferred Equity and Mezzanine Loan",
        "label": "Increase (Decrease) From Equity Method Investments, Preferred Equity and Mezzanine Loan",
        "negatedLabel": "Income from preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "IncreaseDecreaseFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInCash": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Cash",
        "label": "Increase (Decrease) In Cash",
        "terseLabel": "Cash"
       }
      }
     },
     "localname": "IncreaseDecreaseInCash",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInLeaseIntangibles": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Lease Intangibles",
        "label": "Increase (Decrease) In Lease Intangibles",
        "terseLabel": "Lease intangible"
       }
      }
     },
     "localname": "IncreaseDecreaseInLeaseIntangibles",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInNetAssets": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Net Assets",
        "label": "Increase (Decrease) In Net Assets",
        "totalLabel": "Net assets consolidated"
       }
      }
     },
     "localname": "IncreaseDecreaseInNetAssets",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInNotesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Notes Payable",
        "label": "Increase (Decrease) In Notes Payable",
        "terseLabel": "Mortgages payable on real estate, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInNotesPayable",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInRealEstateInvestmentsNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Real Estate Investments, Net",
        "label": "Increase (Decrease) In Real Estate Investments, Net",
        "terseLabel": "Operating real estate"
       }
      }
     },
     "localname": "IncreaseDecreaseInRealEstateInvestmentsNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseDecreaseInStockholdersEquityAttributableToNoncontrollingInterest": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 3.0,
       "parentTag": "nymt_IncreaseDecreaseInNetAssets",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) In Stockholders' Equity Attributable To Noncontrolling Interest",
        "label": "Increase (Decrease) In Stockholders' Equity Attributable To Noncontrolling Interest",
        "terseLabel": "Non-controlling interest"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityAttributableToNoncontrollingInterest",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseInNoncontrollingInterestInitialConsolidationOfVariableInterestEntity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase in Noncontrolling Interest, Initial Consolidation of Variable Interest Entity",
        "label": "Increase in Noncontrolling Interest, Initial Consolidation of Variable Interest Entity",
        "terseLabel": "Increase in non-controlling interest related to initial consolidation of VIEs"
       }
      }
     },
     "localname": "IncreaseInNoncontrollingInterestInitialConsolidationOfVariableInterestEntity",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_InterestExpenseRealEstateMortgagePayable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Expense, Real Estate Mortgage Payable",
        "label": "Interest Expense, Real Estate Mortgage Payable",
        "terseLabel": "Interest expense, mortgages payable on real estate"
       }
      }
     },
     "localname": "InterestExpenseRealEstateMortgagePayable",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_InterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "INTEREST INCOME:",
        "terseLabel": "NET INTEREST INCOME:"
       }
      }
     },
     "localname": "InterestIncomeAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_InterestRateOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Option",
        "label": "Interest Rate Option [Member]",
        "terseLabel": "Option"
       }
      }
     },
     "localname": "InterestRateOptionMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_InvestmentSecuritiesAvailableforSaleAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Securities Available for Sale At Fair Value [Member]",
        "label": "Investment Securities Available for Sale At Fair Value [Member]",
        "terseLabel": "Investment securities available for sale",
        "verboseLabel": "Investment securities available for sale, at fair value"
       }
      }
     },
     "localname": "InvestmentSecuritiesAvailableforSaleAtFairValueMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_InvestmentinUnconsolidatedEntitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in Unconsolidated Entities [Member]",
        "label": "Investment in Unconsolidated Entities [Member]",
        "terseLabel": "Equity investments"
       }
      }
     },
     "localname": "InvestmentinUnconsolidatedEntitiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_JointVentureEquityInvestmentsInMultiFamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Joint Venture Equity Investments In Multi-family Properties",
        "label": "Joint Venture Equity Investments In Multi-family Properties [Member]",
        "terseLabel": "Joint venture equity investments in multi-family properties"
       }
      }
     },
     "localname": "JointVentureEquityInvestmentsInMultiFamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_JointVentureInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Joint Venture Investment",
        "label": "Joint Venture Investment [Member]",
        "terseLabel": "Joint Venture Investment"
       }
      }
     },
     "localname": "JointVentureInvestmentMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption",
        "label": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption",
        "terseLabel": "Loan premiums, early redemption",
        "verboseLabel": "Preferred equity and mezzanine loan premiums resulting from early redemption"
       }
      }
     },
     "localname": "LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LondonInterbankOfferedRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "London Interbank Offered Rate",
        "label": "London Interbank Offered Rate [Member]",
        "terseLabel": "LIBOR"
       }
      }
     },
     "localname": "LondonInterbankOfferedRateMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_LongTermDebtMaturityAfterYearFour": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long-Term Debt, Maturity, after Year Four",
        "label": "Long-Term Debt, Maturity, after Year Four",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LongTermDebtMaturityAfterYearFour",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LongTermDebtMaximumCommittedMortgagePrincipalAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long Term Debt, Maximum Committed Mortgage Principal Amount",
        "label": "Long Term Debt, Maximum Committed Mortgage Principal Amount",
        "terseLabel": "Maximum Committed Mortgage Principal Amount"
       }
      }
     },
     "localname": "LongTermDebtMaximumCommittedMortgagePrincipalAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LucieAtTraditionHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lucie at Tradition Holdings, LLC",
        "label": "Lucie at Tradition Holdings, LLC [Member]",
        "terseLabel": "Lucie at Tradition Holdings, LLC"
       }
      }
     },
     "localname": "LucieAtTraditionHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_LurinRMILLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lurin-RMI, LLC",
        "label": "Lurin-RMI, LLC [Member]",
        "terseLabel": "Lurin-RMI, LLC"
       }
      }
     },
     "localname": "LurinRMILLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MarginDepositAssetsExcessAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Margin Deposit Assets, Excess Amount",
        "label": "Margin Deposit Assets, Excess Amount",
        "terseLabel": "Margin deposit assets, excess amount"
       }
      }
     },
     "localname": "MarginDepositAssetsExcessAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_MarginDepositAssetsInitialAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Margin Deposit Assets, Initial Amount",
        "label": "Margin Deposit Assets, Initial Amount",
        "terseLabel": "Margin deposit assets, initial amount"
       }
      }
     },
     "localname": "MarginDepositAssetsInitialAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_MeasurementInputAnnualHomePriceAppreciationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Annual Home Price Appreciation [Member]",
        "label": "Measurement Input, Annual Home Price Appreciation [Member]",
        "terseLabel": "Annual home price appreciation/(depreciation)"
       }
      }
     },
     "localname": "MeasurementInputAnnualHomePriceAppreciationMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputCollateralDefaultRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Collateral Default Rate [Member]",
        "label": "Measurement Input, Collateral Default Rate [Member]",
        "terseLabel": "Collateral default rate"
       }
      }
     },
     "localname": "MeasurementInputCollateralDefaultRateMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputCollateralPrepaymentRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Collateral Prepayment Rate [Member]",
        "label": "Measurement Input, Collateral Prepayment Rate [Member]",
        "terseLabel": "Collateral prepayment rate"
       }
      }
     },
     "localname": "MeasurementInputCollateralPrepaymentRateMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLifetimeCDRMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Lifetime CDR [Member]",
        "label": "Measurement Input, Lifetime CDR [Member]",
        "terseLabel": "Lifetime CDR"
       }
      }
     },
     "localname": "MeasurementInputLifetimeCDRMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLifetimeCPRMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Lifetime CPR [Member]",
        "label": "Measurement Input, Lifetime CPR [Member]",
        "terseLabel": "Lifetime CPR"
       }
      }
     },
     "localname": "MeasurementInputLifetimeCPRMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLiquidationTimelinePeriodMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Liquidation Timeline, Period [Member]",
        "label": "Measurement Input, Liquidation Timeline, Period [Member]",
        "terseLabel": "Liquidation timeline (months)"
       }
      }
     },
     "localname": "MeasurementInputLiquidationTimelinePeriodMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputMonthsToAssumedRedemptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Months To Assumed Redemption [Member]",
        "label": "Measurement Input, Months To Assumed Redemption [Member]",
        "terseLabel": "Months to assumed redemption"
       }
      }
     },
     "localname": "MeasurementInputMonthsToAssumedRedemptionMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputYieldMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Yield [Member]",
        "label": "Measurement Input, Yield [Member]",
        "terseLabel": "Yield"
       }
      }
     },
     "localname": "MeasurementInputYieldMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MezzanineLoanandPreferredEquityInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mezzanine Loan and Preferred Equity Investments [Member]",
        "label": "Mezzanine Loan and Preferred Equity Investments [Member]",
        "terseLabel": "Multi-family loans",
        "verboseLabel": "Preferred Equity and Mezzanine Loan Investments"
       }
      }
     },
     "localname": "MezzanineLoanandPreferredEquityInvestmentsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum Number of Quarters with No Dividends that Results in Voting Rights",
        "label": "Minimum Number of Quarters with No Dividends that Results in Voting Rights",
        "terseLabel": "Number of quarters with no dividends that results in voting rights"
       }
      }
     },
     "localname": "MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_MorrocroftNeighborhoodStabilizationFundIILPMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Morrocroft Neighborhood Stabilization Fund II, LP [Member]",
        "label": "Morrocroft Neighborhood Stabilization Fund II, LP [Member]",
        "terseLabel": "Morrocroft Neighborhood Stabilization Fund II, LP"
       }
      }
     },
     "localname": "MorrocroftNeighborhoodStabilizationFundIILPMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MultiFamilyLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi-family Loans",
        "label": "Multi-family Loans [Member]",
        "terseLabel": "Multi-family loans",
        "verboseLabel": "Multi-family loans"
       }
      }
     },
     "localname": "MultiFamilyLoansMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MultiFamilyLoansTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi Family Loans",
        "label": "Multi Family Loans [Text Block]",
        "terseLabel": "Multi-family Loans, at Fair Value"
       }
      }
     },
     "localname": "MultiFamilyLoansTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_MultiFamilyPreferredEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi-Family Preferred Equity Ownership Interests",
        "label": "Multi-Family Preferred Equity Ownership Interests [Member]",
        "terseLabel": "Multi-Family Preferred Equity Ownership Interests"
       }
      }
     },
     "localname": "MultiFamilyPreferredEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NYMPreferredTrustIIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "NYM Preferred Trust II.",
        "label": "NYM Preferred Trust II [Member]",
        "terseLabel": "NYM Preferred Trust II"
       }
      }
     },
     "localname": "NYMPreferredTrustIIMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NYMPreferredTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "NYM Preferred Trust I.",
        "label": "NYM Preferred Trust I [Member]",
        "terseLabel": "NYM Preferred Trust I"
       }
      }
     },
     "localname": "NYMPreferredTrustIMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NetRealizedGainLossOnPayoffOfMortgageLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans",
        "label": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans",
        "terseLabel": "Net realized gain on payoff of residential loans"
       }
      }
     },
     "localname": "NetRealizedGainLossOnPayoffOfMortgageLoans",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NonAgencyRMBSMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-agency RMBS.",
        "label": "Non Agency RMBS [Member]",
        "terseLabel": "Non-Agency RMBS",
        "verboseLabel": "Non-Agency RMBS"
       }
      }
     },
     "localname": "NonAgencyRMBSMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NonCashFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Cash Financing Activities:",
        "verboseLabel": "Non-Cash Financing Activities:"
       }
      }
     },
     "localname": "NonCashFinancingActivitiesAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_NonCashInvestmentActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Cash Investment Activities:",
        "terseLabel": "Non-Cash Investment Activities:"
       }
      }
     },
     "localname": "NonCashInvestmentActivitiesAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_NoncashOrPartNoncashAcquisitionConsolidationOfMortgagesPayableOnRealEstateHeld": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash Or Part Noncash Acquisition, Consolidation Of Mortgages Payable On Real Estate Held",
        "label": "Noncash Or Part Noncash Acquisition, Consolidation Of Mortgages Payable On Real Estate Held",
        "terseLabel": "Consolidation of mortgages payable on real estate held in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionConsolidationOfMortgagesPayableOnRealEstateHeld",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NoncashOrPartNoncashAcquisitionConsolidationOfRealEstateHeld": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash Or Part Noncash Acquisition, Consolidation Of Real Estate Held",
        "label": "Noncash Or Part Noncash Acquisition, Consolidation Of Real Estate Held",
        "terseLabel": "Consolidation of real estate held in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionConsolidationOfRealEstateHeld",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NoninterestIncomeExpenseOther": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noninterest Income (Expense), Other",
        "label": "Noninterest Income (Expense), Other",
        "terseLabel": "Other (loss) income",
        "verboseLabel": "Other losses"
       }
      }
     },
     "localname": "NoninterestIncomeExpenseOther",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NotionalAmountOfOtherDerivativeAdditions": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions for notional amount of other derivatives..",
        "label": "Notional Amount Of Other Derivative Additions",
        "terseLabel": "Additions"
       }
      }
     },
     "localname": "NotionalAmountOfOtherDerivativeAdditions",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NotionalAmountOfOtherDerivativesSettlementExpirationOrExercise": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Settlement, expiration, or exercise for notional amount of other derivatives.",
        "label": "Notional Amount Of Other Derivatives, Settlement Expiration Or Exercise",
        "negatedLabel": "Terminations"
       }
      }
     },
     "localname": "NotionalAmountOfOtherDerivativesSettlementExpirationOrExercise",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements",
        "label": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements",
        "terseLabel": "Number of counterparties with amounts outstanding under repurchase agreements"
       }
      }
     },
     "localname": "NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfDerivativeTransactions": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Derivative Transactions",
        "label": "Number Of Derivative Transactions",
        "terseLabel": "Number of interest rate swap or option transactions"
       }
      }
     },
     "localname": "NumberOfDerivativeTransactions",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfJointVenturesWhichSoldProperty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Joint Ventures Which Sold Property",
        "label": "Number Of Joint Ventures Which Sold Property",
        "terseLabel": "Number of joint ventures which sold property"
       }
      }
     },
     "localname": "NumberOfJointVenturesWhichSoldProperty",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding",
        "label": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding",
        "terseLabel": "Number of series of cumulative redeemable preferred stock outstanding"
       }
      }
     },
     "localname": "NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_OTHERINCOMEEXPENSEAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "OTHER INCOME (EXPENSE)",
        "label": "OTHER INCOME (EXPENSE) [Abstract]",
        "terseLabel": "NON-INTEREST INCOME (LOSS):"
       }
      }
     },
     "localname": "OTHERINCOMEEXPENSEAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_OperatingRealEstateNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating Real Estate, Net",
        "label": "Operating Real Estate, Net",
        "terseLabel": "Real estate, net"
       }
      }
     },
     "localname": "OperatingRealEstateNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OptionToPurchaseIssuedAndOutstandingInterestsPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Option To Purchase Issued And Outstanding Interests, Percentage",
        "label": "Option To Purchase Issued And Outstanding Interests, Percentage",
        "terseLabel": "Option to purchase issued and outstanding interests, percentage"
       }
      }
     },
     "localname": "OptionToPurchaseIssuedAndOutstandingInterestsPercentage",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_OtherLiabilitiesMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Liabilities, Miscellaneous",
        "label": "Other Liabilities, Miscellaneous",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherLiabilitiesMiscellaneous",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OtherLossIncomeMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other (Loss) Income Miscellaneous",
        "label": "Other (Loss) Income Miscellaneous",
        "terseLabel": "Miscellaneous"
       }
      }
     },
     "localname": "OtherLossIncomeMiscellaneous",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OtherRealEstateExpense": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Real Estate Expense",
        "label": "Other Real Estate Expense",
        "terseLabel": "Other real estate expenses"
       }
      }
     },
     "localname": "OtherRealEstateExpense",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OtherRealEstateIncome": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Real Estate Income",
        "label": "Other Real Estate Income",
        "terseLabel": "Other real estate income"
       }
      }
     },
     "localname": "OtherRealEstateIncome",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OtherReceivablesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Receivables",
        "label": "Other Receivables [Member]",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherReceivablesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PalmsAtCapeCoralLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Palms at Cape Coral, LLC",
        "label": "Palms at Cape Coral, LLC [Member]",
        "terseLabel": "Palms at Cape Coral, LLC"
       }
      }
     },
     "localname": "PalmsAtCapeCoralLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities",
        "label": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities",
        "negatedTerseLabel": "Distributions"
       }
      }
     },
     "localname": "PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms",
        "label": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms",
        "terseLabel": "Percent of outstanding shares affirmative votes needed for material and adverse changes to preferred stock terms"
       }
      }
     },
     "localname": "PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_PerformanceSharesTargetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance Shares, Target",
        "label": "Performance Shares, Target [Member]",
        "terseLabel": "PSUs, Target"
       }
      }
     },
     "localname": "PerformanceSharesTargetMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PortfolioInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type or description of the financial arrangement.",
        "label": "Portfolio Investments [Member]",
        "terseLabel": "Portfolio Investments"
       }
      }
     },
     "localname": "PortfolioInvestmentsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainlossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity and Mezzanine Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "label": "Preferred Equity and Mezzanine Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "negatedNetLabel": "Unrealized gains (losses), net"
       }
      }
     },
     "localname": "PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainlossBeforeTax",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PreferredEquityDistributionAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Distribution Agreement [Member]",
        "label": "Preferred Equity Distribution Agreement [Member]",
        "terseLabel": "Preferred Equity Distribution Agreement"
       }
      }
     },
     "localname": "PreferredEquityDistributionAgreementMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityInvestmentonMultifamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Investment on Multi-family Properties [Member]",
        "label": "Preferred Equity Investment on Multi-family Properties [Member]",
        "terseLabel": "Preferred equity investments in multi-family properties"
       }
      }
     },
     "localname": "PreferredEquityInvestmentonMultifamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Ownership Interests [Member]",
        "label": "Preferred Equity Ownership Interests [Member]",
        "terseLabel": "Preferred Equity Ownership Interests"
       }
      }
     },
     "localname": "PreferredEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "label": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "terseLabel": "Schedule of Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal"
       }
      }
     },
     "localname": "PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_PreferredStockDividendPaymentRateBasisSpreadOnVariableRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Dividend Payment Rate, Basis Spread On Variable Rate",
        "label": "Preferred Stock, Dividend Payment Rate, Basis Spread On Variable Rate",
        "terseLabel": "Preferred stock, floating annual rate, percentage"
       }
      }
     },
     "localname": "PreferredStockDividendPaymentRateBasisSpreadOnVariableRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_PreferredStockRedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock Redemption Period",
        "label": "Preferred Stock Redemption Period",
        "terseLabel": "Preferred stock redemption period"
       }
      }
     },
     "localname": "PreferredStockRedemptionPeriod",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_PreferredStockSeriesSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Series Shares",
        "label": "Preferred Stock, Series Shares [Member]",
        "terseLabel": "Preferred Stock, Series Shares"
       }
      }
     },
     "localname": "PreferredStockSeriesSharesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredStockSharesReservedForFutureIssuanceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Shares Reserved For Future Issuance, Value",
        "label": "Preferred Stock, Shares Reserved For Future Issuance, Value",
        "terseLabel": "Preferred stock available for future issuance, value"
       }
      }
     },
     "localname": "PreferredStockSharesReservedForFutureIssuanceValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PreferredStockVotingRightsNumberofAdditionalDirectorsElected": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Voting Rights, Number of Additional Directors Elected",
        "label": "Preferred Stock, Voting Rights, Number of Additional Directors Elected",
        "terseLabel": "Number of elected directors pending preferred stock voting rights"
       }
      }
     },
     "localname": "PreferredStockVotingRightsNumberofAdditionalDirectorsElected",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_ProceedsFromIssuanceOfCollateralizedDebtObligationsNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from Issuance of Collateralized Debt Obligations, Net",
        "label": "Proceeds from Issuance of Collateralized Debt Obligations, Net",
        "terseLabel": "Proceeds from issuance of collateralized debt obligations, net"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCollateralizedDebtObligationsNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale",
        "label": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale",
        "terseLabel": "Sales Proceeds"
       }
      }
     },
     "localname": "ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RSSWDOwnerLLCRSSWDMitchellOwnerLLCIFOwnerLLCMullisOwnerLLCJHMullisOwnerandSaltzmanOwnerLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RS SWD Owner, LLC RS SWD ,Mitchell Owner, LLC, IF Owner, LLC, Mullis Owner, LLC, JH Mullis Owner and Saltzman Owner, LLC( Collectively) [Member]",
        "label": "RS SWD Owner, LLC RS SWD, Mitchell Owner, LLC, IF Owner, LLC, Mullis Owner, LLC, JH Mullis Owner and Saltzman Owner, LLC [Member]",
        "terseLabel": "RS SWD Owner, LLC, RS SWD Mitchell Owner, LLC, RS SWD IF Owner, LLC, RS SWD Mullis Owner, LLC, RS SWD JH Mullis Owner, LLC and RS SWD Saltzman Owner, LLC (collectively)"
       }
      }
     },
     "localname": "RSSWDOwnerLLCRSSWDMitchellOwnerLLCIFOwnerLLCMullisOwnerLLCJHMullisOwnerandSaltzmanOwnerLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RealEstateOwned": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Real Estate Owned",
        "label": "Real Estate Owned",
        "terseLabel": "Real estate owned"
       }
      }
     },
     "localname": "RealEstateOwned",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ReceivablesAndOtherAssetsFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents fair value disclosure for receivables and other assets.",
        "label": "Receivables And Other Assets Fair Value",
        "terseLabel": "Preferred equity and mezzanine loan investments, estimated fair value"
       }
      }
     },
     "localname": "ReceivablesAndOtherAssetsFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ReceivablesandOtherAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amounts of receivables due as of the balance sheet date from parties or arising from transactions not otherwise specified in the taxonomy. Sum of the carrying amount for an unclassified balance sheet date of expenditures made in advance of when the economic benefit of the cost will be realized, and which will be expensed in future periods with the passage of time or when a triggering event occurs and the carrying amount as of the balance sheet date of assets not otherwise specified in the taxonomy. Also includes assets not individually reported in the financial statements, or not separately disclosed in notes.",
        "label": "Receivables and Other Assets",
        "verboseLabel": "Preferred equity and mezzanine loan investments, carrying value"
       }
      }
     },
     "localname": "ReceivablesandOtherAssets",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RedeemableNonControllingInterestInConsolidatedVariableInterestEntities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities",
        "label": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities",
        "terseLabel": "Redeemable Non-Controlling Interest in Consolidated Variable Interest Entities"
       }
      }
     },
     "localname": "RedeemableNonControllingInterestInConsolidatedVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RedeemableNonControllingInterestWeightedAverageCapitalizationRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redeemable Non Controlling Interest a Weighted Average Capitalization Rate",
        "label": "Redeemable Non Controlling Interest, Weighted Average Capitalization Rate",
        "terseLabel": "Capitalization rate"
       }
      }
     },
     "localname": "RedeemableNonControllingInterestWeightedAverageCapitalizationRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RedeemableNonControllingInterestWeightedAverageDiscountRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redeemable Non Controlling Interest a Weighted Average Discount Rate",
        "label": "Redeemable Non Controlling Interest, Weighted Average Discount Rate",
        "terseLabel": "Discount rate"
       }
      }
     },
     "localname": "RedeemableNonControllingInterestWeightedAverageDiscountRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RentalIncomeNonoperatingExcludingOtherRealEstateIncome": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rental Income, Nonoperating, Excluding Other Real Estate Income",
        "label": "Rental Income, Nonoperating, Excluding Other Real Estate Income",
        "terseLabel": "Rental income"
       }
      }
     },
     "localname": "RentalIncomeNonoperatingExcludingOtherRealEstateIncome",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RepaymentOfCollateralizedDebtResidential": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment Of Collateralized Debt, Residential",
        "label": "Repayment Of Collateralized Debt, Residential",
        "negatedLabel": "Payments made on and extinguishment of collateralized debt obligations"
       }
      }
     },
     "localname": "RepaymentOfCollateralizedDebtResidential",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RepurchaseAgreementCounterpartyAccruedInterestPayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Accrued Interest Payable",
        "label": "Repurchase Agreement Counterparty, Accrued Interest Payable",
        "terseLabel": "Accrued interest payable"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyAccruedInterestPayable",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RepurchaseAgreementCounterpartyPercentageAtRisk": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Percentage At Risk",
        "label": "Repurchase Agreement Counterparty, Percentage At Risk",
        "terseLabel": "Repurchase agreement percentage at risk"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyPercentageAtRisk",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements",
        "label": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RepurchaseAgreementNonMarkToMarketMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement, Non Mark-to Market",
        "label": "Repurchase Agreement, Non Mark-to Market [Member]",
        "terseLabel": "Repurchase Agreement, Non Mark-to Market"
       }
      }
     },
     "localname": "RepurchaseAgreementNonMarkToMarketMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RepurchaseAgreementsAverageInterestRateHaircut": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements, Average Interest Rate Haircut",
        "label": "Repurchase Agreements, Average Interest Rate Haircut",
        "terseLabel": "Average interest rate haircut"
       }
      }
     },
     "localname": "RepurchaseAgreementsAverageInterestRateHaircut",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RepurchaseAgreementsNumberOfCounterparties": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of counterparties the entity has repurchase agreements with.",
        "label": "Repurchase Agreements, Number of Counterparties",
        "terseLabel": "Repurchase agreements, number of counterparties"
       }
      }
     },
     "localname": "RepurchaseAgreementsNumberOfCounterparties",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_RepurchaseAgreementsWeightedAverageAdvanceRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements, Weighted Average Advance Rate",
        "label": "Repurchase Agreements, Weighted Average Advance Rate",
        "terseLabel": "Weighted average advance rate"
       }
      }
     },
     "localname": "RepurchaseAgreementsWeightedAverageAdvanceRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_ResidentialCollateralizedDebtObligationsAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Collateralized Debt Obligations, At Fair Value [Member]",
        "label": "Residential Collateralized Debt Obligations, At Fair Value [Member]",
        "terseLabel": "Consolidated SLST CDOs"
       }
      }
     },
     "localname": "ResidentialCollateralizedDebtObligationsAtFairValueMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialCollateralizedDebtObligationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential collateralized debt obligations.",
        "label": "Residential Collateralized Debt Obligations [Member]",
        "terseLabel": "Residential collateralized debt obligations"
       }
      }
     },
     "localname": "ResidentialCollateralizedDebtObligationsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoanSecuritizationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loan Securitization [Member]",
        "label": "Residential Loan Securitization [Member]",
        "terseLabel": "Residential Loan Securitizations",
        "verboseLabel": "Residential loans"
       }
      }
     },
     "localname": "ResidentialLoanSecuritizationMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoanSecuritizationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loan Securitizations",
        "label": "Residential Loan Securitizations [Member]",
        "terseLabel": "Residential loan securitizations"
       }
      }
     },
     "localname": "ResidentialLoanSecuritizationsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansAndSingleFamilyRentalPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans and Single-Family Rental Properties",
        "label": "Residential Loans and Single-Family Rental Properties [Member]",
        "terseLabel": "Residential loans"
       }
      }
     },
     "localname": "ResidentialLoansAndSingleFamilyRentalPropertiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansHeldinSecuritizationTrustsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans Held in Securitization Trusts [Member]",
        "label": "Residential Loans Held in Securitization Trusts [Member]",
        "terseLabel": "Residential Loans Held in Securitization Trusts",
        "verboseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialLoansHeldinSecuritizationTrustsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]",
        "label": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]",
        "terseLabel": "Residential loans and residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "label": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain (Loss),Before Tax",
        "terseLabel": "Unrealized (losses) gains"
       }
      }
     },
     "localname": "ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans At Fair Value [Member]",
        "label": "Residential Mortgage Loans At Fair Value [Member]",
        "terseLabel": "Residential loans",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansAtFairValueMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "label": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "terseLabel": "Schedule of Residential Mortgage Loans, Fair Value Compared to Unpaid Principal"
       }
      }
     },
     "localname": "ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ResidentialMortgageLoansFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Fair Value Disclosure",
        "label": "Residential Mortgage Loans, Fair Value Disclosure",
        "verboseLabel": "Residential mortgage loans, at fair value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]",
        "label": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]",
        "terseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of distressed mortgage loans held in a securitized trust.",
        "label": "Residential Mortgage Loans Held In Securitization Trust [Member]",
        "terseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Measurement Input",
        "label": "Residential Mortgage Loans, Measurement Input",
        "terseLabel": "Residential mortgage loans, measurement input"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMeasurementInput",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period",
        "label": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period",
        "terseLabel": "Residential mortgage loans, measurement input, liquidation timeline (in months)"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_ResidentialMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans [Member]",
        "label": "Residential Mortgage Loans [Member]",
        "terseLabel": "Residential loans",
        "verboseLabel": "Residential loans"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansPremiumDiscountAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Premium (Discount) Amount",
        "label": "Residential Mortgage Loans, Premium (Discount) Amount",
        "negatedTerseLabel": "(Discount)/premium"
       }
      }
     },
     "localname": "ResidentialMortgageLoansPremiumDiscountAmount",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansatFairValueTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans at Fair Value [Text Block]",
        "label": "Residential Mortgage Loans at Fair Value [Text Block]",
        "terseLabel": "Residential Loans, at Fair Value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansatFairValueTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_RigsbeeAveHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rigsbee Ave Holdings, LLC [Member]",
        "label": "Rigsbee Ave Holdings, LLC [Member]",
        "terseLabel": "Rigsbee Ave Holdings, LLC"
       }
      }
     },
     "localname": "RigsbeeAveHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Table disclosure of classification and carrying value of unconsolidated VIEs.",
        "label": "Schedule of Classification and Carrying Value of Unconsolidated VIEs [Table Text Block]",
        "terseLabel": "Schedule of Classification and Carrying Value of Unconsolidated VIEs"
       }
      }
     },
     "localname": "ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Components Of Income From Real Estate And Expenses",
        "label": "Schedule Of Components Of Income From Real Estate And Expenses [Table Text Block]",
        "terseLabel": "Schedule Of Components Of Income From Real Estate And Expenses"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Table disclosure of components of realized and unrealized gains and losses to derivatives instruments.",
        "label": "Schedule Of Components Of Realized And Unrealized Gains And Losses To Derivative Instruments [Table Text Block]",
        "terseLabel": "Schedule of Components of Realized and Unrealized Gains and Losses"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Repurchase Agreements, Maturities",
        "label": "Schedule Of Repurchase Agreements, Maturities [Table Text Block]",
        "terseLabel": "Schedule Of Repurchase Agreements, Maturities"
       }
      }
     },
     "localname": "ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfUnencumberedSecuritiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Unencumbered Securities",
        "label": "Schedule of Unencumbered Securities [Table Text Block]",
        "terseLabel": "Schedule of Unencumbered Securities"
       }
      }
     },
     "localname": "ScheduleOfUnencumberedSecuritiesTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleofInvestmentsSecuritiesSoldTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Investments Securities Sold [Table Text Block]",
        "label": "Schedule of Investments Securities Sold [Table Text Block]",
        "terseLabel": "Schedule of Investments Securities Sold"
       }
      }
     },
     "localname": "ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_SecuredDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of secured debt.",
        "label": "Secured Debt Fair Value",
        "verboseLabel": "Secured debt, estimated fair value"
       }
      }
     },
     "localname": "SecuredDebtFairValue",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_SeniorConvertibleNotesdue2022Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior Convertible Notes due 2022 [Member]",
        "label": "Senior Convertible Notes due 2022 [Member]",
        "terseLabel": "6.25% senior convertible notes due 2022"
       }
      }
     },
     "localname": "SeniorConvertibleNotesdue2022Member",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target",
        "label": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target",
        "terseLabel": "Vested shares target (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "nymt_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate",
        "terseLabel": "Fair value, expected term for volatility rate"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_SingleFamilyEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Single-Family Equity Ownership Interests",
        "label": "Single-Family Equity Ownership Interests [Member]",
        "terseLabel": "Single-Family Equity Ownership Interests"
       }
      }
     },
     "localname": "SingleFamilyEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SingleFamilyRentalPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Single-Family Rental Properties",
        "label": "Single-Family Rental Properties [Member]",
        "terseLabel": "Single-family rental properties"
       }
      }
     },
     "localname": "SingleFamilyRentalPropertiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SomersetDeerfieldInvestorLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Somerset Deerfield Investor, LLC [Member]",
        "label": "Somerset Deerfield Investor, LLC [Member]",
        "terseLabel": "Somerset Deerfield Investor, LLC"
       }
      }
     },
     "localname": "SomersetDeerfieldInvestorLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_StockRepurchasePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock Repurchase Plan",
        "label": "Stock Repurchase Plan [Member]",
        "terseLabel": "Stock Repurchase Plan"
       }
      }
     },
     "localname": "StockRepurchasePlanMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SunsetApartmentsPreferredLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sunset Apartments Preferred, LLC",
        "label": "Sunset Apartments Preferred, LLC [Member]",
        "terseLabel": "EHOF-NYMT Sunset Apartments Preferred, LLC"
       }
      }
     },
     "localname": "SunsetApartmentsPreferredLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SwapMaturities2025Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Swap Maturities 2025",
        "label": "Swap Maturities 2025 [Member]",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "SwapMaturities2025Member",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SwapMaturities2026Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Swap Maturities 2026",
        "label": "Swap Maturities 2026 [Member]",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "SwapMaturities2026Member",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SwapMaturities2028Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Swap Maturities 2028",
        "label": "Swap Maturities 2028 [Member]",
        "terseLabel": "2028"
       }
      }
     },
     "localname": "SwapMaturities2028Member",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SwapMaturities2033Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Swap Maturities 2033",
        "label": "Swap Maturities 2033 [Member]",
        "terseLabel": "2033"
       }
      }
     },
     "localname": "SwapMaturities2033Member",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SyracuseApartmentsAndTownhomesLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Syracuse Apartments And Townhomes, LLC",
        "label": "Syracuse Apartments And Townhomes, LLC [Member]",
        "terseLabel": "Syracuse Apartments and Townhomes, LLC"
       }
      }
     },
     "localname": "SyracuseApartmentsAndTownhomesLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TaxableREITSubsidiariesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Taxable REIT subsidiaries.",
        "label": "Taxable REIT Subsidiaries [Member]",
        "terseLabel": "Taxable REIT Subsidiaries"
       }
      }
     },
     "localname": "TaxableREITSubsidiariesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TidesOn27thInvestorsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tides on 27th Investors, LLC",
        "label": "Tides on 27th Investors, LLC [Member]",
        "terseLabel": "Tides on 27th Investors, LLC"
       }
      }
     },
     "localname": "TidesOn27thInvestorsLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TotalCollateralizedDebtObligationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Collateralized Debt Obligations",
        "label": "Total Collateralized Debt Obligations [Member]",
        "terseLabel": "Total collateralized debt obligations"
       }
      }
     },
     "localname": "TotalCollateralizedDebtObligationsMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]",
        "label": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]",
        "terseLabel": "Total CECL Securities and Fair Value Option"
       }
      }
     },
     "localname": "TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_TotalResidentialLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Residential Loans",
        "label": "Total Residential Loans [Member]",
        "terseLabel": "Total residential loans"
       }
      }
     },
     "localname": "TotalResidentialLoansMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TotalUnconsolidatedVariableInterestEntitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Unconsolidated Variable Interest Entities",
        "label": "Total Unconsolidated Variable Interest Entities [Member]",
        "terseLabel": "Maximum exposure"
       }
      }
     },
     "localname": "TotalUnconsolidatedVariableInterestEntitiesMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_UnderwrittenPublicOfferingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Underwritten Public Offering [Member]",
        "label": "Underwritten Public Offering [Member]",
        "terseLabel": "Underwritten Public Offering"
       }
      }
     },
     "localname": "UnderwrittenPublicOfferingMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_UnfundedCommitmentsForResidentialLoans": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded Commitments For Residential Loans",
        "label": "Unfunded Commitments For Residential Loans",
        "terseLabel": "Unfunded commitments for residential loans"
       }
      }
     },
     "localname": "UnfundedCommitmentsForResidentialLoans",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized Gain (Loss) Loans and Preferred Equity",
        "label": "Unrealized Gain (Loss) Loans and Preferred Equity and Mezzanine Loans",
        "verboseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnrealizedGainLossOnRealEstateMortgageLoansNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net",
        "label": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net",
        "terseLabel": "Unrealized gains (losses), net"
       }
      }
     },
     "localname": "UnrealizedGainLossOnRealEstateMortgageLoansNet",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnsecuredDebtFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsecured Debt, Fair Value Disclosure",
        "label": "Unsecured Debt, Fair Value Disclosure",
        "terseLabel": "Senior unsecured notes, estimated fair value"
       }
      }
     },
     "localname": "UnsecuredDebtFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of special purpose entities and variable interest entities.",
        "label": "Use Of Special Purpose Entities And Variable Interest Entities [Text Block]",
        "terseLabel": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)"
       }
      }
     },
     "localname": "UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ValuationTechniqueLiquidationModelMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation Technique, Liquidation Model [Member]",
        "label": "Valuation Technique, Liquidation Model [Member]",
        "terseLabel": "Valuation Technique, Liquidation Model"
       }
      }
     },
     "localname": "ValuationTechniqueLiquidationModelMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_WalnutCreekPropertiesHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Walnut Creek Properties Holdings, LLC [Member]",
        "label": "Walnut Creek Properties Holdings, LLC [Member]",
        "terseLabel": "Walnut Creek Properties Holdings, L.L.C."
       }
      }
     },
     "localname": "WalnutCreekPropertiesHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20230630",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r268",
      "r340",
      "r584",
      "r585",
      "r588",
      "r589",
      "r634",
      "r854",
      "r923",
      "r924",
      "r925",
      "r974",
      "r977",
      "r978"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r268",
      "r340",
      "r584",
      "r585",
      "r588",
      "r589",
      "r634",
      "r854",
      "r923",
      "r924",
      "r925",
      "r974",
      "r977",
      "r978"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CounterpartyNameAxis": {
     "auth_ref": [
      "r282",
      "r337",
      "r338",
      "r471",
      "r499",
      "r633",
      "r861",
      "r864"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Axis]",
        "terseLabel": "Counterparty Name [Axis]"
       }
      }
     },
     "localname": "CounterpartyNameAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_DirectorMember": {
     "auth_ref": [
      "r952",
      "r1043"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Person serving on board of directors.",
        "label": "Director [Member]",
        "terseLabel": "Director"
       }
      }
     },
     "localname": "DirectorMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "auth_ref": [
      "r428",
      "r429",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Domain]",
        "terseLabel": "Investment, Name [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvesteeNameDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r457",
      "r523",
      "r671",
      "r700",
      "r743",
      "r744",
      "r800",
      "r803",
      "r807",
      "r808",
      "r823",
      "r855",
      "r856",
      "r868",
      "r877",
      "r882",
      "r889",
      "r979",
      "r1028",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r457",
      "r523",
      "r671",
      "r700",
      "r743",
      "r744",
      "r800",
      "r803",
      "r807",
      "r808",
      "r823",
      "r855",
      "r856",
      "r868",
      "r877",
      "r882",
      "r889",
      "r979",
      "r1028",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]",
        "terseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateAbstract",
     "nsuri": "http://fasb.org/srt/2023",
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionLoanCategoryAxis": {
     "auth_ref": [
      "r278",
      "r841"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionLoanCategoryAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "auth_ref": [
      "r267",
      "r278",
      "r841",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of real estate property.",
        "label": "Real Estate, Type of Property [Axis]",
        "terseLabel": "Real Estate, Type of Property [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateFaceAmountOfMortgages": {
     "auth_ref": [
      "r279",
      "r837"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contractual principal due at origination of mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Face Amount of Mortgages",
        "terseLabel": "Principal"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateFaceAmountOfMortgages",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_MortgageLoansOnRealEstateLineItems": {
     "auth_ref": [
      "r281",
      "r842"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Line Items]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Line Items]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLineItems",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateLoanCategoryDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLoanCategoryDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "auth_ref": [
      "r267",
      "r269",
      "r270",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r276",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Land and any structures permanently fixed to it.",
        "label": "Real Estate [Domain]",
        "terseLabel": "Real Estate [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis": {
     "auth_ref": [
      "r277",
      "r840"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by original amount of mortgage loan for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Group of similar original loan amounts for investment in real estate mortgage loan by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans": {
     "auth_ref": [
      "r280",
      "r839"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of principal due on delinquent mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Principal Amount of Delinquent Loans",
        "terseLabel": "Principal amount of delinquent loans",
        "verboseLabel": "Unpaid Principal Balance"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_MortgageLoansOnRealEstateScheduleTable": {
     "auth_ref": [
      "r281",
      "r842"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateScheduleTable",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MultifamilyMember": {
     "auth_ref": [
      "r921",
      "r922",
      "r1054",
      "r1055"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential building containing multiple separate housing units.",
        "label": "Multifamily [Member]",
        "terseLabel": "Multi-Family Apartment Properties"
       }
      }
     },
     "localname": "MultifamilyMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r457",
      "r516",
      "r523",
      "r551",
      "r552",
      "r553",
      "r642",
      "r671",
      "r700",
      "r743",
      "r744",
      "r800",
      "r803",
      "r807",
      "r808",
      "r823",
      "r855",
      "r856",
      "r868",
      "r877",
      "r882",
      "r889",
      "r892",
      "r972",
      "r979",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r457",
      "r516",
      "r523",
      "r551",
      "r552",
      "r553",
      "r642",
      "r671",
      "r700",
      "r743",
      "r744",
      "r800",
      "r803",
      "r807",
      "r808",
      "r823",
      "r855",
      "r856",
      "r868",
      "r877",
      "r882",
      "r889",
      "r892",
      "r972",
      "r979",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "auth_ref": [
      "r337",
      "r338",
      "r471",
      "r499",
      "r633",
      "r863",
      "r864"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Domain]",
        "terseLabel": "Counterparty Name [Domain]"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "auth_ref": [
      "r428",
      "r429",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Axis]",
        "terseLabel": "Investment, Name [Axis]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r267",
      "r269",
      "r270",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r276",
      "r387",
      "r388",
      "r734",
      "r738",
      "r740",
      "r802",
      "r805",
      "r810",
      "r825",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r858",
      "r878",
      "r892",
      "r984",
      "r1040"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Geographical area.",
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical [Domain]"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_SingleFamilyMember": {
     "auth_ref": [
      "r921",
      "r922",
      "r1054",
      "r1055"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Individual, freestanding, unattached residential building.",
        "label": "Single Family [Member]",
        "terseLabel": "Single-Family Rental Homes"
       }
      }
     },
     "localname": "SingleFamilyMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r267",
      "r278",
      "r387",
      "r388",
      "r734",
      "r738",
      "r740",
      "r802",
      "r805",
      "r810",
      "r825",
      "r841",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r858",
      "r878",
      "r892",
      "r984",
      "r1040"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by geographical components.",
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical [Axis]"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualAxis": {
     "auth_ref": [
      "r952",
      "r1025"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by title of individual or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Axis]",
        "terseLabel": "Title of Individual [Axis]"
       }
      }
     },
     "localname": "TitleOfIndividualAxis",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of individual, or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Domain]",
        "terseLabel": "Title of Individual [Domain]"
       }
      }
     },
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [
      "r855",
      "r856",
      "r1028",
      "r1030",
      "r1033"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance.",
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_AL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ALABAMA",
        "terseLabel": "Alabama"
       }
      }
     },
     "localname": "AL",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_AR": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ARKANSAS",
        "terseLabel": "Arkansas"
       }
      }
     },
     "localname": "AR",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_CA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "CALIFORNIA",
        "verboseLabel": "California"
       }
      }
     },
     "localname": "CA",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_FL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "FLORIDA",
        "terseLabel": "Florida"
       }
      }
     },
     "localname": "FL",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_IL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ILLINOIS",
        "terseLabel": "Illinois"
       }
      }
     },
     "localname": "IL",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_IN": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "INDIANA",
        "terseLabel": "Indiana"
       }
      }
     },
     "localname": "IN",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_LA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "LOUISIANA",
        "terseLabel": "Louisiana"
       }
      }
     },
     "localname": "LA",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NC": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NORTH CAROLINA",
        "terseLabel": "North Carolina"
       }
      }
     },
     "localname": "NC",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NJ": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW JERSEY",
        "terseLabel": "New Jersey"
       }
      }
     },
     "localname": "NJ",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NY": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW YORK",
        "terseLabel": "New York"
       }
      }
     },
     "localname": "NY",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_TN": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "TENNESSEE",
        "terseLabel": "Tennessee"
       }
      }
     },
     "localname": "TN",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_TX": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "TEXAS",
        "terseLabel": "Texas"
       }
      }
     },
     "localname": "TX",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_WA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "WASHINGTON",
        "terseLabel": "Washington"
       }
      }
     },
     "localname": "WA",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]",
        "terseLabel": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of receivable.",
        "label": "Receivable Type [Axis]",
        "terseLabel": "Receivable Type [Axis]"
       }
      }
     },
     "localname": "AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "auth_ref": [
      "r190"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "negatedLabel": "Net amortization"
       }
      }
     },
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other.",
        "label": "Accrued Liabilities and Other Liabilities",
        "terseLabel": "Accrued expenses and other liabilities in consolidated multi-family properties"
       }
      }
     },
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r147"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities.",
        "label": "Accrued Liabilities",
        "verboseLabel": "Accrued expenses"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r42",
      "r43",
      "r176",
      "r294",
      "r685",
      "r705",
      "r706"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive loss"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r2",
      "r16",
      "r43",
      "r595",
      "r598",
      "r632",
      "r701",
      "r702",
      "r935",
      "r936",
      "r937",
      "r947",
      "r948",
      "r949"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r170",
      "r888",
      "r1044"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock.",
        "label": "Additional Paid in Capital",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r560",
      "r561",
      "r562",
      "r720",
      "r947",
      "r948",
      "r949",
      "r1019",
      "r1049"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-In Capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r93",
      "r94",
      "r526"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-Based Payment Arrangement, Increase for Cost Recognition",
        "terseLabel": "Stock based compensation expense, net"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net loss to net cash (used in) provided by operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r555",
      "r563"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Share-based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r9",
      "r71",
      "r72"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DepreciationDepletionAndAmortization",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Intangible Assets",
        "terseLabel": "Amortization of lease intangibles related to operating real estate"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r879",
      "r957",
      "r959",
      "r960"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset-Backed Securities [Member]",
        "terseLabel": "ABS"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r227",
      "r289",
      "r328",
      "r376",
      "r383",
      "r385",
      "r432",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r584",
      "r588",
      "r619",
      "r680",
      "r766",
      "r888",
      "r903",
      "r975",
      "r976",
      "r1026"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total Assets",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "ASSETS"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r131"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets carried at fair value",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure": {
     "auth_ref": [
      "r887"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of assets classified as held for sale.",
        "label": "Long-Lived Asset, Held-for-Sale, Fair Value Disclosure",
        "terseLabel": "Assets of disposal group held for sale"
       }
      }
     },
     "localname": "AssetsHeldForSaleLongLivedFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r196",
      "r285",
      "r286"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Assets",
        "totalLabel": "Total assets of disposal group held for sale"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r194",
      "r196",
      "r285",
      "r286"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 8.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Assets, Current",
        "terseLabel": "Assets of disposal group held for sale"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseAxis": {
     "auth_ref": [
      "r336"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by securities or other assets sold under repurchase agreements. Repurchase agreements are agreements under which the transferor (repo party) transfers a security to a transferee (repo counterparty or reverse party) in exchange for cash and concurrently agrees to reacquire that security at a future date for an amount equal to the cash exchanged plus a stipulated interest factor.",
        "label": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]",
        "terseLabel": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts": {
     "auth_ref": [
      "r330",
      "r334"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets sold under agreements to repurchase when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Carrying Amount",
        "terseLabel": "Total carrying value",
        "verboseLabel": "Carrying Value of Repurchase Agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseInterestRate": {
     "auth_ref": [
      "r335"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate on the amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Interest Rate",
        "terseLabel": "Weighted Average Rate"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "auth_ref": [
      "r336"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Assets Sold under Agreements to Repurchase [Line Items]",
        "terseLabel": "Assets Sold under Agreements to Repurchase [Line Items]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "auth_ref": [
      "r336",
      "r655"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "auth_ref": [
      "r336",
      "r655"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "auth_ref": [
      "r330",
      "r335"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Repurchase Liability",
        "terseLabel": "Repurchase agreements, maturities",
        "verboseLabel": "Outstanding Repurchase Agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseTypeDomain": {
     "auth_ref": [
      "r336"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is the type of such assets (for example, US Treasury Obligations, US Government agency obligations and loans, and so forth). This item may be presented as an element in the table that is disclosed when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceed 10 percent of total assets, as of the most recent balance sheet date.",
        "label": "Assets Sold under Agreements to Repurchase, Type [Domain]",
        "terseLabel": "Assets Sold under Agreements to Repurchase, Type [Domain]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r397"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r398"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value to Amortized Cost, after Allowance for Credit Loss [Abstract]",
        "terseLabel": "CECL Securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r114",
      "r119"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankingAndThriftInterestAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking and Thrift, Interest [Abstract]"
       }
      }
     },
     "localname": "BankingAndThriftInterestAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]",
        "terseLabel": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]"
       }
      }
     },
     "localname": "CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business).",
        "label": "Cash Acquired from Acquisition",
        "terseLabel": "Cash received from initial consolidation of VIEs"
       }
      }
     },
     "localname": "CashAcquiredFromAcquisition",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r54",
      "r287",
      "r860"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "periodEndLabel": "Cash and cash equivalents",
        "terseLabel": "Cash and cash equivalents",
        "verboseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents, estimated fair value"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r54",
      "r188",
      "r323"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents",
        "periodEndLabel": "Cash, Cash Equivalents and Restricted Cash - End of Period",
        "periodStartLabel": "Cash, Cash Equivalents and Restricted Cash - Beginning of Period",
        "totalLabel": "Total cash, cash equivalents, and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents [Abstract]",
        "terseLabel": "Cash, Cash Equivalents and Restricted Cash Reconciliation:"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r0",
      "r188"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net (Decrease) Increase in Cash, Cash Equivalents and Restricted Cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r265",
      "r290",
      "r291",
      "r292",
      "r328",
      "r358",
      "r359",
      "r366",
      "r368",
      "r374",
      "r375",
      "r432",
      "r458",
      "r460",
      "r461",
      "r462",
      "r465",
      "r466",
      "r497",
      "r498",
      "r501",
      "r504",
      "r511",
      "r619",
      "r711",
      "r712",
      "r713",
      "r714",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r727",
      "r728",
      "r729",
      "r730",
      "r731",
      "r753",
      "r775",
      "r793",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r910",
      "r942",
      "r950"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock [Domain]"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [
      "r290",
      "r291",
      "r292",
      "r374",
      "r497",
      "r498",
      "r499",
      "r501",
      "r504",
      "r509",
      "r511",
      "r711",
      "r712",
      "r713",
      "r714",
      "r877",
      "r910",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Class of Stock [Line Items]",
        "terseLabel": "Class of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralizedDebtObligationsMember": {
     "auth_ref": [
      "r954",
      "r958",
      "r986"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by a pool of assets.",
        "label": "Collateralized Debt Obligations [Member]",
        "terseLabel": "Collateralized Debt Obligations"
       }
      }
     },
     "localname": "CollateralizedDebtObligationsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r957",
      "r959",
      "r960",
      "r986"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by commercial real estate mortgage loans.",
        "label": "Commercial Mortgage-Backed Securities [Member]",
        "terseLabel": "CMBS"
       }
      }
     },
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r38",
      "r149",
      "r681",
      "r752"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and Contingencies (See Note 15)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r200",
      "r452",
      "r453",
      "r844",
      "r973"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CommitmentsandContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "terseLabel": "Cash dividend per share (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r890",
      "r891",
      "r892",
      "r894",
      "r895",
      "r896",
      "r899",
      "r947",
      "r948",
      "r1019",
      "r1041",
      "r1049"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "verboseLabel": "Common stock, par value (in usd per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r169",
      "r753"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares, issued (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r17",
      "r169",
      "r753",
      "r772",
      "r1049",
      "r1050"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesSubscriptions": {
     "auth_ref": [
      "r81",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Monetary value of common stock allocated to investors to buy shares of a new issue of common stock before they are offered to the public. When stock is sold on a subscription basis, the issuer does not initially receive the total proceeds. In general, the issuer does not issue the shares to the investor until it receives the entire proceeds.",
        "label": "Common Stock, Value, Subscriptions",
        "terseLabel": "Common stock that may be sold (up to)"
       }
      }
     },
     "localname": "CommonStockSharesSubscriptions",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r169",
      "r684",
      "r888"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "terseLabel": "Common stock, par value $0.01 per share, 200,000,000 shares authorized, 91,250,399 and 91,193,688 shares issued and outstanding as of June\u00a030, 2023 and December\u00a031, 2022, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r44",
      "r303",
      "r305",
      "r310",
      "r673",
      "r695"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "COMPREHENSIVE LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r65",
      "r67",
      "r136",
      "r137",
      "r389",
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Concentration Risk Benchmark [Domain]",
        "terseLabel": "Concentration Risk Benchmark [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r65",
      "r67",
      "r136",
      "r137",
      "r389",
      "r707",
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]",
        "terseLabel": "Concentration Risk Benchmark [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r65",
      "r67",
      "r136",
      "r137",
      "r389",
      "r843",
      "r912"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender.",
        "label": "Concentration Risk Type [Axis]",
        "terseLabel": "Concentration Risk Type [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskLineItems": {
     "auth_ref": [
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Concentration Risk [Line Items]",
        "terseLabel": "Concentration Risk [Line Items]"
       }
      }
     },
     "localname": "ConcentrationRiskLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "auth_ref": [
      "r65",
      "r67",
      "r136",
      "r137",
      "r389"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the \"benchmark\" (or denominator) in the equation, this concept represents the concentration percentage derived from the division.",
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Geographic concentration, percent"
       }
      }
     },
     "localname": "ConcentrationRiskPercentage1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ConcentrationRiskTable": {
     "auth_ref": [
      "r64",
      "r65",
      "r67",
      "r68",
      "r136",
      "r221",
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Concentration Risk [Table]",
        "terseLabel": "Concentration Risk [Table]"
       }
      }
     },
     "localname": "ConcentrationRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r65",
      "r67",
      "r136",
      "r137",
      "r389",
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration.",
        "label": "Concentration Risk Type [Domain]",
        "terseLabel": "Concentration Risk Type [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsolidationVariableInterestEntityPolicy": {
     "auth_ref": [
      "r100",
      "r103",
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for consolidation to describe the significant judgments and assumptions made in determining whether a variable interest held by the entity requires the variable interest entity to be consolidated and (or) disclose information about its involvement with the variable interest entity; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; and the significant factors considered and judgments made in determining that the power to direct the activities that significantly impact the economic performance of the variable interest entity are shared (as defined).",
        "label": "Consolidation, Variable Interest Entity, Policy [Policy Text Block]",
        "terseLabel": "Principles of Consolidation and Variable Interest Entities"
       }
      }
     },
     "localname": "ConsolidationVariableInterestEntityPolicy",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ContractWithCustomerLiability": {
     "auth_ref": [
      "r513",
      "r514",
      "r515"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable.",
        "label": "Contract with Customer, Liability",
        "terseLabel": "Deferred revenue"
       }
      }
     },
     "localname": "ContractWithCustomerLiability",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebtMember": {
     "auth_ref": [
      "r202",
      "r468",
      "r469",
      "r479",
      "r480",
      "r481",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock.",
        "label": "Convertible Debt [Member]",
        "terseLabel": "Convertible notes"
       }
      }
     },
     "localname": "ConvertibleDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r210",
      "r573",
      "r579",
      "r945"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations.",
        "label": "Current Income Tax Expense (Benefit)",
        "terseLabel": "Current income tax expense"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]",
        "terseLabel": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r201",
      "r325",
      "r467",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r483",
      "r490",
      "r491",
      "r493"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "verboseLabel": "Debt"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/Debt"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r31",
      "r163",
      "r164",
      "r228",
      "r231",
      "r340",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r474",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r628",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r943"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument.",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "auth_ref": [
      "r31",
      "r231",
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt.",
        "label": "Long-Term Debt, Gross",
        "verboseLabel": "Outstanding Mortgage Balance"
       }
      }
     },
     "localname": "DebtInstrumentCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r140",
      "r142",
      "r468",
      "r628",
      "r873",
      "r874"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "netLabel": "Outstanding Face Amount",
        "terseLabel": "Principal value of trust preferred securities"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateIncreaseDecrease": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental percentage increase (decrease) in the stated rate on a debt instrument.",
        "label": "Debt Instrument, Interest Rate, Increase (Decrease)",
        "terseLabel": "Interest rate increase"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r36",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [
      "r340",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r474",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r492",
      "r628",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r943"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r37",
      "r340",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r474",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r628",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r943"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about timing of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period [Axis]",
        "terseLabel": "Debt Instrument, Redemption, Period [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features.",
        "label": "Debt Instrument, Redemption, Period [Domain]",
        "terseLabel": "Debt Instrument, Redemption, Period [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFourMember": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period four representing fourth most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Four [Member]",
        "terseLabel": "April\u00a030, 2025 - April\u00a029, 2026"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodFourMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "terseLabel": "Debt Instrument, Redemption, Period One"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodThreeMember": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period three representing third most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Three [Member]",
        "terseLabel": "April\u00a030, 2024 - April\u00a029, 2025"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodThreeMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "terseLabel": "April\u00a030, 2023 - April\u00a029, 2024"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPricePercentage": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage price of original principal amount of debt at which debt can be redeemed by the issuer.",
        "label": "Debt Instrument, Redemption Price, Percentage",
        "terseLabel": "Debt instrument, redemption price, percentage"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPricePercentage",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentRedemptionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of debt instruments or arrangements with redemption features. Includes, but is not limited to, description of debt redemption features, percentage price at which debt can be redeemed by the issuer, and period start and end for debt maturity or redemption.",
        "label": "Debt Instrument Redemption [Table Text Block]",
        "terseLabel": "Schedule of Debt Instrument Redemption"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r37",
      "r84",
      "r88",
      "r139",
      "r140",
      "r142",
      "r150",
      "r204",
      "r205",
      "r340",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r474",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r492",
      "r628",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r943"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss": {
     "auth_ref": [
      "r400",
      "r442",
      "r443",
      "r444"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of accrued interest on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Accrued Interest, after Allowance for Credit Loss",
        "terseLabel": "Accrued interest"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease": {
     "auth_ref": [
      "r969"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Allowance for Credit Loss, Period Increase (Decrease)",
        "terseLabel": "Debt securities, allowance for credit loss, period increase (decrease)"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest": {
     "auth_ref": [
      "r442"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Allowance for Credit Loss, Excluding Accrued Interest",
        "terseLabel": "Allowance for credit loss"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "auth_ref": [
      "r442"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost excluding accrued interest, before allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r256",
      "r448",
      "r871"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Greater Than 12 months, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r256",
      "r448"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Greater Than 12 months, Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r256",
      "r448",
      "r871"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Less than 12 months, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r256",
      "r448"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Less Than 12 months, Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest": {
     "auth_ref": [
      "r968"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Excluding Accrued Interest",
        "netLabel": "Investment securities available for sale:",
        "terseLabel": "Fair Value",
        "verboseLabel": "Investment securities available for sale:"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGain": {
     "auth_ref": [
      "r424"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Realized Gain",
        "terseLabel": "Realized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss": {
     "auth_ref": [
      "r961"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Realized Gain (Loss)",
        "totalLabel": "Net Realized Gains (Losses)"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss": {
     "auth_ref": [
      "r424"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Realized Loss",
        "negatedTerseLabel": "Realized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale [Table]",
        "terseLabel": "Debt Securities, Available-for-sale [Table]"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedGainLoss": {
     "auth_ref": [
      "r955",
      "r956"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Unrealized Gain (Loss)",
        "terseLabel": "Unrealized gains (losses) on investments"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r254",
      "r446",
      "r871"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position without allowance for credit loss.",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position",
        "totalLabel": "Total, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r255",
      "r447"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss",
        "negatedTotalLabel": "Total Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average interest rate of debt outstanding.",
        "label": "Debt, Weighted Average Interest Rate",
        "terseLabel": "Weighted average interest rate",
        "verboseLabel": "Weighted Average Interest Rate"
       }
      }
     },
     "localname": "DebtWeightedAverageInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredFinanceCostsNet": {
     "auth_ref": [
      "r141",
      "r980"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs.",
        "label": "Debt Issuance Costs, Net",
        "negatedLabel": "Net Deferred Finance Cost",
        "terseLabel": "Deferred loan fees, net"
       }
      }
     },
     "localname": "DeferredFinanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r9",
      "r210",
      "r262",
      "r578",
      "r579",
      "r945"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Deferred income tax benefit"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r166",
      "r167",
      "r229",
      "r569"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "terseLabel": "Deferred tax liabilities",
        "totalLabel": "Total deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsCapitalLossCarryforwards": {
     "auth_ref": [
      "r97",
      "r1014"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards.",
        "label": "Deferred Tax Assets, Capital Loss Carryforwards",
        "terseLabel": "Capital loss carryover"
       }
      }
     },
     "localname": "DeferredTaxAssetsCapitalLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r570"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Total deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGrossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross [Abstract]",
        "terseLabel": "Deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGrossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "auth_ref": [
      "r1013"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting.",
        "label": "Deferred Tax Assets, Net",
        "totalLabel": "Deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r1013"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "terseLabel": "Deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "auth_ref": [
      "r97",
      "r1014"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforward"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "auth_ref": [
      "r97",
      "r1014"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other.",
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "GAAP/Tax basis differences"
       }
      }
     },
     "localname": "DeferredTaxAssetsOther",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r571"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Gross [Abstract]",
        "terseLabel": "Deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "auth_ref": [
      "r97",
      "r1014"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other.",
        "label": "Deferred Tax Liabilities, Other",
        "terseLabel": "GAAP/Tax basis differences"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesOther",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r9"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DepreciationDepletionAndAmortization",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Depreciation, Amortization and Accretion, Net",
        "terseLabel": "Depreciation and amortization expense related to operating real estate"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationDepletionAndAmortization": {
     "auth_ref": [
      "r9",
      "r378"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      },
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets.",
        "label": "Depreciation, Depletion and Amortization",
        "terseLabel": "Depreciation and amortization",
        "totalLabel": "Depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationDepletionAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "auth_ref": [
      "r23",
      "r28",
      "r117",
      "r817",
      "r818"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of liability associated with financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, Liability Offset",
        "negatedTerseLabel": "Gross Amounts Offset in Balance Sheets"
       }
      }
     },
     "localname": "DerivativeAssetFairValueGrossLiability",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetFairValueNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral [Abstract]",
        "terseLabel": "Derivative assets:"
       }
      }
     },
     "localname": "DerivativeAssetFairValueNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration": {
     "auth_ref": [
      "r590"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes derivative asset.",
        "label": "Derivative Asset, Statement of Financial Position [Extensible Enumeration]",
        "terseLabel": "Derivative Asset, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r296",
      "r298",
      "r618",
      "r732",
      "r733",
      "r734",
      "r736",
      "r737",
      "r739",
      "r740",
      "r741",
      "r743",
      "r744",
      "r759",
      "r760",
      "r811",
      "r814",
      "r816",
      "r817",
      "r819",
      "r820",
      "r864",
      "r892",
      "r1042"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 11.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Asset",
        "terseLabel": "Derivative assets",
        "verboseLabel": "Derivative Asset, carrying value"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset [Abstract]",
        "terseLabel": "Derivative assets"
       }
      }
     },
     "localname": "DerivativeAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeAverageCapInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average cap rate on a group of interest rate derivatives, such as interest rate caps or collars. If market rates exceed the cap rate, a payment or receipt is triggered on the contract.",
        "label": "Derivative, Average Cap Interest Rate",
        "terseLabel": "Strike Rate"
       }
      }
     },
     "localname": "DerivativeAverageCapInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeAverageFixedInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average fixed interest rate related to the group of interest rate derivatives.",
        "label": "Derivative, Average Fixed Interest Rate",
        "terseLabel": "Weighted Average Fixed Interest Rate"
       }
      }
     },
     "localname": "DerivativeAverageFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeAverageVariableInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average variable interest rate related to the group of interest rate derivatives.",
        "label": "Derivative, Average Variable Interest Rate",
        "terseLabel": "Weighted Average Variable Interest Rate"
       }
      }
     },
     "localname": "DerivativeAverageVariableInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [
      "r741",
      "r744",
      "r758",
      "r759",
      "r760",
      "r762",
      "r763",
      "r764",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r781",
      "r782",
      "r783",
      "r784",
      "r787",
      "r788",
      "r789",
      "r790",
      "r811",
      "r812",
      "r816",
      "r819",
      "r890",
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r26",
      "r117",
      "r175",
      "r295",
      "r864"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": 1.0
      },
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset",
        "terseLabel": "Total derivative assets",
        "verboseLabel": "Gross Amount of Recognized Assets (Liabilities)"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral": {
     "auth_ref": [
      "r24",
      "r27",
      "r29",
      "r128"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after offset of derivative liability, of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, before offset against an obligation to return collateral under a master netting arrangement. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral",
        "terseLabel": "Total derivative assets",
        "totalLabel": "Net Amounts of Assets (Liabilities) Presented in Balance Sheets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r26",
      "r117",
      "r175",
      "r295",
      "r864"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset",
        "negatedLabel": "Gross Amount of Recognized Assets (Liabilities)"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral": {
     "auth_ref": [
      "r24",
      "r27",
      "r29",
      "r128"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after offset of derivative asset, of financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, elected not to be and before offset against a right to receive collateral under a master netting arrangement. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset of Collateral",
        "negatedTotalLabel": "Net Amounts of Assets (Liabilities) Presented in Balance Sheets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "auth_ref": [
      "r618"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives.",
        "label": "Derivative, Fair Value, Net",
        "terseLabel": "Derivative Asset, estimated fair value"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFinancialInstrumentsAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents types of derivative financial instruments which are financial instruments or other contractual arrangements with all three of the following characteristics: (a) it has (1) one or more underlyings and (2) one or more notional amounts or payment provisions or both. Those terms determine the amount of the settlement or settlements, and, in some cases, whether or not a settlement is required; (b) it requires no initial net investment or an initial net investment that is smaller than would be required for other types of contracts that would be expected to have a similar response to changes in market factors; and (c) its terms require or permit net settlement, it can readily be settled net by a means outside the contract, or it provides for delivery of an asset that puts the recipient in a position not substantially different from net settlement. Notwithstanding the above characteristics, loan commitments that relate to the origination of mortgage loans that will be held for sale are accounted for as derivative instruments by the issuer of the loan commitment (that is, the potential lender).",
        "label": "Derivative Financial Instruments, Assets [Member]",
        "terseLabel": "Derivative Asset"
       }
      }
     },
     "localname": "DerivativeFinancialInstrumentsAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFixedInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed interest rate related to the interest rate derivative.",
        "label": "Derivative, Fixed Interest Rate",
        "terseLabel": "Interest rate"
       }
      }
     },
     "localname": "DerivativeFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r115",
      "r118",
      "r120",
      "r123",
      "r741",
      "r744",
      "r758",
      "r759",
      "r760",
      "r762",
      "r763",
      "r764",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r781",
      "r782",
      "r783",
      "r784",
      "r787",
      "r788",
      "r789",
      "r790",
      "r811",
      "r812",
      "r816",
      "r819",
      "r864",
      "r890",
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r216",
      "r593",
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivative Instruments and Hedging Activities"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Line Items]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Line Items]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about derivatives and hedging activities.",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Table]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Table]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r296",
      "r298",
      "r618",
      "r732",
      "r733",
      "r734",
      "r736",
      "r739",
      "r740",
      "r741",
      "r743",
      "r744",
      "r767",
      "r769",
      "r770",
      "r812",
      "r813",
      "r814",
      "r816",
      "r817",
      "r819",
      "r820",
      "r864",
      "r1042"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability",
        "terseLabel": "Derivative liability"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability [Abstract]",
        "terseLabel": "Derivative liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "auth_ref": [
      "r23",
      "r28",
      "r117",
      "r817",
      "r818",
      "r862"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of asset associated with financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, Asset Offset",
        "terseLabel": "Gross Amounts Offset in Balance Sheets"
       }
      }
     },
     "localname": "DerivativeLiabilityFairValueGrossAsset",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLineItems": {
     "auth_ref": [
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivative [Line Items]",
        "terseLabel": "Derivative [Line Items]"
       }
      }
     },
     "localname": "DerivativeLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeNotionalAmount": {
     "auth_ref": [
      "r1016",
      "r1017"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payment on derivative.",
        "label": "Derivative, Notional Amount",
        "terseLabel": "Notional Amount"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeTable": {
     "auth_ref": [
      "r18",
      "r110",
      "r111",
      "r112",
      "r113",
      "r116",
      "r120",
      "r125",
      "r127",
      "r130",
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Derivative [Table]",
        "terseLabel": "Derivative [Table]"
       }
      }
     },
     "localname": "DerivativeTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivatives, Fair Value [Line Items]",
        "terseLabel": "Derivatives, Fair Value [Line Items]"
       }
      }
     },
     "localname": "DerivativesFairValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "auth_ref": [
      "r18",
      "r110",
      "r111",
      "r113",
      "r126",
      "r339"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities.",
        "label": "Derivatives, Policy [Policy Text Block]",
        "terseLabel": "Derivative Financial Instruments"
       }
      }
     },
     "localname": "DerivativesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r524",
      "r528",
      "r556",
      "r557",
      "r559",
      "r883"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement [Text Block]",
        "terseLabel": "Stock Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]",
        "terseLabel": "Share-based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsHeldforsaleMember": {
     "auth_ref": [
      "r3",
      "r4",
      "r285"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Component or group of components classified as held-for-sale and representing a strategic shift that has or will have a major effect on operations and financial results. Includes a business or nonprofit activity on acquisition classified as held-for-sale.",
        "label": "Discontinued Operations, Held-for-Sale [Member]",
        "terseLabel": "Discontinued Operations, Held-for-sale"
       }
      }
     },
     "localname": "DiscontinuedOperationsHeldforsaleMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupClassificationAxis": {
     "auth_ref": [
      "r285"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by disposal group classification.",
        "label": "Disposal Group Classification [Axis]",
        "terseLabel": "Disposal Group Classification [Axis]"
       }
      }
     },
     "localname": "DisposalGroupClassificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisposalGroupClassificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Component or group of components disposed of, including but not limited to, disposal group held-for-sale or disposed of by sale, disposed of by means other than sale, and discontinued operations.",
        "label": "Disposal Group Classification [Domain]",
        "terseLabel": "Disposal Group Classification [Domain]"
       }
      }
     },
     "localname": "DisposalGroupClassificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r196"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as cash and cash equivalents attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Cash and Cash Equivalents",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r196"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as other assets attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherLiabilities": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r196"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as other liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal": {
     "auth_ref": [
      "r451",
      "r941",
      "r970"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of gain (loss) recognized on the sale or disposal of a disposal group. Excludes discontinued operations.",
        "label": "Disposal Group, Not Discontinued Operation, Gain (Loss) on Disposal",
        "terseLabel": "Realized loss"
       }
      }
     },
     "localname": "DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock": {
     "auth_ref": [
      "r152",
      "r193"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations, Disclosure [Text Block]",
        "terseLabel": "Assets and Liabilities of Disposal Group Held for Sale"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSale"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsCommonStockCash": {
     "auth_ref": [
      "r206"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Dividends declared on common stock"
       }
      }
     },
     "localname": "DividendsCommonStockCash",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r164",
      "r165",
      "r230",
      "r900",
      "r1038"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of dividends declared but unpaid on equity securities issued by the entity and outstanding.",
        "label": "Dividends Payable",
        "terseLabel": "Dividends and dividend equivalents payable",
        "verboseLabel": "Dividends declared on stock to be paid in subsequent period"
       }
      }
     },
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPayableLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Dividends Payable [Line Items]",
        "terseLabel": "Dividends Payable [Line Items]"
       }
      }
     },
     "localname": "DividendsPayableLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsPayableTable": {
     "auth_ref": [
      "r58"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table that contains information regarding dividends that have been declared but not paid as of the financial reporting date. This information may contain the amount, amount per share, declared date, and date to be paid.",
        "label": "Dividends Payable [Table]",
        "terseLabel": "Dividends Payable [Table]"
       }
      }
     },
     "localname": "DividendsPayableTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsPreferredStockCash": {
     "auth_ref": [
      "r5",
      "r206"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Preferred Stock, Cash",
        "negatedLabel": "Dividends declared on preferred stock"
       }
      }
     },
     "localname": "DividendsPreferredStockCash",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsShareBasedCompensation": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid cash, stock, and paid-in-kind dividends declared for award under share-based payment arrangement.",
        "label": "Dividend, Share-Based Payment Arrangement",
        "negatedTerseLabel": "Dividends attributable to dividend equivalents"
       }
      }
     },
     "localname": "DividendsShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r311",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r355",
      "r358",
      "r366",
      "r367",
      "r368",
      "r372",
      "r603",
      "r604",
      "r674",
      "r696",
      "r865"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "verboseLabel": "Basic loss per common share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic [Abstract]",
        "terseLabel": "Basic Loss per Common Share:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r311",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r358",
      "r366",
      "r367",
      "r368",
      "r372",
      "r603",
      "r604",
      "r674",
      "r696",
      "r865"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted loss per common share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted [Abstract]",
        "terseLabel": "Diluted Loss per Common Share:"
       }
      }
     },
     "localname": "EarningsPerShareDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDilutedLineItems": {
     "auth_ref": [
      "r358",
      "r359",
      "r366"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items]",
        "terseLabel": "Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items]"
       }
      }
     },
     "localname": "EarningsPerShareDilutedLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r354",
      "r369",
      "r370",
      "r371"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "(Loss) Earnings Per Common Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "auth_ref": [
      "r558"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost not yet recognized for nonvested award under share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized compensation cost"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r558"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Unrecognized compensation cost, period for recognition"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r17",
      "r283",
      "r306",
      "r307",
      "r308",
      "r341",
      "r342",
      "r343",
      "r345",
      "r351",
      "r353",
      "r373",
      "r434",
      "r435",
      "r512",
      "r560",
      "r561",
      "r562",
      "r574",
      "r575",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r602",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r632",
      "r701",
      "r702",
      "r703",
      "r720",
      "r793"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "auth_ref": [
      "r7",
      "r9",
      "r177",
      "r689"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities.",
        "label": "Proceeds from Equity Method Investment, Distribution",
        "terseLabel": "Distributions of income from preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis": {
     "auth_ref": [
      "r286",
      "r328",
      "r432",
      "r619"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by nonconsolidated equity method investee. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Axis]"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain": {
     "auth_ref": [
      "r286",
      "r328",
      "r432",
      "r619"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nonconsolidated equity method investee. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember": {
     "auth_ref": [
      "r927",
      "r944",
      "r966",
      "r1024"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nonconsolidated equity method investee or group of nonconsolidated investees. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee or Group of Investees [Member]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee or Group of Investees"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "auth_ref": [
      "r428"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Ownership Interest"
       }
      }
     },
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r381",
      "r426",
      "r929",
      "r965"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Equity Method Investments",
        "netLabel": "Equity Investments, carrying value",
        "verboseLabel": "Equity investments, at fair value"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsAndJointVenturesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Joint Ventures [Abstract]",
        "terseLabel": "Equity Method Investments and Joint Ventures [Abstract]"
       }
      }
     },
     "localname": "EquityMethodInvestmentsAndJointVenturesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityMethodInvestmentsDisclosureTextBlock": {
     "auth_ref": [
      "r264",
      "r430",
      "r433",
      "r911"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for equity method investments and joint ventures. Equity method investments are investments that give the investor the ability to exercise significant influence over the operating and financial policies of an investee. Joint ventures are entities owned and operated by a small group of businesses as a separate and specific business or project for the mutual benefit of the members of the group.",
        "label": "Equity Method Investments and Joint Ventures Disclosure [Text Block]",
        "terseLabel": "Equity Investments, at Fair Value"
       }
      }
     },
     "localname": "EquityMethodInvestmentsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EquityMethodInvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r930",
      "r1020",
      "r1022",
      "r1023"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of investments accounted under the equity method.",
        "label": "Equity Method Investments, Fair Value Disclosure",
        "terseLabel": "Fair Value",
        "verboseLabel": "Equity Investment, estimated fair value"
       }
      }
     },
     "localname": "EquityMethodInvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in the stock of an investee which is adjusted for the investor's share of the earnings or losses of the investee after the date of acquisition.",
        "label": "Equity Method Investments [Member]",
        "netLabel": "Equity investments",
        "terseLabel": "Equity investments"
       }
      }
     },
     "localname": "EquityMethodInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "auth_ref": [
      "r427"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information.",
        "label": "Equity Method Investments [Table Text Block]",
        "terseLabel": "Schedule of Investments in Unconsolidated Entities"
       }
      }
     },
     "localname": "EquityMethodInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ExternalCreditRatingByGroupingAxis": {
     "auth_ref": [
      "r70",
      "r592",
      "r967"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by external rating classified as investment grade or non investment grade.",
        "label": "External Credit Rating by Grouping [Axis]",
        "terseLabel": "External Credit Rating by Grouping [Axis]"
       }
      }
     },
     "localname": "ExternalCreditRatingByGroupingAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ExternalCreditRatingByGroupingDomain": {
     "auth_ref": [
      "r124"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "External credit rating classified as investment grade or non-investment grade.",
        "label": "External Credit Rating by Grouping [Domain]",
        "terseLabel": "External Credit Rating by Grouping [Domain]"
       }
      }
     },
     "localname": "ExternalCreditRatingByGroupingDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExtinguishmentOfDebtAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount of debt extinguished.",
        "label": "Extinguishment of Debt, Amount",
        "terseLabel": "Extinguishment of debt, amount"
       }
      }
     },
     "localname": "ExtinguishmentOfDebtAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "auth_ref": [
      "r613"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which net income is reported that includes unrealized gain (loss) from asset measured at fair value using unobservable input (level 3) and still held.",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "terseLabel": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [
      "r606",
      "r607",
      "r614"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r606",
      "r607",
      "r614"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "auth_ref": [
      "r20"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "terseLabel": "Schedule of Quantitative Information Regarding Significant and Unobservable Inputs used in Valuation of Level 3 Assets and Liabilities"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring Basis, Gain (Loss) Included in Earnings [Abstract]",
        "terseLabel": "Total (losses)/gains (realized/unrealized)",
        "verboseLabel": "Total gains (realized/unrealized)"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock": {
     "auth_ref": [
      "r219",
      "r220"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of gains or losses for the period included in earnings or resulted in a change to net assets, have arisen from the use of significant unobservable inputs (level 3) to measure the fair value of assets, liabilities, and financial instruments classified in shareholders' equity.",
        "label": "Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Table Text Block]",
        "terseLabel": "Schedule of Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r613"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r21"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class [Domain]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r21",
      "r133"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of assets using significant unobservable inputs (level 3). Such reconciliation, separately presenting changes during the period, at a minimum, may include, but is not limited to: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income, and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r21",
      "r133"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Assets"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r131",
      "r133"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class [Axis]"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r131",
      "r134",
      "r135"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r131",
      "r134"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Schedule of Assets and Liabilities of Consolidated VIE's",
        "verboseLabel": "Schedule of Carrying Value and Estimated Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r481",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r607",
      "r639",
      "r640",
      "r641",
      "r873",
      "r874",
      "r879",
      "r880",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "auth_ref": [
      "r133",
      "r217"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of liability.",
        "label": "Liability Class [Axis]",
        "terseLabel": "Liability Class [Axis]"
       }
      }
     },
     "localname": "FairValueByLiabilityClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r606",
      "r607",
      "r609",
      "r610",
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]",
        "terseLabel": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r605"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r481",
      "r517",
      "r522",
      "r607",
      "r639",
      "r879",
      "r880",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r481",
      "r517",
      "r522",
      "r607",
      "r640",
      "r873",
      "r874",
      "r879",
      "r880",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r481",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r607",
      "r641",
      "r873",
      "r874",
      "r879",
      "r880",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r613"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations": {
     "auth_ref": [
      "r131",
      "r218"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of subordinated debt obligations including, but not limited to, subordinated loan, subordinated bond, subordinated debenture or junior debt.",
        "label": "Subordinated Debt Obligations, Fair Value Disclosure",
        "terseLabel": "Subordinated debentures, estimated fair value"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "auth_ref": [
      "r21"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents classes of liabilities measured and disclosed at fair value.",
        "label": "Fair Value by Liability Class [Domain]",
        "terseLabel": "Fair Value by Liability Class [Domain]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r21",
      "r133"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueLiabilityRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "auth_ref": [
      "r613"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which net income is reported that includes unrealized gain (loss) from liability measured at fair value using unobservable input (level 3) and still held.",
        "label": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "terseLabel": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueLiabilityRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "auth_ref": [
      "r611"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "auth_ref": [
      "r132"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "auth_ref": [
      "r132"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "auth_ref": [
      "r132"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Settlements",
        "negatedLabel": "Paydowns/Distributions"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "auth_ref": [
      "r612"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "negatedLabel": "Transfers out"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r21"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodEndLabel": "Balance at the end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "auth_ref": [
      "r611"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements": {
     "auth_ref": [
      "r132"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlements of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements",
        "negatedLabel": "Paydowns"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "auth_ref": [
      "r21"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
        "periodEndLabel": "Balance at the end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r481",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r639",
      "r640",
      "r641",
      "r873",
      "r874",
      "r879",
      "r880",
      "r881"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r605",
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Fair Value, Measurements, Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "auth_ref": [
      "r12",
      "r30"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments.",
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueOptionChangesInFairValueGainLoss1": {
     "auth_ref": [
      "r138"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings.",
        "label": "Fair Value, Option, Changes in Fair Value, Gain (Loss)",
        "terseLabel": "Change in fair value, gain (loss)"
       }
      }
     },
     "localname": "FairValueOptionChangesInFairValueGainLoss1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionPartialElectionDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Option, Partial Election Disclosures [Abstract]",
        "terseLabel": "Fair Value Option"
       }
      }
     },
     "localname": "FairValueOptionPartialElectionDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "auth_ref": [
      "r611"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which net income is reported that includes gain (loss) from asset measured at fair value using unobservable input (level 3).",
        "label": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "terseLabel": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "auth_ref": [
      "r114",
      "r116",
      "r129"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
        "terseLabel": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]"
       }
      }
     },
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r436",
      "r438",
      "r439",
      "r440",
      "r441",
      "r445",
      "r449",
      "r450",
      "r492",
      "r509",
      "r600",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r654",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r694",
      "r871",
      "r914",
      "r915",
      "r916",
      "r917",
      "r918",
      "r919",
      "r920",
      "r961",
      "r962",
      "r963",
      "r964"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial Assets:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial Liabilities:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue": {
     "auth_ref": [
      "r144"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value as of the balance sheet date of firm holdings in mortgages, mortgage backed securities (investment instruments that represent ownership of an undivided interest in a group of mortgages, where principal and interest from the individual mortgages are used to pay investors' principal and interest on the mortgage backed security) and asset-backed securities that are primarily paid from the cash flows of a discrete pool of receivables or other financial assets (such as credit-card receivables), either fixed or revolving, that by their terms convert into cash within a finite time period. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings.",
        "label": "Financial Instruments, Owned, Mortgages, Mortgage-Backed and Asset-Backed Securities, at Fair Value",
        "terseLabel": "Residential loans, at fair value",
        "verboseLabel": "Residential loans"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableSignificantPurchases": {
     "auth_ref": [
      "r69",
      "r437"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in financing receivable from purchase. Excludes net investment in lease.",
        "label": "Financing Receivable, Purchase",
        "terseLabel": "Purchase of residential loans"
       }
      }
     },
     "localname": "FinancingReceivableSignificantPurchases",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r870"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "netLabel": "90 days or greater delinquent",
        "terseLabel": "90 Days or greater past due",
        "verboseLabel": "Greater than 90 days past due"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r261",
      "r439",
      "r870"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by period in which financial asset is past due or not past due.",
        "label": "Financial Asset, Aging [Axis]",
        "terseLabel": "Financial Asset, Period Past Due [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [
      "r261",
      "r439",
      "r870"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due or not past due. For past due, element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less than [high end numeric value] [date measure] Past Due [Member] formats.",
        "label": "Financial Asset, Aging [Domain]",
        "terseLabel": "Financial Asset, Period Past Due [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FixturesAndEquipmentGross": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation of fixtures and equipment. Includes, but is not limited to, machinery, equipment, and engines.",
        "label": "Fixtures and Equipment, Gross",
        "terseLabel": "Furniture, fixture and equipment"
       }
      }
     },
     "localname": "FixturesAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfDerivatives": {
     "auth_ref": [
      "r9",
      "r239",
      "r781",
      "r782",
      "r783",
      "r784"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings.",
        "label": "Gain (Loss) on Sale of Derivatives",
        "terseLabel": "Realized Gains (Losses)"
       }
      }
     },
     "localname": "GainLossOnSaleOfDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfOtherInvestments": {
     "auth_ref": [
      "r9"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) included in earnings for investments classified as other.",
        "label": "Gain (Loss) on Sale of Other Investments",
        "negatedLabel": "Realized gains, net",
        "terseLabel": "Realized gains, net"
       }
      }
     },
     "localname": "GainLossOnSaleOfOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfProperties": {
     "auth_ref": [
      "r941",
      "r970",
      "r971"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the carrying value and the sale price of real estate or properties that were intended to be sold or held for capital appreciation or rental income. This element refers to the gain (loss) included in earnings and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Gain (Loss) on Sale of Properties",
        "negatedTerseLabel": "Gain on sale of real estate",
        "terseLabel": "Gain on sale of real estate"
       }
      }
     },
     "localname": "GainLossOnSaleOfProperties",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r9",
      "r239"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes.",
        "label": "Gain (Loss) on Sales of Loans, Net",
        "terseLabel": "Sale generated a net gain"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "auth_ref": [
      "r9",
      "r74",
      "r75"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity.",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "negatedLabel": "Loss on extinguishment of debt",
        "negatedTerseLabel": "Loss on extinguishment of collateralized debt obligations and mortgages payable on real estate",
        "terseLabel": "Loss on extinguishment of collateralized debt obligations and mortgages payable on real estate"
       }
      }
     },
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnSalesOfInvestmentRealEstate": {
     "auth_ref": [
      "r258",
      "r259",
      "r260",
      "r938",
      "r939",
      "r941",
      "r1036",
      "r1048"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from sales and other disposals of real estate owned for investment purposes.",
        "label": "Gains (Losses) on Sales of Investment Real Estate",
        "terseLabel": "Gains on sale of real estate"
       }
      }
     },
     "localname": "GainsLossesOnSalesOfInvestmentRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r181",
      "r777"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line.",
        "label": "General and Administrative Expense",
        "terseLabel": "General and administrative expenses"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "General and Administrative Expense [Abstract]",
        "terseLabel": "GENERAL, ADMINISTRATIVE AND OPERATING EXPENSES:"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "auth_ref": [
      "r66",
      "r843"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the percentage that a specified dollar value on the balance sheet or income statement in the period from one or more specified geographic areas is to a corresponding consolidated, segment, or product line amount. Risk is the materially adverse effects of economic decline or antagonistic political actions resulting in loss of assets, sales volume, labor supply, or source of materials and supplies in a US state or a specified country, continent, or region such as EMEA (Europe, Middle East, Africa).",
        "label": "Geographic Concentration Risk [Member]",
        "terseLabel": "Geographic Concentration Risk"
       }
      }
     },
     "localname": "GeographicConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GranteeStatusAxis": {
     "auth_ref": [
      "r525",
      "r527",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by status of recipient to whom award is granted.",
        "label": "Grantee Status [Axis]",
        "terseLabel": "Grantee Status [Axis]"
       }
      }
     },
     "localname": "GranteeStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_GranteeStatusDomain": {
     "auth_ref": [
      "r525",
      "r527",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Status of recipient to whom award is granted.",
        "label": "Grantee Status [Domain]",
        "terseLabel": "Grantee Status [Domain]"
       }
      }
     },
     "localname": "GranteeStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r18",
      "r591"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation [Axis]"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation [Domain]"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ImpairmentLossesRelatedToRealEstatePartnerships": {
     "auth_ref": [
      "r190",
      "r195"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impairment losses measured as the amount by which the carrying amount of the business or real estate partnerships exceeds the fair value of the business or partnership.",
        "label": "Impairment Losses Related to Real Estate Partnerships",
        "negatedTerseLabel": "Impairment of real estate",
        "terseLabel": "Impairment of real estate"
       }
      }
     },
     "localname": "ImpairmentLossesRelatedToRealEstatePartnerships",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r212",
      "r328",
      "r344",
      "r376",
      "r382",
      "r384",
      "r386",
      "r432",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r604",
      "r619",
      "r690",
      "r867",
      "r975"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations including portion attributable to the noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "totalLabel": "NET LOSS"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r9",
      "r177",
      "r234",
      "r379",
      "r426",
      "r689"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss).",
        "label": "Income (Loss) from Equity Method Investments",
        "terseLabel": "Income from equity investments"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToNoncontrollingInterestBeforeIncomeTax": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale attributable to noncontrolling interest. Excludes discontinued operations.",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, Attributable to Noncontrolling Interest, before Income Tax",
        "negatedTerseLabel": "Pretax loss of disposal group attributable to non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToNoncontrollingInterestBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax": {
     "auth_ref": [
      "r199"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale attributable to parent. Excludes discontinued operations.",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, Attributable to Parent, before Income Tax",
        "totalLabel": "Pretax loss of disposal group attributable to Company's common stockholders"
       }
      }
     },
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax": {
     "auth_ref": [
      "r198"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale including the portion attributable to the noncontrolling interest. Excludes discontinued operations.",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, before Income Tax",
        "terseLabel": "Pretax loss of disposal group held for sale"
       }
      }
     },
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSalePretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]",
        "terseLabel": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable": {
     "auth_ref": [
      "r13",
      "r22",
      "r34",
      "r153",
      "r154",
      "r155",
      "r156",
      "r157",
      "r158",
      "r160",
      "r161",
      "r162",
      "r197"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table]",
        "terseLabel": "Disposal Groups, Including Discontinued Operations [Table]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]",
        "terseLabel": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r329",
      "r564",
      "r566",
      "r567",
      "r572",
      "r576",
      "r580",
      "r581",
      "r582",
      "r717"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r257",
      "r263",
      "r352",
      "r353",
      "r380",
      "r565",
      "r577",
      "r699"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": -1.0
      },
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "totalLabel": "Total income tax (benefit)/provision",
        "verboseLabel": "Income tax (benefit) expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r53",
      "r57"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income Taxes Paid",
        "terseLabel": "Cash paid for income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingAssets": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 1.0,
       "parentTag": "nymt_IncreaseDecreaseInNetAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of assets used to generate operating income.",
        "label": "Increase (Decrease) in Operating Assets",
        "totalLabel": "Total Assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingLiabilities": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 2.0,
       "parentTag": "nymt_IncreaseDecreaseInNetAssets",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities that result from activities that generate operating income.",
        "label": "Increase (Decrease) in Operating Liabilities",
        "totalLabel": "Total Liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets after deduction of operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets and Liabilities, Net",
        "negatedTerseLabel": "Changes in operating assets and liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingCapitalNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncreaseDecreaseInOperatingLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Operating Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "terseLabel": "Increase (Decrease) in Stockholders' Equity [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r237",
      "r1053"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      },
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein.",
        "label": "Interest and Dividend Income, Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Interest income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "auth_ref": [
      "r1047",
      "r1052"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities.",
        "label": "Interest and Dividend Income, Securities, Operating",
        "verboseLabel": "Investment securities available for sale"
       }
      }
     },
     "localname": "InterestAndDividendIncomeSecurities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndOtherIncome": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of interest income and other income recognized during the period. Included in this element is interest derived from investments in debt securities, cash and cash equivalents, and other investments which reflect the time value of money or transactions in which the payments are for the use or forbearance of money and other income from ancillary business-related activities (that is, excluding major activities considered part of the normal operations of the business).",
        "label": "Interest and Other Income",
        "terseLabel": "Interest income"
       }
      }
     },
     "localname": "InterestAndOtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r141",
      "r245",
      "r309",
      "r377",
      "r627",
      "r778",
      "r901",
      "r1046"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      },
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r243"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all borrowings.",
        "label": "Interest Expense, Borrowings",
        "terseLabel": "Interest expense",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseMediumTermNotes": {
     "auth_ref": [
      "r244"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense on medium-Term notes.",
        "label": "Interest Expense, Medium-term Notes",
        "terseLabel": "Senior unsecured notes"
       }
      }
     },
     "localname": "InterestExpenseMediumTermNotes",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "auth_ref": [
      "r244"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on subordinated notes and debentures. Includes amortization of expenses incurred in the issuance of subordinated notes and debentures.",
        "label": "Interest Expense, Subordinated Notes and Debentures",
        "terseLabel": "Subordinated debentures"
       }
      }
     },
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of interest income and expense, including, but not limited to, interest income and expense from investments, loans, and securities.",
        "label": "Interest Income and Interest Expense Disclosure [Table Text Block]",
        "terseLabel": "Schedule of Components of Interest Income and Interest Expense",
        "verboseLabel": "Schedule of Interest Expense from Convertible Debt"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtTables",
      "http://nymtrust.com/role/NetInterestIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTextBlock": {
     "auth_ref": [
      "r236"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for interest income and interest expense for enterprises that derive a significant portion of their revenue from interest collected on investments, loans, and securities.",
        "label": "Interest Income and Interest Expense Disclosure [Text Block]",
        "terseLabel": "Net Interest Income"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r238"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income (Expense), Net",
        "totalLabel": "Total net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeOther": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income earned from interest bearing assets classified as other.",
        "label": "Interest Income, Other",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "InterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesMortgageBacked": {
     "auth_ref": [
      "r242"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securitized, pass-through debt securities collateralized by real estate mortgage loans.",
        "label": "Interest Income, Securities, Mortgage-Backed",
        "terseLabel": "Interest income"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesMortgageBacked",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r317",
      "r321",
      "r322"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Cash paid for interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r147",
      "r1038"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables.",
        "label": "Interest Payable",
        "terseLabel": "Accrued interest payable"
       }
      }
     },
     "localname": "InterestPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateCapMember": {
     "auth_ref": [
      "r857"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract in which the cap writer, in return for a premium, agrees to limit, or cap, the cap holder's risk associated with an increase in interest rates. If rates go above a specified interest-rate-level (the strike price or the cap rate), the cap holder is entitled to receive cash payments equal to the excess of the market rate over the strike price multiplied by the notional principal amount.",
        "label": "Interest Rate Cap [Member]",
        "terseLabel": "Interest rate caps"
       }
      }
     },
     "localname": "InterestRateCapMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestRateFairValueHedgeDerivativeAtFairValueNet": {
     "auth_ref": [
      "r10"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of all derivatives designated as interest rate fair value hedging instruments.",
        "label": "Interest Rate Fair Value Hedge Derivative at Fair Value, Net",
        "terseLabel": "Fair value of the interest rate cap contract"
       }
      }
     },
     "localname": "InterestRateFairValueHedgeDerivativeAtFairValueNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r857",
      "r897",
      "r898"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest rate swaps",
        "verboseLabel": "Interest rate swaps"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r934",
      "r1051"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable.",
        "label": "Interest Receivable",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "InterestReceivable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentBuildingAndBuildingImprovements": {
     "auth_ref": [
      "r1037"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate of the carrying amounts as of the balance sheet date of investments in building and building improvements.",
        "label": "Investment Building and Building Improvements",
        "terseLabel": "Building and improvements"
       }
      }
     },
     "localname": "InvestmentBuildingAndBuildingImprovements",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss": {
     "auth_ref": [
      "r716"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated undistributed earnings (deficit) from long-term capital gain (loss) of investment company.",
        "label": "Investment Company, Distributable Earnings (Loss), Accumulated Long-Term Capital Gain (Loss)",
        "terseLabel": "Capital losses"
       }
      }
     },
     "localname": "InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r733",
      "r735",
      "r736",
      "r739",
      "r742",
      "r799",
      "r802",
      "r805",
      "r809",
      "r810",
      "r821",
      "r822",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type [Axis]"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r733",
      "r735",
      "r736",
      "r739",
      "r742",
      "r799",
      "r802",
      "r805",
      "r809",
      "r810",
      "r821",
      "r822",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]",
        "terseLabel": "Multi-Family Preferred Equity Ownership Interests",
        "verboseLabel": "Investments [Domain]"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]",
        "terseLabel": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r224",
      "r246",
      "r248",
      "r266",
      "r390",
      "r392",
      "r616",
      "r617"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for investments in certain debt and equity securities.",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "terseLabel": "Investment Securities Available for Sale, at Fair Value"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Land": {
     "auth_ref": [
      "r931"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depletion of real estate held for productive use, excluding land held for sale.",
        "label": "Land",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "Land",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r35",
      "r328",
      "r432",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r585",
      "r588",
      "r589",
      "r619",
      "r751",
      "r866",
      "r903",
      "r975",
      "r1026",
      "r1027"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total Liabilities",
        "verboseLabel": "Liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r174",
      "r233",
      "r688",
      "r888",
      "r944",
      "r966",
      "r1024"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total Liabilities and Equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "LIABILITIES AND EQUITY"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "auth_ref": [
      "r131"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial and nonfinancial obligations.",
        "label": "Liabilities, Fair Value Disclosure",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities carried at fair value",
        "verboseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r196",
      "r285",
      "r286"
     ],
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities",
        "totalLabel": "Total liabilities of disposal group held for sale"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleCarryingValuesofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "auth_ref": [
      "r1",
      "r153",
      "r159",
      "r194",
      "r196",
      "r285",
      "r286"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities, Current",
        "terseLabel": "Liabilities of disposal group held for sale"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansPayableFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of contractual obligation to pay money on demand or on fixed or determinable dates.",
        "label": "Loans Payable, Fair Value Disclosure",
        "terseLabel": "Consolidated SLST CDOs"
       }
      }
     },
     "localname": "LoansPayableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r31",
      "r231",
      "r480",
      "r495",
      "r873",
      "r874",
      "r1039"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation.",
        "label": "Long-Term Debt",
        "netLabel": "Mortgage Payable, Net",
        "terseLabel": "Long-term debt",
        "totalLabel": "Total",
        "verboseLabel": "Mortgages payable on operating real estate, carrying value"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtByMaturityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Long-term Debt, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "LongTermDebtByMaturityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long-Term Debt, Fair Value",
        "terseLabel": "Mortgages payable on operating real estate, estimated fair value"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "auth_ref": [
      "r11",
      "r340",
      "r981"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, after Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "auth_ref": [
      "r11",
      "r340",
      "r485"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year One",
        "terseLabel": "2024",
        "verboseLabel": "2024"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "auth_ref": [
      "r11",
      "r340",
      "r485"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Five",
        "terseLabel": "2028"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "auth_ref": [
      "r11",
      "r340",
      "r485"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Four",
        "terseLabel": "2027",
        "verboseLabel": "2027"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "auth_ref": [
      "r11",
      "r340",
      "r485"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Three",
        "terseLabel": "2026",
        "verboseLabel": "2026"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "auth_ref": [
      "r11",
      "r340",
      "r485"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Two",
        "terseLabel": "2025",
        "verboseLabel": "2025"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear": {
     "auth_ref": [
      "r946"
     ],
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in remainder of current fiscal year.",
        "label": "Long-Term Debt, Maturity, Remainder of Fiscal Year",
        "terseLabel": "2023",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMeasurementInput": {
     "auth_ref": [
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of input used to measure long-term debt.",
        "label": "Long-Term Debt, Measurement Input",
        "terseLabel": "Debt, measurement input"
       }
      }
     },
     "localname": "LongTermDebtMeasurementInput",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "us-gaap_LongTermDebtTextBlock": {
     "auth_ref": [
      "r201"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-term debt.",
        "label": "Long-Term Debt [Text Block]",
        "terseLabel": "Collateralized Debt Obligations"
       }
      }
     },
     "localname": "LongTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LongTermNotesPayable": {
     "auth_ref": [
      "r37"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of notes payable (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion.",
        "label": "Notes Payable, Noncurrent",
        "terseLabel": "Mortgages payable on real estate, net"
       }
      }
     },
     "localname": "LongTermNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-Term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type [Axis]"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r37",
      "r73"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Long-Term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type [Domain]"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Maturity30To90DaysMember": {
     "auth_ref": [
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than 29 days but fewer than 91 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity 30 to 90 Days [Member]",
        "terseLabel": "Over 30 day to 90 days"
       }
      }
     },
     "localname": "Maturity30To90DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MaturityOver90DaysMember": {
     "auth_ref": [
      "r333"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of over 90 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Greater than 90 Days [Member]",
        "terseLabel": "Over 90 days"
       }
      }
     },
     "localname": "MaturityOver90DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MaturityUpTo30DaysMember": {
     "auth_ref": [
      "r331"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of up to 30 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Less than 30 Days [Member]",
        "terseLabel": "Within 30 days"
       }
      }
     },
     "localname": "MaturityUpTo30DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputAppraisedValueMember": {
     "auth_ref": [
      "r1021"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using assessed value of property.",
        "label": "Measurement Input, Appraised Value [Member]",
        "terseLabel": "Property value"
       }
      }
     },
     "localname": "MeasurementInputAppraisedValueMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "auth_ref": [
      "r1021"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using interest rate to determine present value of future cash flows.",
        "label": "Measurement Input, Discount Rate [Member]",
        "terseLabel": "Discount rate"
       }
      }
     },
     "localname": "MeasurementInputDiscountRateMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputLossSeverityMember": {
     "auth_ref": [
      "r1021"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using loss, including, but not limited to, interest and write-down of principal, incurred on defaulted security as proportion of principal balance.",
        "label": "Measurement Input, Loss Severity [Member]",
        "terseLabel": "Loss severity"
       }
      }
     },
     "localname": "MeasurementInputLossSeverityMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "auth_ref": [
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Axis]",
        "terseLabel": "Measurement Input Type [Axis]"
       }
      }
     },
     "localname": "MeasurementInputTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Domain]",
        "terseLabel": "Measurement Input Type [Domain]"
       }
      }
     },
     "localname": "MeasurementInputTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MinorityInterest": {
     "auth_ref": [
      "r41",
      "r232",
      "r328",
      "r432",
      "r458",
      "r460",
      "r461",
      "r462",
      "r465",
      "r466",
      "r619",
      "r687",
      "r755"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of equity (deficit) attributable to noncontrolling interest. Excludes temporary equity.",
        "label": "Equity, Attributable to Noncontrolling Interest",
        "terseLabel": "Non-controlling interests",
        "verboseLabel": "Non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "MinorityInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestChangeInRedemptionValue": {
     "auth_ref": [
      "r33",
      "r79",
      "r80",
      "r89"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in noncontrolling interest during the period as a result of a change in the redemption value of redeemable noncontrolling interest.",
        "label": "Noncontrolling Interest, Change in Redemption Value",
        "terseLabel": "Adjustment of redeemable non-controlling interest to estimated redemption value"
       }
      }
     },
     "localname": "MinorityInterestChangeInRedemptionValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "auth_ref": [
      "r206"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders.",
        "label": "Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders",
        "negatedTerseLabel": "Decrease in non-controlling interest related to distributions from Consolidated VIEs"
       }
      }
     },
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of securitized, pay-through debt securities collateralized by real estate mortgage loans classified as held-to-maturity.",
        "label": "Debt Security, Mortgage-Backed, Held-to-Maturity, Fair Value Disclosure",
        "verboseLabel": "Residential mortgage loans, estimated fair value"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember": {
     "auth_ref": [
      "r954",
      "r957",
      "r958",
      "r959",
      "r960",
      "r986"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities collateralized by real estate mortgage loans (mortgages), issued by non-governmental sponsored enterprises.",
        "label": "Mortgage-Backed Securities, Issued by Private Enterprises [Member]",
        "terseLabel": "Non-Agency RMBS"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageLoansOnRealEstate": {
     "auth_ref": [
      "r838"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate",
        "netLabel": "Value of Assets Pledged",
        "terseLabel": "Carrying value",
        "verboseLabel": "Fair Value"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgagesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A loan to finance the purchase of real estate where the lender has a lien on the property as collateral for the loan.",
        "label": "Mortgages [Member]",
        "terseLabel": "Mortgage Note"
       }
      }
     },
     "localname": "MortgagesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MovementInMinorityInterestRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Equity, Attributable to Noncontrolling Interest [Roll Forward]",
        "terseLabel": "Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward]"
       }
      }
     },
     "localname": "MovementInMinorityInterestRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r320"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash Flows from Financing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r320"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash Flows from Investing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r188",
      "r189",
      "r190"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash (used in) provided by operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash Flows from Operating Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r178",
      "r190",
      "r235",
      "r286",
      "r301",
      "r304",
      "r308",
      "r328",
      "r344",
      "r346",
      "r347",
      "r348",
      "r349",
      "r352",
      "r353",
      "r364",
      "r376",
      "r382",
      "r384",
      "r386",
      "r432",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r604",
      "r619",
      "r693",
      "r774",
      "r791",
      "r792",
      "r867",
      "r901",
      "r975"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss)",
        "terseLabel": "Net loss attributable to Company",
        "totalLabel": "NET LOSS ATTRIBUTABLE TO COMPANY",
        "verboseLabel": "Net loss attributable to Company"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r109",
      "r214",
      "r301",
      "r304",
      "r352",
      "r353",
      "r692",
      "r937"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "negatedLabel": "Net loss attributable to non-controlling interest in Consolidated VIEs",
        "negatedTerseLabel": "Net loss attributable to non-controlling interests",
        "terseLabel": "Net income attributable to noncontrolling interest",
        "verboseLabel": "Net loss attributable to non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToRedeemableNoncontrollingInterest": {
     "auth_ref": [
      "r179"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to redeemable noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Redeemable Noncontrolling Interest",
        "terseLabel": "Net loss allocated to redeemable non-controlling interest"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r314",
      "r346",
      "r347",
      "r348",
      "r349",
      "r355",
      "r356",
      "r365",
      "r368",
      "r376",
      "r382",
      "r384",
      "r386",
      "r867"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "terseLabel": "Net income attributable to company's common stockholders",
        "totalLabel": "Net loss attributable to Company's common stockholders",
        "verboseLabel": "NET LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r314",
      "r357",
      "r360",
      "r361",
      "r362",
      "r363",
      "r365",
      "r368"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "totalLabel": "Net loss attributable to Company's common stockholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest": {
     "auth_ref": [
      "r32",
      "r214",
      "r215"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after income tax of income (loss) including the portion attributable to nonredeemable noncontrolling interest. Excludes the portion attributable to redeemable noncontrolling interest recognized as temporary equity.",
        "label": "Net Income (Loss), Including Portion Attributable to Nonredeemable Noncontrolling Interest",
        "terseLabel": "Net loss allocated to redeemable non-controlling interest"
       }
      }
     },
     "localname": "NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Summary of Recent Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]",
        "terseLabel": "Noncash Investing and Financing Items [Abstract]"
       }
      }
     },
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoncontrollingInterestInVariableInterestEntity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of equity (net assets) in a variable interest entity (VIE) not attributable, directly or indirectly, to the parent entity. That is, this is the portion of equity in a VIE that is attributable to the noncontrolling interest (previously referred to as minority interest).",
        "label": "Noncontrolling Interest in Variable Interest Entity",
        "terseLabel": "Noncontrolling interest in VIE"
       }
      }
     },
     "localname": "NoncontrollingInterestInVariableInterestEntity",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance": {
     "auth_ref": [
      "r14",
      "r89",
      "r213"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders.",
        "label": "Noncontrolling Interest, Increase from Subsidiary Equity Issuance",
        "verboseLabel": "Contributions"
       }
      }
     },
     "localname": "NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestMember": {
     "auth_ref": [
      "r98",
      "r512",
      "r947",
      "r948",
      "r949",
      "r1049"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest.",
        "label": "Noncontrolling Interest [Member]",
        "terseLabel": "Non-Controlling Interest in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncontrollingInterestMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Not Designated as Hedging Instrument [Member]",
        "terseLabel": "Not Designated as Hedging Instrument"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestIncomeOther": {
     "auth_ref": [
      "r240"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of noninterest income derived from certain activities and assets including (for example): (1) venture capital investments; (2) bank owned life insurance; (3) foreign currency transactions; and (4) mortgage servicing rights.",
        "label": "Noninterest Income, Other",
        "terseLabel": "Other (loss) income"
       }
      }
     },
     "localname": "NoninterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotDesignatedAsHedgingInstrumentTradingMember": {
     "auth_ref": [
      "r19"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument, not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP), used for trading purposes for exposure to risk.",
        "label": "Not Designated as Hedging Instrument, Trading [Member]",
        "terseLabel": "Trading"
       }
      }
     },
     "localname": "NotDesignatedAsHedgingInstrumentTradingMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesPayable": {
     "auth_ref": [
      "r31",
      "r231",
      "r1039"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer.",
        "label": "Notes Payable",
        "verboseLabel": "Mortgages payable on real estate, net in Consolidated VIEs"
       }
      }
     },
     "localname": "NotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OffsettingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "localname": "OffsettingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "totalLabel": "Total general, administrative and operating expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r376",
      "r382",
      "r384",
      "r386",
      "r867"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating Income (Loss)",
        "totalLabel": "LOSS FROM OPERATIONS BEFORE INCOME TAXES"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r630"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "terseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r631"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes operating lease liability.",
        "label": "Operating Lease, Liability, Statement of Financial Position [Extensible Enumeration]",
        "terseLabel": "Operating Lease, Liability, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r629"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r631"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes operating lease right-of-use asset.",
        "label": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "terseLabel": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_OperatingLossCarryforwards": {
     "auth_ref": [
      "r96"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws.",
        "label": "Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforwards"
       }
      }
     },
     "localname": "OperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLossCarryforwardsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Operating Loss Carryforwards [Line Items]",
        "terseLabel": "Operating Loss Carryforwards [Line Items]"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLossCarryforwardsTable": {
     "auth_ref": [
      "r95"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting pertinent information, such as tax authority, amounts, and expiration dates, of net operating loss carryforwards, including an assessment of the likelihood of utilization.",
        "label": "Operating Loss Carryforwards [Table]",
        "terseLabel": "Operating Loss Carryforwards [Table]"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "terseLabel": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r151",
      "r211",
      "r708",
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Organization"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/Organization"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r226",
      "r288",
      "r679",
      "r903"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 7.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other assets",
        "totalLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r114",
      "r129"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherAssetsMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other miscellaneous assets.",
        "label": "Other Assets, Miscellaneous",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherAssetsMiscellaneous",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r6",
      "r15",
      "r212",
      "r302",
      "r305"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "totalLabel": "TOTAL OTHER COMPREHENSIVE (LOSS) INCOME"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Tax [Abstract]",
        "terseLabel": "OTHER COMPREHENSIVE (LOSS) INCOME"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r299",
      "r300",
      "r425"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "terseLabel": "(Decrease) increase in fair value of available for sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCostAndExpenseOperating": {
     "auth_ref": [
      "r180",
      "r698"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of other operating cost and expense items that are associated with the entity's normal revenue producing operation.",
        "label": "Other Cost and Expense, Operating",
        "terseLabel": "Portfolio operating expenses"
       }
      }
     },
     "localname": "OtherCostAndExpenseOperating",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherIncomeAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income and Expenses [Abstract]"
       }
      }
     },
     "localname": "OtherIncomeAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherInvestments": {
     "auth_ref": [
      "r930"
     ],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments classified as other.",
        "label": "Other Investments",
        "terseLabel": "Investment amount"
       }
      }
     },
     "localname": "OtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r148",
      "r676",
      "r747",
      "r748",
      "r903",
      "r1043"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "netLabel": "Other liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other liabilities.",
        "label": "Other Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Other Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherNonoperatingIncomeAndExpenseTextBlock": {
     "auth_ref": [
      "r312",
      "r313"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the components of non-operating income or non-operating expense, including, but not limited to, amounts earned from dividends, interest on securities, gain (loss) on securities sold, equity earnings of unconsolidated affiliates, gain (loss) on sales of business, interest expense and other miscellaneous income or expense items.",
        "label": "Other Nonoperating Income and Expense [Text Block]",
        "terseLabel": "Other (Loss) Income"
       }
      }
     },
     "localname": "OtherNonoperatingIncomeAndExpenseTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherLossIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "auth_ref": [
      "r184"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Income (Expense)",
        "totalLabel": "Total other (loss) income"
       }
      }
     },
     "localname": "OtherNonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherLossIncomeScheduleofOtherLossIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherOperatingIncomeExpenseNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of other operating income and expenses, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operations.",
        "label": "Other Operating Income (Expense), Net",
        "totalLabel": "Total non-interest income (loss)"
       }
      }
     },
     "localname": "OtherOperatingIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherRealEstate": {
     "auth_ref": [
      "r145"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of other real estate not separately disclosed, including, but not limited to, real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. This does not include real estate assets taken in settlement of troubled loans through surrender or foreclosure.",
        "label": "Other Real Estate",
        "terseLabel": "Other assets in consolidated multi-family properties"
       }
      }
     },
     "localname": "OtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherReceivables": {
     "auth_ref": [
      "r293",
      "r761"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount due from parties in nontrade transactions, classified as other.",
        "label": "Other Receivables",
        "terseLabel": "Other receivables"
       }
      }
     },
     "localname": "OtherReceivables",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ParentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of equity, or net assets, in the consolidated entity attributable, directly or indirectly, to the parent. Excludes noncontrolling interests.",
        "label": "Parent [Member]",
        "terseLabel": "Total Company's Stockholders' Equity"
       }
      }
     },
     "localname": "ParentMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash outflow or inflow from derivative instruments during the period, which are classified as investing activities, excluding those designated as hedging instruments.",
        "label": "Payments for (Proceeds from) Derivative Instrument, Investing Activities",
        "negatedTerseLabel": "Net payments received from derivative instruments"
       }
      }
     },
     "localname": "PaymentsForProceedsFromDerivativeInstrumentInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r51"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to reacquire common stock during the period.",
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Repurchases of common stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock": {
     "auth_ref": [
      "r51"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to reacquire preferred stock during the period.",
        "label": "Payments for Repurchase of Preferred Stock and Preference Stock",
        "negatedTerseLabel": "Repurchases of preferred stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfPreferredStockAndPreferenceStock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r51"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedLabel": "Dividends paid on common stock and dividend equivalents"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock": {
     "auth_ref": [
      "r51"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Preferred Stock and Preference Stock",
        "negatedLabel": "Dividends paid on preferred stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsPreferredStockAndPreferenceStock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r48",
      "r315",
      "r391"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments to Acquire Debt Securities, Available-for-Sale",
        "negatedLabel": "Purchases of investment securities"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireEquityMethodInvestments": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the purchase of or advances to an equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Payments to Acquire Equity Method Investments",
        "negatedLabel": "Funding of preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "PaymentsToAcquireEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireInterestInJointVenture": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the investment in or advances to an entity in which the reporting entity shares control of the entity with another party or group.",
        "label": "Payments to Acquire Interest in Joint Venture",
        "negatedTerseLabel": "Funding of joint venture investments in Consolidated VIEs"
       }
      }
     },
     "localname": "PaymentsToAcquireInterestInJointVenture",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireInvestments": {
     "auth_ref": [
      "r186"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the purchase of all investments (debt, security, other) during the period.",
        "label": "Payments to Acquire Investments",
        "negatedLabel": "Purchases of residential loans"
       }
      }
     },
     "localname": "PaymentsToAcquireInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireOtherInvestments": {
     "auth_ref": [
      "r186"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investments classified as other.",
        "label": "Payments to Acquire Other Investments",
        "negatedLabel": "Purchases of other assets"
       }
      }
     },
     "localname": "PaymentsToAcquireOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r187"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedTerseLabel": "Purchases of and capital expenditures on real estate"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PerformanceSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement awarded for meeting performance target.",
        "label": "Performance Shares [Member]",
        "terseLabel": "Performance Share Awards",
        "verboseLabel": "PSUs"
       }
      }
     },
     "localname": "PerformanceSharesMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r987",
      "r988",
      "r989",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994",
      "r995",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [
      "r987",
      "r988",
      "r989",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994",
      "r995",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockDividendRatePercentage": {
     "auth_ref": [
      "r498",
      "r801",
      "r804",
      "r806",
      "r824"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage rate used to calculate dividend payments on preferred stock.",
        "label": "Preferred Stock, Dividend Rate, Percentage",
        "terseLabel": "Preferred stock, contractual rate, percentage"
       }
      }
     },
     "localname": "PreferredStockDividendRatePercentage",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PreferredStockDividendsIncomeStatementImpact": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of preferred stock dividends that is an adjustment to net income apportioned to common stockholders.",
        "label": "Preferred Stock Dividends, Income Statement Impact",
        "negatedLabel": "Preferred stock dividends",
        "negatedTerseLabel": "Less: Preferred Stock dividends"
       }
      }
     },
     "localname": "PreferredStockDividendsIncomeStatementImpact",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDividendsPerShareCashPaid": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of preferred stock outstanding.",
        "label": "Preferred Stock, Dividends, Per Share, Cash Paid",
        "terseLabel": "Cash dividend per share (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "auth_ref": [
      "r84",
      "r85",
      "r168",
      "r942",
      "r982"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The per share liquidation preference (or restrictions) of nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share.",
        "label": "Preferred Stock, Liquidation Preference Per Share",
        "verboseLabel": "Preferred stock, liquidation preference per share (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreference",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreferenceValue": {
     "auth_ref": [
      "r326",
      "r501"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of the difference between preference in liquidation and the par or stated values of the preferred shares.",
        "label": "Preferred Stock, Liquidation Preference, Value",
        "terseLabel": "Preferred Stock, aggregate liquidation preference",
        "verboseLabel": "Liquidation Preference"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreferenceValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockMember": {
     "auth_ref": [
      "r890",
      "r891",
      "r894",
      "r895",
      "r896",
      "r899",
      "r1041",
      "r1049"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company.",
        "label": "Preferred Stock [Member]",
        "terseLabel": "Preferred Stock"
       }
      }
     },
     "localname": "PreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r168",
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Par or Stated Value Per Share",
        "terseLabel": "Preferred stock, par value (in dollars per share)",
        "verboseLabel": "Preferred stock, par value (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockRedemptionPricePerShare": {
     "auth_ref": [
      "r83",
      "r84",
      "r87"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The price per share at which the preferred stock of an entity that has priority over common stock in the distribution of dividends and in the event of liquidation of the entity is redeemed or may be called at. The redemption features of this preferred stock are solely within the control of the issuer.",
        "label": "Preferred Stock, Redemption Price Per Share",
        "terseLabel": "Redemption price (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockRedemptionPricePerShare",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r168",
      "r753"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock, Shares Authorized",
        "verboseLabel": "Preferred stock, shares authorized (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesIssued": {
     "auth_ref": [
      "r168",
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.",
        "label": "Preferred Stock, Shares Issued",
        "verboseLabel": "Preferred stock, shares issued (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "auth_ref": [
      "r168",
      "r753",
      "r772",
      "r1049",
      "r1050"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased.",
        "label": "Preferred Stock, Shares Outstanding",
        "verboseLabel": "Preferred stock, shares outstanding (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesSubscribedButUnissuedValue": {
     "auth_ref": [
      "r168"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of subscription received from investors who have been allocated nonredeemable preferred stock or preferred stock redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Value, Subscriptions",
        "terseLabel": "Equity agreement for preferred stock maximum aggregate sales price (up to)"
       }
      }
     },
     "localname": "PreferredStockSharesSubscribedButUnissuedValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockValue": {
     "auth_ref": [
      "r168",
      "r683",
      "r888"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Preferred Stock, Value, Issued",
        "netLabel": "Carrying Value",
        "terseLabel": "Preferred stock, par value $0.01 per share, 31,500,000 shares authorized, 22,227,954 and 22,284,994 shares issued and outstanding as of June\u00a030, 2023 and December\u00a031, 2022, respectively ($555,699 and $557,125 aggregate liquidation preference as of June\u00a030, 2023 and December\u00a031, 2022, respectively)"
       }
      }
     },
     "localname": "PreferredStockValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "auth_ref": [
      "r926"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for reclassification affecting comparability of financial statement. Excludes amendment to accounting standards, other change in accounting principle, and correction of error.",
        "label": "Reclassification, Comparability Adjustment [Policy Text Block]",
        "terseLabel": "Reclassifications"
       }
      }
     },
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the deconsolidation of a previously consolidated subsidiary or the sale of investment in consolidated subsidiaries (generally greater than 50 percent).",
        "label": "Proceeds from Divestiture of Interest in Consolidated Subsidiaries",
        "terseLabel": "Net proceeds from sale of real estate"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital": {
     "auth_ref": [
      "r319",
      "r940"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return of investment, classified as investing activities. Excludes distribution for return on investment, classified as operating activities.",
        "label": "Proceeds from Equity Method Investment, Distribution, Return of Capital",
        "terseLabel": "Return of capital from equity investments"
       }
      }
     },
     "localname": "ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "auth_ref": [
      "r50"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the issuance of long-term debt that is not secured by collateral. Excludes proceeds from tax exempt unsecured debt.",
        "label": "Proceeds from Issuance of Unsecured Debt",
        "terseLabel": "Proceeds from issuance of senior unsecured notes, net"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1": {
     "auth_ref": [
      "r45"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash inflow related to a loan origination (the process when securing a mortgage for a piece of real property), lease origination, and principal collections.",
        "label": "Proceeds from Loan and Lease Originations and Principal Collections",
        "terseLabel": "Principal repayments received on residential loans"
       }
      }
     },
     "localname": "ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r315",
      "r316",
      "r953"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-Sale",
        "terseLabel": "Principal paydowns received on investment securities"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r55",
      "r56"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash flow from investments sold under the agreement to repurchase such investment.",
        "label": "Proceeds from (Payments for) in Securities Sold under Agreements to Repurchase",
        "terseLabel": "Net proceeds received from repurchase agreements"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsToMinorityShareholders": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from (to) a noncontrolling interest. Excludes dividends paid to the noncontrolling interest.",
        "label": "Proceeds from (Payments to) Noncontrolling Interests",
        "terseLabel": "Net distributions to non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "ProceedsFromPaymentsToMinorityShareholders",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfNotesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from long-term debt supported by a written promise to pay an obligation.",
        "label": "Proceeds from (Repayments of) Notes Payable",
        "negatedTerseLabel": "Net (payments made on) proceeds received from mortgages payable on real estate",
        "terseLabel": "Net (payments made on) proceeds received from mortgages payable on real estate"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r46",
      "r315",
      "r391",
      "r424"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Sale of Debt Securities, Available-for-Sale",
        "verboseLabel": "Proceeds from sales of investment securities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfEquityMethodInvestments": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Proceeds from Sale of Equity Method Investments",
        "terseLabel": "Principal repayments received on preferred equity and mezzanine loan investments"
       }
      }
     },
     "localname": "ProceedsFromSaleOfEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfLoansReceivable": {
     "auth_ref": [
      "r46"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of loans receivables arising from the financing of goods and services.",
        "label": "Proceeds from Sale of Loans Receivable",
        "terseLabel": "Proceeds from sales of residential loans"
       }
      }
     },
     "localname": "ProceedsFromSaleOfLoansReceivable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfRealEstate": {
     "auth_ref": [
      "r185"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received for the sale of real estate that is not part of an investing activity during the current period.",
        "label": "Proceeds from Sale of Real Estate",
        "terseLabel": "Proceeds from sale of real estate"
       }
      }
     },
     "localname": "ProceedsFromSaleOfRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfRealEstateHeldforinvestment": {
     "auth_ref": [
      "r185"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received from the sale of real estate that is held for investment, that is, it is part of an investing activity during the period.",
        "label": "Proceeds from Sale, Real Estate, Held-for-Investment",
        "terseLabel": "Net proceeds from sale of real estate"
       }
      }
     },
     "localname": "ProceedsFromSaleOfRealEstateHeldforinvestment",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r286",
      "r301",
      "r304",
      "r318",
      "r328",
      "r344",
      "r352",
      "r353",
      "r376",
      "r382",
      "r384",
      "r386",
      "r432",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r583",
      "r586",
      "r587",
      "r604",
      "r619",
      "r675",
      "r691",
      "r719",
      "r774",
      "r791",
      "r792",
      "r867",
      "r885",
      "r886",
      "r902",
      "r937",
      "r975"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net loss"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLossFromRealEstateOperations": {
     "auth_ref": [
      "r241"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cost of operation of other real estate (including provisions for real estate losses, rental income, and gains and losses on sales of real estate).",
        "label": "Profit (Loss) from Real Estate Operations",
        "terseLabel": "Income from real estate",
        "totalLabel": "Total income from real estate"
       }
      }
     },
     "localname": "ProfitLossFromRealEstateOperations",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Abstract]"
       }
      }
     },
     "localname": "RealEstateAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateDisclosureTextBlock": {
     "auth_ref": [
      "r249",
      "r250",
      "r251",
      "r252",
      "r253"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for certain real estate investment financial statements, real estate investment trust operating support agreements, real estate owned, retail land sales, time share transactions, as well as other real estate related disclosures.",
        "label": "Real Estate Disclosure [Text Block]",
        "verboseLabel": "Real Estate, Net"
       }
      }
     },
     "localname": "RealEstateDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealEstateInvestmentMember": {
     "auth_ref": [
      "r827",
      "r828",
      "r829",
      "r859"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents direct equity investments in real estate projects (Land, buildings and improvements owned for income production and capital accretion potential) and certain loans accounted for as real estate investments. For loans accounted for as real estate investments, the entity (lender) has virtually the same risks and rewards as those of owners or joint venture participants. Such arrangements are treated as if the entity actually has an ownership interest in the property. In such arrangements, the entity (lender) participates in expected residual profits, which may be in the form of an equity kicker or a higher than usual effective interest rate. At the outset and during the construction and development of the property, the borrower generally has little or no equity in the property and the entity's (lender's) only source of repayment is the property. The entity (lender) generally (a) agrees to provide substantially all funds to acquire, develop, and construct the property, (b) funds the commitment or origination fees or both, and (c) funds interest during the development and construction of the property.",
        "label": "Real Estate Investment [Member]",
        "terseLabel": "Real Estate Investment"
       }
      }
     },
     "localname": "RealEstateInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation": {
     "auth_ref": [
      "r677"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of depreciation for real estate property held for investment purposes.",
        "label": "Real Estate Investment Property, Accumulated Depreciation",
        "negatedTerseLabel": "Accumulated depreciation"
       }
      }
     },
     "localname": "RealEstateInvestmentPropertyAccumulatedDepreciation",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestmentPropertyAtCost": {
     "auth_ref": [
      "r678"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of real estate investment property which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; and (7) other real estate investments.",
        "label": "Real Estate Investment Property, at Cost",
        "totalLabel": "Real estate"
       }
      }
     },
     "localname": "RealEstateInvestmentPropertyAtCost",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestments": {
     "auth_ref": [
      "r678",
      "r1045"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of real estate investments, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; (7) other real estate investments; (8) real estate joint ventures; and (9) unconsolidated real estate and other joint ventures not separately presented.",
        "label": "Real Estate Investments, Net",
        "totalLabel": "Real estate, net",
        "verboseLabel": "Real estate, net held in Consolidated VIEs"
       }
      }
     },
     "localname": "RealEstateInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateLineItems": {
     "auth_ref": [
      "r855"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Real Estate [Line Items]",
        "terseLabel": "Real Estate [Line Items]"
       }
      }
     },
     "localname": "RealEstateLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateMember": {
     "auth_ref": [
      "r985"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property consisting of land, land improvement and buildings.",
        "label": "Real Estate [Member]",
        "terseLabel": "Real Estate"
       }
      }
     },
     "localname": "RealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateTable": {
     "auth_ref": [
      "r855"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about real estate investment companies including, but not limited to, real estate investment trusts, real estate owned, retail land sales, and time share transactions.",
        "label": "Real Estate [Table]",
        "terseLabel": "Real Estate [Table]"
       }
      }
     },
     "localname": "RealEstateTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "auth_ref": [
      "r697"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain (loss) on investment.",
        "label": "Realized Investment Gains (Losses)",
        "terseLabel": "Realized gains, net"
       }
      }
     },
     "localname": "RealizedInvestmentGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReceivableTypeDomain": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing arrangement representing a contractual right to receive money either on demand or on fixed and determinable dates.",
        "label": "Receivable [Domain]",
        "terseLabel": "Receivable [Domain]"
       }
      }
     },
     "localname": "ReceivableTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount": {
     "auth_ref": [
      "r77",
      "r78",
      "r79",
      "r80"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "As of the reporting date, the aggregate carrying amount of all noncontrolling interests which are redeemable by the (parent) entity (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the (parent) entity. This item includes noncontrolling interest holder's ownership (or holders' ownership) regardless of the type of equity interest (common, preferred, other) including all potential organizational (legal) forms of the investee entity.",
        "label": "Redeemable Noncontrolling Interest, Equity, Carrying Amount",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Redeemable non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestEquityCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of redeemable noncontrolling interest (as defined) included in the statement of financial position as either a liability or temporary equity. As of the date of the statement of financial position, such redeemable noncontrolling interest is currently redeemable, as defined, for cash or other assets of the entity at (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the entity.",
        "label": "Redeemable Noncontrolling Interest [Table Text Block]",
        "terseLabel": "Schedule of Redeemable Noncontrolling Interest in Consolidated VIEs"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfConvertibleDebt": {
     "auth_ref": [
      "r52"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder.",
        "label": "Repayments of Convertible Debt",
        "negatedTerseLabel": "Repayment of convertible notes"
       }
      }
     },
     "localname": "RepaymentsOfConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfSecuredDebt": {
     "auth_ref": [
      "r52"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to repay long-term debt that is wholly or partially secured by collateral. Excludes repayments of tax exempt secured debt.",
        "label": "Repayments of Secured Debt",
        "negatedLabel": "Payments made on Consolidated SLST CDOs"
       }
      }
     },
     "localname": "RepaymentsOfSecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1": {
     "auth_ref": [
      "r337"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average maturity (weighted by amount of the agreement) of repurchase agreements with the counterparty, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Repurchase Agreement Counterparty, Weighted Average Maturity of Agreements",
        "terseLabel": "Average days to maturity",
        "verboseLabel": "Weighted Average Months to Maturity"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature.",
        "label": "Repurchase Agreements [Member]",
        "terseLabel": "Repurchase agreements",
        "verboseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "RepurchaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock": {
     "auth_ref": [
      "r222"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements (also known as repos), resale agreements (also known as reverse repurchase agreements or reverse repos), securities borrowed transactions, and securities loaned transactions.",
        "label": "Repurchase Agreements, Resale Agreements, Securities Borrowed, and Securities Loaned Disclosure [Text Block]",
        "terseLabel": "Repurchase Agreements"
       }
      }
     },
     "localname": "RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ResidentialMortgageMember": {
     "auth_ref": [
      "r869"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan to purchase or refinance residential real estate for example, but not limited to, a home, in which the real estate itself serves as collateral for the loan.",
        "label": "Residential Mortgage [Member]",
        "terseLabel": "Residential Loans"
       }
      }
     },
     "localname": "ResidentialMortgageMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalents": {
     "auth_ref": [
      "r54",
      "r225",
      "r287",
      "r323",
      "r682"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Restricted Cash and Cash Equivalents",
        "terseLabel": "Restricted cash included in other assets",
        "verboseLabel": "Restricted cash"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r62"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met.",
        "label": "Restricted Stock [Member]",
        "terseLabel": "Restricted Stock"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units (RSUs) [Member]",
        "terseLabel": "RSUs"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r171",
      "r206",
      "r686",
      "r704",
      "r706",
      "r715",
      "r754",
      "r888"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated undistributed earnings (deficit).",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Accumulated deficit"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r283",
      "r341",
      "r342",
      "r343",
      "r345",
      "r351",
      "r353",
      "r434",
      "r435",
      "r560",
      "r561",
      "r562",
      "r574",
      "r575",
      "r594",
      "r596",
      "r597",
      "r599",
      "r602",
      "r701",
      "r703",
      "r720",
      "r1049"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated undistributed earnings (deficit).",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Accumulated Deficit"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense": {
     "auth_ref": [
      "r854"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of depreciation expense of real estate investments for entities with a substantial portion of business acquiring and holding investment real estate.",
        "label": "SEC Schedule, 12-28, Real Estate Companies, Investment in Real Estate, Accumulated Depreciation, Depreciation Expense",
        "terseLabel": "Depreciation and amortization expense related to operating real estate"
       }
      }
     },
     "localname": "SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale of Stock [Domain]",
        "terseLabel": "Sale of Stock [Domain]"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the various types of trade accounts and notes receivable and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables.",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "terseLabel": "Schedule of Residential Mortgage Loans Held in Securitization Trusts, Net"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "auth_ref": [
      "r336"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule, as of the most recent balance sheet date, of securities or other assets sold under repurchase agreements when this amount exceeds 10 percent of total assets. Disclosure may include the following: the type of securities or assets sold under agreements to repurchase, the carrying amount, market value (including accrued interest plus any cash or other assets on deposit. The information is segregated into securities maturing (1) overnight; (2) term up to 30 days; (3) term of 30 to 90 days; (4) term over 90 days; (5) demand.",
        "label": "Schedule of Assets Sold under Agreements to Repurchase [Table]",
        "terseLabel": "Schedule of Assets Sold under Agreements to Repurchase [Table]"
       }
      }
     },
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Securities, Available-for-Sale [Line Items]",
        "terseLabel": "Debt Securities, Available-for-sale [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value.",
        "label": "Schedule of Available-for-Sale Securities Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Available-for-sale Securities Reconciliation"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Schedule of Components of Income Tax (Benefit)/Provision"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "auth_ref": [
      "r37",
      "r84",
      "r88",
      "r139",
      "r140",
      "r142",
      "r150",
      "r204",
      "r205",
      "r873",
      "r875",
      "r946"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer.",
        "label": "Schedule of Long-Term Debt Instruments [Table Text Block]",
        "terseLabel": "Schedule of Mortgages Payable in Consolidated VIEs"
       }
      }
     },
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information pertaining to short-term and long-debt instruments or arrangements, including but not limited to identification of terms, features, collateral requirements and other information necessary to a fair presentation.",
        "label": "Schedule of Debt [Table Text Block]",
        "terseLabel": "Schedule of Mortgage Payable in Consolidated VIE"
       }
      }
     },
     "localname": "ScheduleOfDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r208"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Deferred Tax Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r116"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsTextBlock": {
     "auth_ref": [
      "r18",
      "r110",
      "r111",
      "r112",
      "r113",
      "r116",
      "r120",
      "r125",
      "r127"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of pertinent information about a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Schedule of Derivative Instruments [Table Text Block]",
        "terseLabel": "Reconciliation of Gross Derivative Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock": {
     "auth_ref": [
      "r13",
      "r22",
      "r34",
      "r153",
      "r154",
      "r155",
      "r156",
      "r157",
      "r158",
      "r160",
      "r161",
      "r162",
      "r197"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table Text Block]",
        "terseLabel": "Schedule of Assets and Liabilities of Disposal Group Held for Sale"
       }
      }
     },
     "localname": "ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDividendsPayableTextBlock": {
     "auth_ref": [
      "r58"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of all or some of the information related to dividends declared, but not paid, as of the financial reporting date.",
        "label": "Schedule of Dividends Payable [Table Text Block]",
        "terseLabel": "Schedule of Dividends Payable"
       }
      }
     },
     "localname": "ScheduleOfDividendsPayableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r951"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Schedule of Computation of Basic and Dilutive Earnings (Loss) Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable": {
     "auth_ref": [
      "r61",
      "r63",
      "r358",
      "r359",
      "r366"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Complete disclosure pertaining to an entity's diluted earnings per share.",
        "label": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]",
        "terseLabel": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareDilutedByCommonClassTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsLineItems": {
     "auth_ref": [
      "r328",
      "r428",
      "r429",
      "r431",
      "r432",
      "r619"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule of Equity Method Investments [Line Items]",
        "terseLabel": "Schedule of Equity Method Investments [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsTable": {
     "auth_ref": [
      "r286",
      "r328",
      "r428",
      "r429",
      "r431",
      "r432",
      "r619"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock. The summarized information includes: (a) the name of each investee or group of investees for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available.",
        "label": "Schedule of Equity Method Investments [Table]",
        "terseLabel": "Schedule of Equity Method Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r606",
      "r607"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Schedule of Financial Instruments Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock": {
     "auth_ref": [
      "r223",
      "r1034"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financial instruments held by the entity for its own account for trading or investment purposes that are carried at fair value and pledged to counterparties as collateral for financing transactions. Description may include equity, fixed income, debt or other securities.",
        "label": "Schedule of Financial Instruments Owned and Pledged as Collateral [Table Text Block]",
        "terseLabel": "Schedule of Borrowings Under Financing Arrangements and Assets Pledged as Collateral"
       }
      }
     },
     "localname": "ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInterestRateDerivativesTableTextBlock": {
     "auth_ref": [
      "r120"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of interest rate derivatives, including, but not limited to, the fair value of the derivatives, statement of financial position location, and statement of financial performance location of these instruments.",
        "label": "Schedule of Interest Rate Derivatives [Table Text Block]",
        "terseLabel": "Schedule of Interest Rate Derivatives"
       }
      }
     },
     "localname": "ScheduleOfInterestRateDerivativesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable": {
     "auth_ref": [
      "r182",
      "r183",
      "r694"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment income, including, but not limited to, interest and dividend income and amortization of discount (premium) derived from debt and equity securities. Excludes realized and unrealized gain (loss) on investments.",
        "label": "Investment Income [Table]",
        "terseLabel": "Investment Income [Table]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt.",
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "terseLabel": "Schedule of Maturities of Collateralized Debt Obligations",
        "verboseLabel": "Schedule of Maturities of Long-term Debt"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock": {
     "auth_ref": [
      "r92"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested performance-based units.",
        "label": "Schedule of Nonvested Performance-Based Units Activity [Table Text Block]",
        "terseLabel": "Schedule of PSU Award Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [
      "r92"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock units.",
        "label": "Schedule of Nonvested Restricted Stock Units Activity [Table Text Block]",
        "terseLabel": "Schedule of RSU Award Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedShareActivityTableTextBlock": {
     "auth_ref": [
      "r92"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested shares.",
        "label": "Schedule of Nonvested Share Activity [Table Text Block]",
        "terseLabel": "Schedule of Nonvested Share Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedShareActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherAssetsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the carrying amounts of other assets. This disclosure includes other current assets and other noncurrent assets.",
        "label": "Schedule of Other Assets [Table Text Block]",
        "terseLabel": "Schedule of Other Assets"
       }
      }
     },
     "localname": "ScheduleOfOtherAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "auth_ref": [
      "r122",
      "r913"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative instrument not designated or qualifying as hedging instrument.",
        "label": "Derivatives Not Designated as Hedging Instruments [Table Text Block]",
        "terseLabel": "Schedule of Activity of Derivative Instruments"
       }
      }
     },
     "localname": "ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of non-operating income or non-operating expense that may include amounts earned from dividends, interest on securities, gains (losses) on securities sold, equity earnings of unconsolidated affiliates, net gain (loss) on sales of business, interest expense and other miscellaneous income or expense items.",
        "label": "Schedule of Other Nonoperating Income (Expense) [Table Text Block]",
        "terseLabel": "Schedule of Other (Loss) Income"
       }
      }
     },
     "localname": "ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherLossIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRealEstatePropertiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of real estate properties and units in those properties that are included in the discussion of the nature of an entity's operations.",
        "label": "Schedule of Real Estate Properties [Table Text Block]",
        "terseLabel": "Schedule of Real Estate Investment"
       }
      }
     },
     "localname": "ScheduleOfRealEstatePropertiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRepurchaseAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements.",
        "label": "Schedule of Repurchase Agreements [Table Text Block]",
        "terseLabel": "Schedule of Company's Repurchase Agreements"
       }
      }
     },
     "localname": "ScheduleOfRepurchaseAgreements",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "auth_ref": [
      "r223",
      "r297"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of securities financing transactions including resale and repurchase agreements, securities borrowed and lending transactions, securities received as collateral and obligations to return securities received as collateral.",
        "label": "Schedule of Securities Financing Transactions [Table Text Block]",
        "terseLabel": "Schedule of Repurchase Agreements Secured by Investment Securities"
       }
      }
     },
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r525",
      "r527",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "terseLabel": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r76",
      "r81",
      "r82",
      "r84",
      "r85",
      "r86",
      "r88",
      "r204",
      "r205",
      "r206",
      "r290",
      "r291",
      "r292",
      "r374",
      "r497",
      "r498",
      "r499",
      "r501",
      "r504",
      "r509",
      "r511",
      "r711",
      "r712",
      "r713",
      "r714",
      "r877",
      "r910",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]",
        "terseLabel": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockholdersEquityTableTextBlock": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of changes in the separate accounts comprising stockholders' equity (in addition to retained earnings) and of the changes in the number of shares of equity securities during at least the most recent annual fiscal period and any subsequent interim period presented is required to make the financial statements sufficiently informative if both financial position and results of operations are presented.",
        "label": "Schedule of Stockholders Equity [Table Text Block]",
        "terseLabel": "Schedule of Preferred Stock Issued and Outstanding"
       }
      }
     },
     "localname": "ScheduleOfStockholdersEquityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSubordinatedBorrowingTextBlock": {
     "auth_ref": [
      "r247"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of borrowings under subordinated debt agreements that qualify as available in computing net capital under SEC uniform net capital rules for broker-dealers, including restrictive covenants, collateral, interest rates and due dates, amounts due by date and amount owed in total.",
        "label": "Schedule of Subordinated Borrowing [Table Text Block]",
        "terseLabel": "Schedule of Subordinated Borrowing"
       }
      }
     },
     "localname": "ScheduleOfSubordinatedBorrowingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt and Equity Securities, FV-NI [Line Items]",
        "terseLabel": "Debt and Equity Securities, FV-NI [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in net income (trading) and investment in equity security with change in fair value recognized in net income (FV-NI).",
        "label": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]",
        "terseLabel": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]"
       }
      }
     },
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "auth_ref": [
      "r101",
      "r102",
      "r104",
      "r106",
      "r107",
      "r584",
      "r585",
      "r588",
      "r589",
      "r650",
      "r651",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table]",
        "terseLabel": "Schedule of Variable Interest Entities [Table]"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "auth_ref": [
      "r101",
      "r102",
      "r104",
      "r106",
      "r107"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table Text Block]",
        "netLabel": "Schedule of Statement of Operations of Variable Interest Entities",
        "terseLabel": "Schedule of Mezzanine Loans and Preferred Equity Investments"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock": {
     "auth_ref": [
      "r64",
      "r65",
      "r67",
      "r68",
      "r136",
      "r221"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Schedules of Concentration of Risk, by Risk Factor [Table Text Block]",
        "terseLabel": "Schedule of Geographic Concentration of Credit Risk Exceeding 5% of Balances",
        "verboseLabel": "Schedule of Geographic Concentration of Credit Risk"
       }
      }
     },
     "localname": "SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuredDebt": {
     "auth_ref": [
      "r31",
      "r231",
      "r1039"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower.",
        "label": "Secured Debt",
        "netLabel": "Collateralized debt obligations ($617,168 at fair value and $1,369,632 at amortized cost, net as of June\u00a030, 2023 and $634,495 at fair value and $1,468,222 at amortized cost, net as of December\u00a031, 2022)",
        "terseLabel": "Carrying Value",
        "verboseLabel": "Multi-family CDOs, at fair value"
       }
      }
     },
     "localname": "SecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuredDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateralized debt obligation backed by, for example, but not limited to, pledge, mortgage or other lien on the entity's assets.",
        "label": "Secured Debt [Member]",
        "terseLabel": "Secured Debt"
       }
      }
     },
     "localname": "SecuredDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuredDebtRepurchaseAgreements": {
     "auth_ref": [
      "r653"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value, as of the balance sheet date, of securities sold under agreements to repurchase where the transferor maintains effective control over the assets, accounting for them as secured debt.",
        "label": "Secured Debt, Repurchase Agreements",
        "terseLabel": "Financings under repurchase agreements, aggregate outstanding balance"
       }
      }
     },
     "localname": "SecuredDebtRepurchaseAgreements",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "auth_ref": [
      "r1018"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed rate on U.S. dollar, constant-notional interest rate swap that has its variable-rate leg referenced to Secured Overnight Financing Rate (SOFR) with no additional spread over SOFR on variable-rate leg.",
        "label": "Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]",
        "terseLabel": "SOFR"
       }
      }
     },
     "localname": "SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuritiesBorrowed": {
     "auth_ref": [
      "r143",
      "r296",
      "r298"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of securities borrowed from entities in exchange for collateral. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Borrowed",
        "terseLabel": "Securities borrowed"
       }
      }
     },
     "localname": "SecuritiesBorrowed",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuritiesInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member categorizes all investments in securities to segregate them from other than security investments.",
        "label": "Securities Investment [Member]",
        "terseLabel": "Investment securities"
       }
      }
     },
     "localname": "SecuritiesInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r146",
      "r296",
      "r298",
      "r330",
      "r334",
      "r800",
      "r803",
      "r808",
      "r823"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Sold under Agreements to Repurchase",
        "netLabel": "Outstanding repurchase agreements",
        "terseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SeriesDPreferredStockMember": {
     "auth_ref": [
      "r932",
      "r933",
      "r983"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series D preferred stock.",
        "label": "Series D Preferred Stock [Member]",
        "terseLabel": "Series D"
       }
      }
     },
     "localname": "SeriesDPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesEPreferredStockMember": {
     "auth_ref": [
      "r932",
      "r933",
      "r983"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series E preferred stock.",
        "label": "Series E Preferred Stock [Member]",
        "terseLabel": "Series E"
       }
      }
     },
     "localname": "SeriesEPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesFPreferredStockMember": {
     "auth_ref": [
      "r932",
      "r933",
      "r983"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series F preferred stock.",
        "label": "Series F Preferred Stock [Member]",
        "terseLabel": "Series F"
       }
      }
     },
     "localname": "SeriesFPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesGPreferredStockMember": {
     "auth_ref": [
      "r932",
      "r933",
      "r983"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series G preferred stock.",
        "label": "Series G Preferred Stock [Member]",
        "terseLabel": "Series G"
       }
      }
     },
     "localname": "SeriesGPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock based compensation expense, net"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1": {
     "auth_ref": [
      "r883"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Requisite Service Period",
        "terseLabel": "Requisite service period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r883"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period",
        "terseLabel": "Award vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedTerseLabel": "Forfeited (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r543"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Granted (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r543"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Granted (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r540",
      "r541"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Non-vested shares at end of period (in shares)",
        "periodStartLabel": "Non-vested shares at beginning of period (in shares)",
        "terseLabel": "Non-vested shares (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "terseLabel": "Number of Non-vested Restricted Shares"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r540",
      "r541"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Non-vested shares at end of period (in dollars per share)",
        "periodStartLabel": "Non-vested shares at beginning of period (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
        "terseLabel": "Weighted Average Per Share Grant Date Fair Value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r544"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested (in shares)",
        "terseLabel": "Shares vested (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "auth_ref": [
      "r547"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "terseLabel": "Fair value of vested shares"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r544"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Vested (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [
      "r525",
      "r527",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r884"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "terseLabel": "Maximum number of shares that may be issued (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "auth_ref": [
      "r91"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant",
        "terseLabel": "Shares available for grant (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedPaymentArrangementEmployeeMember": {
     "auth_ref": [
      "r527",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recipient, of award granted under share-based payment arrangement, over whom grantor exercises or has right to exercise sufficient control to establish employer-employee relationship based on law of pertinent jurisdiction. Includes, but is not limited to, nonemployee director treated as employee when acting as member of board of directors, if elected by grantor's shareholders or appointed to board position to be filled by shareholder election when existing term expires.",
        "label": "Share-Based Payment Arrangement, Employee [Member]",
        "terseLabel": "Share-Based Payment Arrangement, Employee"
       }
      }
     },
     "localname": "ShareBasedPaymentArrangementEmployeeMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedPaymentArrangementNonemployeeMember": {
     "auth_ref": [
      "r525",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recipient, of award granted under share-based payment arrangement, over whom grantor does not exercise nor has right to exercise sufficient control to establish employer-employee relationship based on law of pertinent jurisdiction. Excludes nonemployee director treated as employee when acting as member of board of directors, if elected by grantor's shareholders or appointed to board position to be filled by shareholder election when existing term expires.",
        "label": "Share-Based Payment Arrangement, Nonemployee [Member]",
        "terseLabel": "Share-Based Payment Arrangement, Nonemployee"
       }
      }
     },
     "localname": "ShareBasedPaymentArrangementNonemployeeMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "auth_ref": [
      "r550"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expected term of award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Term",
        "terseLabel": "Fair value, expected term"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average grant-date fair value of non-vested options forfeited.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Nonvested Options Forfeited, Weighted Average Grant Date Fair Value",
        "negatedTerseLabel": "Forfeited (in dollars per share)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r191",
      "r324"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r265",
      "r290",
      "r291",
      "r292",
      "r328",
      "r358",
      "r359",
      "r366",
      "r368",
      "r374",
      "r375",
      "r432",
      "r458",
      "r460",
      "r461",
      "r462",
      "r465",
      "r466",
      "r497",
      "r498",
      "r501",
      "r504",
      "r511",
      "r619",
      "r711",
      "r712",
      "r713",
      "r714",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r727",
      "r728",
      "r729",
      "r730",
      "r731",
      "r753",
      "r775",
      "r793",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r910",
      "r942",
      "r950"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock [Axis]"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r17",
      "r39",
      "r283",
      "r306",
      "r307",
      "r308",
      "r341",
      "r342",
      "r343",
      "r345",
      "r351",
      "r353",
      "r373",
      "r434",
      "r435",
      "r512",
      "r560",
      "r561",
      "r562",
      "r574",
      "r575",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r602",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r632",
      "r701",
      "r702",
      "r703",
      "r720",
      "r793"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [
      "r341",
      "r342",
      "r343",
      "r373",
      "r672",
      "r710",
      "r731",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r753",
      "r756",
      "r757",
      "r758",
      "r759",
      "r760",
      "r762",
      "r763",
      "r764",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r773",
      "r776",
      "r777",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r793",
      "r893"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]",
        "terseLabel": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]",
        "terseLabel": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]",
        "terseLabel": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r341",
      "r342",
      "r343",
      "r373",
      "r672",
      "r710",
      "r731",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r753",
      "r756",
      "r757",
      "r758",
      "r759",
      "r760",
      "r762",
      "r763",
      "r764",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r773",
      "r776",
      "r777",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r793",
      "r893"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r17",
      "r168",
      "r169",
      "r206",
      "r711",
      "r793",
      "r831"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Shares issued (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockSplits": {
     "auth_ref": [
      "r17",
      "r168",
      "r169",
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period as a result of a stock split.",
        "label": "Stock Issued During Period, Shares, Stock Splits",
        "terseLabel": "Reverse stock split (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockSplits",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockOptionMember": {
     "auth_ref": [
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contracts conveying rights, but not obligations, to buy or sell a specific quantity of stock at a specified price during a specified period (an American option) or at a specified date (a European option).",
        "label": "Equity Option [Member]",
        "terseLabel": "Options",
        "verboseLabel": "Options"
       }
      }
     },
     "localname": "StockOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StockRepurchaseProgramAuthorizedAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stock repurchase plan authorized.",
        "label": "Stock Repurchase Program, Authorized Amount",
        "terseLabel": "Stock repurchase program, authorized amount"
       }
      }
     },
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount remaining of a stock repurchase plan authorized.",
        "label": "Stock Repurchase Program, Remaining Authorized Repurchase Amount",
        "terseLabel": "Remaining authorized repurchase amount"
       }
      }
     },
     "localname": "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "auth_ref": [
      "r17",
      "r168",
      "r169",
      "r206",
      "r714",
      "r793",
      "r833"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Shares",
        "terseLabel": "Shares repurchased (in shares)"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodShares",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "auth_ref": [
      "r17",
      "r168",
      "r169",
      "r206",
      "r720",
      "r793",
      "r833",
      "r902"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Value",
        "negatedTerseLabel": "Common and preferred stock repurchases",
        "terseLabel": "Common stock repurchases"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodValue",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r169",
      "r172",
      "r173",
      "r192",
      "r755",
      "r772",
      "r794",
      "r795",
      "r888",
      "r903",
      "r944",
      "r966",
      "r1024",
      "r1049"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest.",
        "label": "Equity, Attributable to Parent",
        "totalLabel": "Company's stockholders' equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders' Equity:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r98",
      "r99",
      "r108",
      "r283",
      "r284",
      "r307",
      "r341",
      "r342",
      "r343",
      "r345",
      "r351",
      "r434",
      "r435",
      "r512",
      "r560",
      "r561",
      "r562",
      "r574",
      "r575",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r602",
      "r620",
      "r621",
      "r625",
      "r632",
      "r702",
      "r703",
      "r718",
      "r755",
      "r772",
      "r794",
      "r795",
      "r835",
      "r902",
      "r944",
      "r966",
      "r1024",
      "r1049"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of equity (deficit) attributable to parent and noncontrolling interest. Excludes temporary equity.",
        "label": "Equity, Including Portion Attributable to Noncontrolling Interest",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total equity"
       }
      }
     },
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note [Abstract]",
        "terseLabel": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "localname": "StockholdersEquityNoteAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r203",
      "r327",
      "r496",
      "r498",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r510",
      "r512",
      "r601",
      "r796",
      "r797",
      "r836"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for equity.",
        "label": "Equity [Text Block]",
        "terseLabel": "Stockholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StockholdersEquityReverseStockSplit": {
     "auth_ref": [
      "r207"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the reverse stock split arrangement. Also provide the retroactive effect given by the reverse split that occurs after the balance sheet date but before the release of financial statements.",
        "label": "Stockholders' Equity, Reverse Stock Split",
        "terseLabel": "Reverse stock split (in shares)"
       }
      }
     },
     "localname": "StockholdersEquityReverseStockSplit",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubordinatedBorrowingAxis": {
     "auth_ref": [
      "r247"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of borrowing under subordinated debt agreement.",
        "label": "Subordinated Borrowing [Axis]",
        "terseLabel": "Subordinated Borrowing [Axis]"
       }
      }
     },
     "localname": "SubordinatedBorrowingAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubordinatedBorrowingNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the borrowing under subordinated debt agreements, including exchange memberships contributed for the use of the Company.",
        "label": "Subordinated Borrowing, Name [Domain]",
        "terseLabel": "Subordinated Borrowing, Name [Domain]"
       }
      }
     },
     "localname": "SubordinatedBorrowingNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubordinatedDebt": {
     "auth_ref": [
      "r31",
      "r163",
      "r231",
      "r1039"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of subordinated debt (with initial maturities beyond one year or beyond the operating cycle if longer). Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt",
        "terseLabel": "Subordinated debentures",
        "verboseLabel": "Subordinated debentures, carrying value"
       }
      }
     },
     "localname": "SubordinatedDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubordinatedDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt [Member]",
        "terseLabel": "Subordinated debentures"
       }
      }
     },
     "localname": "SubordinatedDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r626",
      "r635"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r626",
      "r635"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]",
        "terseLabel": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r626",
      "r635"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]",
        "terseLabel": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Sale of Stock [Axis]",
        "terseLabel": "Sale of Stock [Axis]"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalBalanceSheetDisclosuresTextBlock": {
     "auth_ref": [
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for supplemental balance sheet disclosures, including descriptions and amounts for assets, liabilities, and equity.",
        "label": "Supplemental Balance Sheet Disclosures [Text Block]",
        "terseLabel": "Other Assets and Other Liabilities"
       }
      }
     },
     "localname": "SupplementalBalanceSheetDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental Disclosure:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems": {
     "auth_ref": [
      "r655",
      "r1035"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Line Items]",
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Line Items]"
       }
      }
     },
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable": {
     "auth_ref": [
      "r655",
      "r1035"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the nature and risks of short-term collateralized financing obtained through repurchase agreements, securities lending transactions and repurchase-to-maturity transactions, accounted for as secured borrowings.",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]",
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]"
       }
      }
     },
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r58",
      "r59",
      "r60"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "terseLabel": "Transfer from residential loans to real estate owned"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r492",
      "r509",
      "r600",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r654",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r694",
      "r914",
      "r915",
      "r916",
      "r917",
      "r918",
      "r919",
      "r920",
      "r961",
      "r962",
      "r963",
      "r964"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofDebtDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockAcquiredAverageCostPerShare": {
     "auth_ref": [
      "r90"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total cost of shares repurchased divided by the total number of shares repurchased.",
        "label": "Shares Acquired, Average Cost Per Share",
        "terseLabel": "Average cost per share (in usd per share)"
       }
      }
     },
     "localname": "TreasuryStockAcquiredAverageCostPerShare",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "auth_ref": [
      "r9",
      "r787",
      "r788",
      "r789",
      "r790",
      "r815"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period.",
        "label": "Unrealized Gain (Loss) on Derivatives",
        "terseLabel": "Unrealized Gains (Losses)"
       }
      }
     },
     "localname": "UnrealizedGainLossOnDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestments": {
     "auth_ref": [
      "r9"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) on investment.",
        "label": "Unrealized Gain (Loss) on Investments",
        "negatedLabel": "Unrealized (gains) losses, net",
        "terseLabel": "Unrealized (losses) gains, net"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of unrealized gains and losses on investments.",
        "label": "Unrealized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Investment Securities Available-for-sale in an Unrealized Loss Position"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_UnrealizedGainLossOnPriceRiskFairValueHedgingInstruments": {
     "auth_ref": [
      "r115",
      "r121"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in earnings in the period from the increase (decrease) in fair value of price risk derivatives instruments designated as fair value hedging instruments, as offset by the gain (loss) on the hedged item to the extent that the fair value hedge is determined to be effective.",
        "label": "Unrealized Gain (Loss) on Price Risk Fair Value Hedging Instruments",
        "negatedLabel": "Unrealized losses"
       }
      }
     },
     "localname": "UnrealizedGainLossOnPriceRiskFairValueHedgingInstruments",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnsecuredDebt": {
     "auth_ref": [
      "r31",
      "r231",
      "r1039"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of uncollateralized debt obligations (with maturities initially due after one year or beyond the operating cycle if longer).",
        "label": "Unsecured Debt",
        "terseLabel": "Senior unsecured notes",
        "verboseLabel": "Senior unsecured notes, carrying value"
       }
      }
     },
     "localname": "UnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnsecuredDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt obligation not collateralized by pledge of, mortgage of or other lien on the entity's assets.",
        "label": "Unsecured Debt [Member]",
        "terseLabel": "Senior unsecured notes"
       }
      }
     },
     "localname": "UnsecuredDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "auth_ref": [
      "r568"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset.",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "terseLabel": "Change in valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationTechniqueAxis": {
     "auth_ref": [
      "r20"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by valuation approach and technique.",
        "label": "Valuation Approach and Technique [Axis]",
        "terseLabel": "Valuation Approach and Technique [Axis]"
       }
      }
     },
     "localname": "ValuationTechniqueAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "auth_ref": [
      "r1021"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique calculating present value of future cash flows.",
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "terseLabel": "Valuation Technique, Discounted Cash Flow"
       }
      }
     },
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationTechniqueDomain": {
     "auth_ref": [
      "r20"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation approach and technique.",
        "label": "Valuation Approach and Technique [Domain]",
        "terseLabel": "Valuation Approach and Technique [Domain]"
       }
      }
     },
     "localname": "ValuationTechniqueDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "auth_ref": [
      "r584",
      "r585",
      "r588",
      "r589",
      "r650",
      "r651",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Variable Interest Entity [Line Items]",
        "terseLabel": "Variable Interest Entity [Line Items]"
       }
      }
     },
     "localname": "VariableInterestEntityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Variable Interest Entities (VIE) in which the entity does not have a controlling financial interest (as defined) and of which it is therefore not the primary beneficiary. VIEs of which the entity is not the primary beneficiary because it does not have the power to direct the activities of the VIE that most significantly impact the VIE's economic performance and for which it does not have the obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE are not included in the consolidated financial statements of the entity.",
        "label": "Variable Interest Entity, Not Primary Beneficiary [Member]",
        "terseLabel": "VIE, Not Primary Beneficiary"
       }
      }
     },
     "localname": "VariableInterestEntityNotPrimaryBeneficiaryMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount": {
     "auth_ref": [
      "r1015"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of maximum exposure to loss from involvement with consolidated variable interest entity (VIE).",
        "label": "Variable Interest Entity, Primary Beneficiary, Maximum Loss Exposure, Amount",
        "terseLabel": "Variable interest entity, primary beneficiary, maximum loss exposure, amount",
        "verboseLabel": "Net investment"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMember": {
     "auth_ref": [
      "r101",
      "r584",
      "r585",
      "r588",
      "r589"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Variable Interest Entities (VIE) in which the entity has a controlling financial interest (as defined) and of which it is therefore the primary beneficiary. A controlling financial interest is determined based on both: (a) the entity's power to direct activities of the VIE that most significantly impact the VIE's economic performance and (b) the entity's obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. VIEs of which the entity is the primary beneficiary are included in the consolidated financial statements of the entity.",
        "label": "Variable Interest Entity, Primary Beneficiary [Member]",
        "terseLabel": "VIE, Primary Beneficiary"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryMember",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeScheduleofComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsConsolidatedDuringPeriodDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate [Axis]"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate [Domain]"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariationMarginPayableDerivative": {
     "auth_ref": [
      "r743",
      "r768"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payable for negative price movement on derivative.",
        "label": "Variation Margin Payable, Derivative",
        "terseLabel": "Variation Margin"
       }
      }
     },
     "localname": "VariationMarginPayableDerivative",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariationMarginReceivableDerivative": {
     "auth_ref": [
      "r758",
      "r798"
     ],
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of receivable from positive price movement on derivative.",
        "label": "Variation Margin Receivable, Derivative",
        "negatedTerseLabel": "Variation Margin"
       }
      }
     },
     "localname": "VariationMarginReceivableDerivative",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r357",
      "r368"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted average shares outstanding-diluted (in shares)",
        "totalLabel": "Diluted weighted average common shares outstanding (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r355",
      "r368"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted average shares outstanding-basic (in shares)",
        "verboseLabel": "Weighted average shares outstanding-basic (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 10
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481877/830-230-45-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483475/205-20-45-10",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480463/815-10-45-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2AA",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "a",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-2AA",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1000": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1001": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1002": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1003": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1004": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1005": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1006": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1007": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1008": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1009": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1010": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1011": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1012": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1013": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1014": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-6",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1015": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-5A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1016": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1017": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1018": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480682/815-20-25-6A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1019": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1020": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1021": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1022": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1023": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2E",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1024": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1025": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1026": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1027": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1028": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1029": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1030": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1031": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1032": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1033": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1034": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481444/860-30-45-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1035": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1036": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(14)(d))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1037": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(d))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1038": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1039": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-5A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1040": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479432/944-30-50-2B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1041": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1042": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(3)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1043": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1044": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(18))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1045": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(3)(d))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1046": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(i)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1047": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1048": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(8))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1049": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-5A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1050": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1051": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1052": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column E)(Footnote 4))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1053": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "39",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "830",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480228/946-830-45-39",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1054": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1055": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-6",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-9",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4I",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4C",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4C",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4C",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4D",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4K",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-7",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480401/815-10-55-182",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480238/815-25-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-11",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-20",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-21",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-30",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147482949/835-30-55-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "https://asc.fasb.org//1943274/2147481961/940-320-45-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10(4))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "https://asc.fasb.org//205/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//205-20/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483475/205-20-45-11",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-4A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-4B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5C",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5D",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-7",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(24))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-7",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-11",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(12))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.19)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(a),(b))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "https://asc.fasb.org//235/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147480418/310-10-S99-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "https://asc.fasb.org//360/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482130/360-10-45-9",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "https://asc.fasb.org//440/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "https://asc.fasb.org//470/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481284/470-20-25-10",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "https://asc.fasb.org//505/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-6",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-7",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.C)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "https://asc.fasb.org//810/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-19",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-23",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "https://asc.fasb.org//815/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-21",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "860",
   "URI": "https://asc.fasb.org//860/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "https://asc.fasb.org//940-320/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-12)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(h))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(d))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7,8)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.8)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "https://asc.fasb.org//942-320/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147480876/942-470-45-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "https://asc.fasb.org//946-320/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "970",
   "URI": "https://asc.fasb.org//970/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "e",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "972",
   "URI": "https://asc.fasb.org//972/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "974",
   "URI": "https://asc.fasb.org//974/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "976",
   "URI": "https://asc.fasb.org//976/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "978",
   "URI": "https://asc.fasb.org//978/tableOfContent",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-6",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-6",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-7",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482659/740-20-45-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "360",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479638/944-360-45-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "360",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479638/944-360-45-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4D",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479607/944-360-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "323",
   "URI": "https://asc.fasb.org//323/tableOfContent",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r265": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r266": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1403",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r267": {
   "Footnote": "2",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r268": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r269": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column B",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-10",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r270": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column C",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r271": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column D",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r272": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column E",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r273": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r274": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column G",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r275": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r276": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column I",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r277": {
   "Footnote": "3",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r278": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r279": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r280": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r281": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r282": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(m)",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "(1)(iii)",
   "Subsection": "08",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-5C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(18))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-9",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-10",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483475/205-20-45-1B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "60",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482053/820-10-60-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(9))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.B)",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-17",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(3)",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-8",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(c))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "16(c)",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(i))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(3))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(4))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(i))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(n))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "https://asc.fasb.org//260/tableOfContent",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-10",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-16",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-40",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-40",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-40",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-40",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-15",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org//1943274/2147482987/272-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "https://asc.fasb.org//1943274/2147482987/272-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-42",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "https://asc.fasb.org//320/tableOfContent",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481830/320-10-45-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-10",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aaa)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483475/205-20-45-1D",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aaa)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(3)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(4)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481664/323-10-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479130/326-30-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-3A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-3B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Topic": "450",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147481071/942-405-45-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-16",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479837/606-10-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479837/606-10-45-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-8",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org//718/tableOfContent",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-1D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-9",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "https://asc.fasb.org//740/tableOfContent",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-10",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-17",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-21",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482526/740-270-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482603/740-30-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-19",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4E",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4K",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-5C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)(iii)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)(iv)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(i)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-20",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480237/815-40-50-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480237/815-40-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-10",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-17",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147483013/835-20-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org//1943274/2147482900/835-30-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-52",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org//1943274/2147481435/852-10-45-14",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-16",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481444/860-30-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "275",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-20",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "https://asc.fasb.org//1943274/2147482546/910-10-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "https://asc.fasb.org//1943274/2147479941/924-10-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org//1943274/2147479557/942-235-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(d))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-21",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(19))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(21))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(10))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(11))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(17))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(2)(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(3)(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(7)(b))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21D",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-29",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-7A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.6-03(d))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.6-03(i)(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.6-03(i)(2)(i))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.6-03(i)(2)(ii))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.6-03(i)(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-11",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-12",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-13",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "27",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-27",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(b)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(d)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(e)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(f)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(g)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "205",
   "Subparagraph": "(h)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480555/946-210-45-4",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(b)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(b)(2)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)(2)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-12",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r739": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481303/470-50-40-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(2)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(4)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(e)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(f)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481303/470-50-40-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(14))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(15))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(17))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(19))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(5)(a)(5))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(8))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(12)(c)",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-05(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-05(4))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(b)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "220",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483580/946-220-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(16)(c)",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r784": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r785": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r786": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r787": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r788": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r789": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "14",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r790": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r791": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07(9))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(d)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Subparagraph": "(d)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "15",
   "Topic": "480",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-3A",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 4))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r808": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r809": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481142/505-10-45-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r810": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r811": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r812": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r813": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(Column G))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r814": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13A(Column E))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r815": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13A(Column F))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r816": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r817": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13B(Column E))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r818": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13C(Column F))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r819": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-10",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r820": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13C(Column H))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r821": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r822": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r823": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r824": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 3))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r825": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r826": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r827": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r828": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r829": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-11",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r830": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r831": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r832": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(b)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r833": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r834": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(d)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r835": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-3",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r836": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-6",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r837": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column F))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r838": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column G))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r839": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column H))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r840": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 3))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r841": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r842": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29)",
   "Topic": "948",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r843": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "954",
   "URI": "https://asc.fasb.org//1943274/2147481027/954-310-50-2",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r844": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "https://asc.fasb.org//1943274/2147480327/954-440-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r845": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r846": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r847": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r848": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r849": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-4",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r850": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r851": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r852": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r853": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r854": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r855": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "https://asc.fasb.org//1943274/2147482856/976-310-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r856": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "https://asc.fasb.org//1943274/2147482707/978-310-50-1",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r857": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4D",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r858": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r859": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r860": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r861": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-16",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r862": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-20",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r863": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-21",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r864": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-22",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r865": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-52",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r866": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r867": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r868": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147481933/310-10-55-12A",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r869": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "79",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-79",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-5",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r870": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-80",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r871": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479081/326-30-55-8",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r872": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r873": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69B",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r874": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69C",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r875": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69E",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r876": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69F",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r877": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r878": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r879": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r880": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r881": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r882": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480547/715-80-55-8",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r883": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r884": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r885": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r886": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4K",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r887": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r888": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org//1943274/2147481372/852-10-55-10",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r889": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-29F",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r890": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(b)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r891": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(a)(1)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r892": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r893": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Subparagraph": "(d)",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r894": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r895": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r896": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r897": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13C(Column A)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r898": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13C(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r899": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481549/505-30-45-1",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r900": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480191/946-405-45-2",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r901": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "830",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-10",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r902": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "830",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-11",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r903": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "830",
   "Topic": "946",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-12",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r904": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r905": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r906": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r907": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r908": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r909": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r910": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-3",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r911": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "740",
   "Subparagraph": "(f)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r912": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r913": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4CC",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r914": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r915": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r916": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r917": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r918": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r919": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r920": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r921": {
   "Footnote": "2",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r922": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r923": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r924": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r925": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r926": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483504/205-10-50-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r927": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-7",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r928": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "210",
   "URI": "https://asc.fasb.org//210/tableOfContent",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r929": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(10))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147481089/718-20-55-12",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r930": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(12))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r931": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r932": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r933": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r934": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r935": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r936": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r937": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r938": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(7)(c))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r939": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(9)(a))",
   "Topic": "220",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147481089/718-20-55-13",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r940": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r941": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r942": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r943": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r944": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r945": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r946": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r947": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r948": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r949": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r950": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-55",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r951": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r952": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-13",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r953": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481830/320-10-45-11",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r954": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r955": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r956": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r957": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r958": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r959": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r960": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r961": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-9",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r962": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r963": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r964": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r965": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r966": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r967": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r968": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479130/326-30-45-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r969": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-8",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r970": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482130/360-10-45-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r971": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r972": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r973": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "https://asc.fasb.org//450/tableOfContent",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r974": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r975": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r976": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r977": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r978": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r979": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-15",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r980": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r981": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r982": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r983": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r984": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r985": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r986": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r987": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r988": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r989": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-16",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r990": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r991": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r992": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r993": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r994": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r995": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r996": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r997": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r998": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r999": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  }
 },
 "version": "2.2"
}
