XML 74 R30.htm IDEA: XBRL DOCUMENT
v3.24.3

Summary of Significant Accounting Policies - Income Taxes (Details) | 9 Months Ended
--- | ---
Sep. 30, 2024
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-types1: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