XML 120 R97.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Segmented information - Narrative (Details) | 12 Months Ended
--- | ---
Dec. 31, 2024 segment
Operating Segments [Abstract] |
Number of operating segments | 1

X
- Definition Number of Segments, Operating + References No definition available. + Details
Name: | mx_NumberOfSegmentsOperating
Namespace Prefix: | mx_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Operating Segments [Abstract] + References No definition available. + Details
Name: | mx_OperatingSegmentsAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration