XML 42 R31.htm IDEA: XBRL DOCUMENT
v3.25.1

SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details) | Mar. 31, 2025 subsidiary
--- | ---
Accounting Policies [Abstract] |
Number of subsidiaries | 2

X
- Definition Number Of Subsidiaries + References No definition available. + Details
Name: | agm_NumberOfSubsidiaries
Namespace Prefix: | agm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_AccountingPoliciesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration