XML 83 R39.htm IDEA: XBRL DOCUMENT
v3.24.3

Stockholders' Equity- Common Stock (Details) | 9 Months Ended
--- | ---
Sep. 30, 2024 vote
Equity [Abstract] |
Number of votes per share that common stockholders are entitled to receive | 1

X
- Definition Represents the number of votes per share that common stockholders are entitled to receive. + References No definition available. + Details
Name: | mdgl_CommonStockVotingRightsNumber
Namespace Prefix: | mdgl_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

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