XML 70 R61.htm IDEA: XBRL DOCUMENT
v3.25.3

Derivative Financial Instruments - Details of Derivative Contracts (Detail) - USD ($) $ in Thousands | 9 Months Ended | 12 Months Ended
--- | --- | ---
Sep. 30, 2025 | Dec. 31, 2024
Zero Cost Collar One [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Oct. 17, 2024 | Apr. 05, 2024
Total notional amount | $ 9,000 | $ 9,000
Month of settlement, start | 2025-10 | 2025-01
Month of settlement, end | 2025-12 | 2025-03
Zero Cost Collar Two [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Feb. 03, 2025 | Jul. 09, 2024
Total notional amount | $ 9,000 | $ 18,000
Month of settlement, start | 2026-01 | 2025-04
Month of settlement, end | 2026-03 | 2025-09
Zero Cost Collar Three [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Jul. 10, 2025 | Oct. 17, 2024
Total notional amount | $ 9,000 | $ 9,000
Month of settlement, start | 2026-04 | 2025-10
Month of settlement, end | 2026-06 | 2025-12
Zero Cost Collar Four [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Jul. 17, 2025 |
Total notional amount | $ 9,000 |
Month of settlement, start | 2026-07 |
Month of settlement, end | 2026-09 |
Zero Cost Collar Five [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Sep. 30, 2025 |
Total notional amount | $ 27,000 |
Month of settlement, start | 2026-01 |
Month of settlement, end | 2026-12 |

X
- Definition Derivative, Settlement End Date, Month Year + References No definition available. + Details
Name: | mx_DerivativeSettlementEndDateMonthYear
Namespace Prefix: | mx_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Derivative, Settlement Start Date, Month Year + References No definition available. + Details
Name: | mx_DerivativeSettlementStartDateMonthYear
Namespace Prefix: | mx_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the entity entered into the derivative contract, in YYYY-MM-DD format. + References No definition available. + Details
Name: | us-gaap_DerivativeInceptionDates
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 20 -Name Accounting Standards Codification -Section 25 -Paragraph 6A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480682/815-20-25-6A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480237/815-40-50-5 + Details
Name: | us-gaap_DerivativeLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 181 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-181 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1B Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1A + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |