v3.25.4

Inventories - Additional Information (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2023
Inventory [Line Items] |  |  |
Inventory write-down | $ 54,400 | $ 9,000 | $ 58,600
Raw materials inventory |  |  |
Inventory [Line Items] |  |  |
Inventory write-down | 17,800 | 3,500 |
Finished goods inventory |  |  |
Inventory [Line Items] |  |  |
Inventory write-down | $ 5,200 | $ 1,500 |

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 No definition available. + Details
Name: | us-gaap_InventoryLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of loss from reductions in inventory due to subsequent measurement adjustments, including, but not limited to, physical deterioration, obsolescence, or changes in price levels. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 330 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483080/330-10-50-2 + Details
Name: | us-gaap_InventoryWriteDown
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_PublicUtilitiesInventoryAxis=merc_InventoryRawMaterialsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PublicUtilitiesInventoryAxis=merc_FinishedGoodsInventoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |