<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.2.u1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>259</ContextCount>
  <ElementCount>331</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>75</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995301 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995302 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ConsolidatedBalanceSheet_Parentheticals</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995303 - Statement - Condensed Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ConsolidatedIncomeStatement</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995304 - Statement - Condensed Consolidated Statements of Operations (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ConsolidatedIncomeStatement_Parentheticals</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995305 - Statement - Condensed Consolidated Statements of Changes in Members??? and Stockholders??? Equity (Deficit) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ShareholdersEquityType2or3</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Members??? and Stockholders??? Equity (Deficit) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995306 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ConsolidatedCashFlow</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995307 - Disclosure - Organization and Business Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/OrganizationandBusinessOperations</Role>
      <ShortName>Organization and Business Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995308 - Disclosure - Liquidity and Capital Resources</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/LiquidityandCapitalResources</Role>
      <ShortName>Liquidity and Capital Resources</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995309 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995310 - Disclosure - Recapitalization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/Recapitalization</Role>
      <ShortName>Recapitalization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995311 - Disclosure - Equity Method Investment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/EquityMethodInvestment</Role>
      <ShortName>Equity Method Investment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995312 - Disclosure - Accrued Expenses and Other Current Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/AccruedExpensesandOtherCurrentLiabilities</Role>
      <ShortName>Accrued Expenses and Other Current Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995313 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995314 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995315 - Disclosure - Stockholders??? Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/StockholdersEquityDeficit</Role>
      <ShortName>Stockholders??? Equity (Deficit)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995316 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995317 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995318 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>996000 - Disclosure - Accounting Policies, by Policy (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/AccountingPoliciesByPolicy</Role>
      <ShortName>Accounting Policies, by Policy (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>996001 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>996002 - Disclosure - Recapitalization (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/RecapitalizationTables</Role>
      <ShortName>Recapitalization (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/Recapitalization</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>996003 - Disclosure - Equity Method Investment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/EquityMethodInvestmentTables</Role>
      <ShortName>Equity Method Investment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/EquityMethodInvestment</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>996004 - Disclosure - Accrued Expenses and Other Current Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/AccruedExpensesandOtherCurrentLiabilitiesTables</Role>
      <ShortName>Accrued Expenses and Other Current Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/AccruedExpensesandOtherCurrentLiabilities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>996005 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/Leases</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>996006 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>996007 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/CommitmentsandContingencies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>996008 - Disclosure - Organization and Business Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/OrganizationandBusinessOperationsDetails</Role>
      <ShortName>Organization and Business Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/OrganizationandBusinessOperations</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>996009 - Disclosure - Liquidity and Capital Resources (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/LiquidityandCapitalResourcesDetails</Role>
      <ShortName>Liquidity and Capital Resources (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/LiquidityandCapitalResources</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>996010 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>996011 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of Estimated Useful Lives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofEstimatedUsefulLivesTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of Estimated Useful Lives</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>996012 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of Net Loss Per Share of Common Stock Presented in the Condensed Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofNetLossPerShareofCommonStockPresentedintheCondensedConsolidatedStatementsofOperationsTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of Net Loss Per Share of Common Stock Presented in the Condensed Consolidated Statements of Operations</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>996013 - Disclosure - Recapitalization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/RecapitalizationDetails</Role>
      <ShortName>Recapitalization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/RecapitalizationTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>996014 - Disclosure - Recapitalization (Details) - Schedule of Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofBusinessCombinationTable</Role>
      <ShortName>Recapitalization (Details) - Schedule of Business Combination</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/RecapitalizationTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>996015 - Disclosure - Recapitalization (Details) - Schedule of Common Stock Issued</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofCommonStockIssuedTable</Role>
      <ShortName>Recapitalization (Details) - Schedule of Common Stock Issued</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/RecapitalizationTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>996016 - Disclosure - Recapitalization (Details) - Schedule of the Number of Legacy Montana Shares</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleoftheNumberofLegacyMontanaSharesTable</Role>
      <ShortName>Recapitalization (Details) - Schedule of the Number of Legacy Montana Shares</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/RecapitalizationTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>996017 - Disclosure - Equity Method Investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/EquityMethodInvestmentDetails</Role>
      <ShortName>Equity Method Investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/EquityMethodInvestmentTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>996018 - Disclosure - Equity Method Investment (Details) - Schedule of Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofFinancialInformationTable</Role>
      <ShortName>Equity Method Investment (Details) - Schedule of Financial Information</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/EquityMethodInvestmentTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>996019 - Disclosure - Equity Method Investment (Details) - Schedule of Condensed Income Statement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofCondensedIncomeStatementTable</Role>
      <ShortName>Equity Method Investment (Details) - Schedule of Condensed Income Statement</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/EquityMethodInvestmentTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>996020 - Disclosure - Accrued Expenses and Other Current Liabilities (Details) - Schedule of Accrued Expenses and Other Current Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofAccruedExpensesandOtherCurrentLiabilitiesTable</Role>
      <ShortName>Accrued Expenses and Other Current Liabilities (Details) - Schedule of Accrued Expenses and Other Current Liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/AccruedExpensesandOtherCurrentLiabilitiesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>996021 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/LeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/LeasesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>996022 - Disclosure - Leases (Details) - Schedule of Future Minimum Rental Payments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofFutureMinimumRentalPaymentsTable</Role>
      <ShortName>Leases (Details) - Schedule of Future Minimum Rental Payments</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/LeasesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>996023 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/RelatedPartyTransactions</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>996024 - Disclosure - Stockholders??? Equity (Deficit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/StockholdersEquityDeficitDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/StockholdersEquityDeficit</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>996025 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/StockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/StockBasedCompensation</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>996026 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>996027 - Disclosure - Fair Value Measurements (Details) - Schedule of Company???s Assets that are Measured at Fair Value on a Recurring Basis</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofCompanysAssetsthatareMeasuredatFairValueonaRecurringBasisTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of Company???s Assets that are Measured at Fair Value on a Recurring Basis</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>996028 - Disclosure - Fair Value Measurements (Details) - Schedule of Estimated Fair Value Earnout Shares</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofEstimatedFairValueEarnoutSharesTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of Estimated Fair Value Earnout Shares</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>996029 - Disclosure - Fair Value Measurements (Details) - Schedule of Earnout Share Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofEarnoutShareLiabilityTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of Earnout Share Liability</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>996030 - Disclosure - Fair Value Measurements (Details) - Schedule of True Up Shares liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofTrueUpSharesliabilityTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of True Up Shares liability</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>996031 - Disclosure - Fair Value Measurements (Details) - Schedule of Vesting Shares Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofVestingSharesLiabilityTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of Vesting Shares Liability</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>996032 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="ea0210598-10q_montana.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>996033 - Disclosure - Commitments and Contingencies (Details) - Schedule of Future Minimum Royalties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xpdispac.com/role/ScheduleofFutureMinimumRoyaltiesTable</Role>
      <ShortName>Commitments and Contingencies (Details) - Schedule of Future Minimum Royalties</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xpdispac.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>airj-20240630.xsd</File>
    <File>airj-20240630_cal.xml</File>
    <File>airj-20240630_def.xml</File>
    <File>airj-20240630_lab.xml</File>
    <File>airj-20240630_pre.xml</File>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="ea0210598-10q_montana.htm">ea0210598-10q_montana.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="710">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="35">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
