XML 67 R41.htm IDEA: XBRL DOCUMENT
v3.25.0.1

ORGANIZATION (Details) | 12 Months Ended
--- | ---
Dec. 31, 2024 line_of_business
Organization, Consolidation and Presentation of Financial Statements [Abstract] |
Number of lines of business | 2

X
- Definition Number Of Lines Of Business + References No definition available. + Details
Name: | agm_NumberOfLinesOfBusiness
Namespace Prefix: | agm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

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