XML 45 R30.htm IDEA: XBRL DOCUMENT
v3.23.2

Stockholders' Equity (Deficit) - Common Stock (Details) | 6 Months Ended
--- | ---
Jun. 30, 2023 Vote
Stockholders' Equity Note [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_StockholdersEquityNoteAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration