v3.25.4

Income Taxes - Summary of Investment Tax Credit and Other Tax Attributes Carryforwards (Details) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2025 USD ($)
United States |
Income Taxes Disclosures [Line Items] |
Net operating loss carryforwards | $ 76,800
Interest | $ 343,200
Tax loss carryforwards expiration period | Indefinite
Other tax carryforward expiration period | Indefinite
German Tax Authorities |
Income Taxes Disclosures [Line Items] |
Corporate and trade tax loss | $ 101,300
Interest | $ 24,800
Tax loss carryforwards expiration period | Indefinite
Other tax carryforward expiration period | Indefinite
Canada Revenue Agency |
Income Taxes Disclosures [Line Items] |
Net operating loss carryforwards | $ 174,100
Interest | 51,500
Scientific research and experimental development investment tax credit carryforwards | $ 6,800
Other tax carryforward expiration period | Indefinite
Canada Revenue Agency | Minimum |
Income Taxes Disclosures [Line Items] |
Tax loss carryforwards expiration period | 2036
Tax credits carryforward, expiration year | 2030
Canada Revenue Agency | Maximum |
Income Taxes Disclosures [Line Items] |
Tax loss carryforwards expiration period | 2044
Tax credits carryforward, expiration year | 2044
Australian Taxation Office |
Income Taxes Disclosures [Line Items] |
Net operating loss carryforwards | $ 30,200
Tax loss carryforwards expiration period | Indefinite

X
- Definition Corporate and trade tax loss carryforward. + References No definition available. + Details
Name: | merc_CorporateAndTradeTaxLossCarryforward
Namespace Prefix: | merc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Income Taxes Disclosures [Line Items] + References No definition available. + Details
Name: | merc_IncomeTaxesDisclosuresLineItems
Namespace Prefix: | merc_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Other tax carryforwards expiration period. + References No definition available. + Details
Name: | merc_OtherTaxCarryforwardExpirationPeriod
Namespace Prefix: | merc_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax credit carryforward expiration year. + References No definition available. + Details
Name: | merc_TaxCreditCarryforwardExpirationYear
Namespace Prefix: | merc_
Data Type: | dtr-types:gYearListItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax loss carryforward expiration period. + References No definition available. + Details
Name: | merc_TaxLossCarryforwardExpirationPeriod
Namespace Prefix: | merc_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible tax carryforwards, classified as other. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-6 + Details
Name: | us-gaap_DeferredTaxAssetsOtherTaxCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-6 + Details
Name: | us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_OperatingLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_InternalRevenueServiceIRSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_FederalMinistryOfFinanceGermanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_CanadaRevenueAgencyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_AustralianTaxationOfficeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |