XML 38 R23.htm IDEA: XBRL DOCUMENT
v3.23.2

Summary of Significant Accounting Policies - Income Taxes (Details) | 6 Months Ended
--- | ---
Jun. 30, 2023
Income Taxes |
Valuation allowance on deferred tax assets (as a percent) | 100.00%

X
- Definition The percentage of valuation allowance on the deferred tax assets. + References No definition available. + Details
Name: | mdgl_DeferredTaxAssetsPercentageOfValuationAllowance
Namespace Prefix: | mdgl_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_IncomeTaxDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration