XML 43 R32.htm IDEA: XBRL DOCUMENT
v3.25.2

SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details) | Jun. 30, 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