XML 101 R78.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Long-term debt - Maturity (Details) - USD ($) $ in Thousands | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | $ 2,414,935 | $ 2,141,801
Other limited recourse debt facilities |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 141,054 | 156,141
Unsecured notes |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 2,273,881 | $ 1,985,660
Carrying amount |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 2,443,228 |
Carrying amount | 2025 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 13,660 |
Carrying amount | 2026 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 13,796 |
Carrying amount | 2027 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 715,173 |
Carrying amount | 2028 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 16,026 |
Carrying amount | 2029 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 716,210 |
Carrying amount | Thereafter |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 968,363 |
Carrying amount | Other limited recourse debt facilities |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 143,228 |
Carrying amount | Other limited recourse debt facilities | 2025 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 13,660 |
Carrying amount | Other limited recourse debt facilities | 2026 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 13,796 |
Carrying amount | Other limited recourse debt facilities | 2027 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 15,173 |
Carrying amount | Other limited recourse debt facilities | 2028 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 16,026 |
Carrying amount | Other limited recourse debt facilities | 2029 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 16,210 |
Carrying amount | Other limited recourse debt facilities | Thereafter |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 68,363 |
Carrying amount | Unsecured notes |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 2,300,000 |
Carrying amount | Unsecured notes | 2025 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 0 |
Carrying amount | Unsecured notes | 2026 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 0 |
Carrying amount | Unsecured notes | 2027 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 700,000 |
Carrying amount | Unsecured notes | 2028 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 0 |
Carrying amount | Unsecured notes | 2029 |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | 700,000 |
Carrying amount | Unsecured notes | Thereafter |  |
Disclosure of maturity analysis for non-derivative financial liabilities [line items] |  |
Long-term debt | $ 900,000 |

X
- Definition The amount of outstanding funds that the entity is obligated to repay. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_Borrowings
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=mx_OtherLimitedRecourseDebtFacilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=mx_UnsecuredDebt1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis=ifrs-full_GrossCarryingAmountMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_NotLaterThanOneYearMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanFiveYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |