<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>117</ContextCount>
  <ElementCount>184</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>48</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Condensed Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/StatementCondensedBalanceSheets</Role>
      <ShortName>Condensed Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Condensed Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/StatementCondensedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Condensed Statement of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/StatementCondensedStatementOfOperations</Role>
      <ShortName>Condensed Statement of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Condensed Statement of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/StatementCondensedStatementOfCashFlows</Role>
      <ShortName>Condensed Statement of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Condensed Statements of Stockholders Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/StatementCondensedStatementsOfStockholdersEquityDeficit</Role>
      <ShortName>Condensed Statements of Stockholders Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Organization and Business Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureOrganizationAndBusinessOperations</Role>
      <ShortName>Organization and Business Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Restatement of Previously Issued Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatements</Role>
      <ShortName>Restatement of Previously Issued Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Stockholder's Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureStockholderSEquity</Role>
      <ShortName>Stockholder's Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>20201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>13</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>30201 - Disclosure - Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSignificantAccountingPoliciesTables</Role>
      <ShortName>Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>30301 - Disclosure - Restatement of Previously Issued Financial Statements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsTables</Role>
      <ShortName>Restatement of Previously Issued Financial Statements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatements</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Organization and Business Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureOrganizationAndBusinessOperationsDetails</Role>
      <ShortName>Organization and Business Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureOrganizationAndBusinessOperations</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Summary of Significant Accounting Policies - Net Earnings (Loss) per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesNetEarningsLossPerShareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Net Earnings (Loss) per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>40203 - Disclosure - Summary of Significant Accounting Policies - Offering Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesOfferingCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Offering Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>40204 - Disclosure - Summary of Significant Accounting Policies - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>40205 - Disclosure - Summary of Significant Accounting Policies - Fair Value Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueAssumptionsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>40206 - Disclosure - Summary of Significant Accounting Policies - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>40207 - Disclosure - Summary of Significant Accounting Policies - Forward Purchase Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureSummaryOfSignificantAccountingPoliciesForwardPurchaseAgreementDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Forward Purchase Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Restatement of Previously Issued Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsDetails</Role>
      <ShortName>Restatement of Previously Issued Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsTables</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Related Party Transactions - Founder Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactionsFounderSharesDetails</Role>
      <ShortName>Related Party Transactions - Founder Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Related Party Transactions - Private Placement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactionsPrivatePlacementDetails</Role>
      <ShortName>Related Party Transactions - Private Placement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40403 - Disclosure - Related Party Transactions - Forward Purchase Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactionsForwardPurchaseAgreementDetails</Role>
      <ShortName>Related Party Transactions - Forward Purchase Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40404 - Disclosure - Related Party Transactions - Services Agreement and Facilities Sharing Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactionsServicesAgreementAndFacilitiesSharingAgreementDetails</Role>
      <ShortName>Related Party Transactions - Services Agreement and Facilities Sharing Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40405 - Disclosure - Related Party Transactions - Promissory Note and Related Party Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureRelatedPartyTransactionsPromissoryNoteAndRelatedPartyLoansDetails</Role>
      <ShortName>Related Party Transactions - Promissory Note and Related Party Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Stockholder's Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureStockholderSEquityDetails</Role>
      <ShortName>Stockholder's Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lmacthespac.com/role/DisclosureStockholderSEquity</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="lmac-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Stockholder's Equity - Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lmacthespac.com/role/DisclosureStockholderSEquityWarrantsDetails</Role>
      <ShortName>Stockholder's Equity - Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q/A" original="lmac-20210630x10qa.htm">lmac-20210630x10qa.htm</File>
    <File>lmac-20210630.xsd</File>
    <File>lmac-20210630_cal.xml</File>
    <File>lmac-20210630_def.xml</File>
    <File>lmac-20210630_lab.xml</File>
    <File>lmac-20210630_pre.xml</File>
    <File>lmac-20210630xex31d1.htm</File>
    <File>lmac-20210630xex31d2.htm</File>
    <File>lmac-20210630xex32.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="308">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
