XML 134 R111.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Financial instruments - North american natural gas forward contracts (Details) MMBTU in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2024 USD ($) MMBTU | Dec. 31, 2023 USD ($) MMBTU
Disclosure of financial assets [line items] |  |
Amounts reclassified on discontinuation of hedging relationship | $ 11,702,000 | $ 0
Accumulated other comprehensive income |  |
Disclosure of financial assets [line items] |  |
Reclassification of hedge gain (loss) in cash flow hedge | (76,000,000.0) | (22,500,000)
North american natural gas forward contract |  |
Disclosure of financial assets [line items] |  |
Amounts reclassified on discontinuation of hedging relationship | $ 11,700,000 | $ 0
North american natural gas forward contract | Cash flow hedges |  |
Disclosure of financial assets [line items] |  |
Hedging instrument, energy (in mmbtu) | MMBTU | 310,520 | 347,190
Notional amount | $ 1,048,973,000 | $ 1,183,319,000
Assets, fair value | 89,632,000 | 29,925,000
North american natural gas forward contract | Cash flow hedges | Other current assets |  |
Disclosure of financial assets [line items] |  |
Assets, fair value | 25,760,000 | 470,000
North american natural gas forward contract | Cash flow hedges | Other non-current assets |  |
Disclosure of financial assets [line items] |  |
Assets, fair value | 100,683,000 | 120,638,000
North american natural gas forward contract | Cash flow hedges | Other current liabilities |  |
Disclosure of financial assets [line items] |  |
Liabilities, fair value | (14,708,000) | (60,532,000)
North american natural gas forward contract | Cash flow hedges | Other long-term liabilities |  |
Disclosure of financial assets [line items] |  |
Liabilities, fair value | $ (22,103,000) | $ (30,651,000)
North american natural gas forward contract | Cash flow hedges | Bottom of range |  |
Disclosure of financial assets [line items] |  |
Hedging instrument, daily energy annualized (in mmbtu) | MMBTU | 50 | 50
North american natural gas forward contract | Cash flow hedges | Top of range |  |
Disclosure of financial assets [line items] |  |
Hedging instrument, daily energy annualized (in mmbtu) | MMBTU | 210 | 170

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_DisclosureOfFinancialAssetsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The fair value of financial assets. [Refer: At fair value [member]; Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_FinancialAssetsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_FinancialLiabilitiesAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The nominal or face amount of a financial instrument, used to calculate payments made on that instrument. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 112 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_112_c&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NotionalAmount
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Hedging Instrument, Daily, Energy + References No definition available. + Details
Name: | mx_HedgingInstrumentDailyEnergy
Namespace Prefix: | mx_
Data Type: | dtr-types1:energyItemType
Balance Type: | na
Period Type: | instant

X
- Definition Hedging Instrument, Energy + References No definition available. + Details
Name: | mx_HedgingInstrumentEnergy
Namespace Prefix: | mx_
Data Type: | dtr-types1:energyItemType
Balance Type: | na
Period Type: | duration

X
- Definition Increase (Decrease) Through Realized Hedge Losses (gains) Recognized In Cash Flow Hedges, Equity + References No definition available. + Details
Name: | mx_IncreaseDecreaseThroughRealizedHedgeLossesGainsRecognizedInCashFlowHedgesEquity
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Other Comprehensive Income, Cash Flow Hedge, That Will Be Reclassified To Profit Or Loss, Before Tax + References No definition available. + Details
Name: | mx_OtherComprehensiveIncomeCashFlowHedgeThatWillBeReclassifiedToProfitOrLossBeforeTax
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_AccumulatedOtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=mx_NorthAmericanNaturalGasForwardContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfHedgesAxis=ifrs-full_CashFlowHedgesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_AssetsAndLiabilitiesAxis=mx_OtherAssetsCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_AssetsAndLiabilitiesAxis=mx_OtherAssetsNonCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_AssetsAndLiabilitiesAxis=mx_OtherLiabilitiesCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_AssetsAndLiabilitiesAxis=mx_OtherLiabilitiesNonCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_BottomOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |