<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:fmr="http://www.fidelity.com/20240829"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2023"
  xmlns:us-gaap="http://fasb.org/us-gaap/2023"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20240829.xsd" xlink:type="simple"/>
    <context id="C000020486_ClassMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-06-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="C000020486_InstantMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_0_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD0Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_1_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD1Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_2_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_3_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_4_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD4Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_EMD_5_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD5Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_AA_USTreasuryObligations_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AAUSTreasuryObligationsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_AA_USGovernmentAgencyDebt_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AAUSGovernmentAgencyDebtMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="C000020486_AA_RepurchaseAgreements_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AARepurchaseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-06-30</instant>
        </period>
    </context>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2023-06-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="holding">
        <measure>shares</measure>
    </unit>
    <dei:DocumentType contextRef="Trust" id="ixv-4297">N-CSR</dei:DocumentType>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-4298">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-4299">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-4300">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-4301">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-99">2024-06-30</dei:DocumentPeriodEndDate>
    <oef:MaterialFundChngNoticeTextBlock contextRef="C000020486_ClassMember" id="ixv-103">This report describes changes to the Fund that occurred during the reporting period.</oef:MaterialFundChngNoticeTextBlock>
    <oef:FundName contextRef="C000020486_ClassMember" id="ixv-116">Government Portfolio</oef:FundName>
    <oef:ClassName contextRef="C000020486_ClassMember" id="ixv-122">Government Portfolio</oef:ClassName>
    <dei:TradingSymbol contextRef="C000020486_ClassMember" id="ixv-126">NCCTX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock contextRef="C000020486_ClassMember" id="ixv-149">This annual shareholder report contains information about Government Portfolio for the period July 1, 2023 to June 30, 2024.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:ShareholderReportAnnualOrSemiAnnual contextRef="C000020486_ClassMember" id="ixv-151">annual shareholder report</oef:ShareholderReportAnnualOrSemiAnnual>
    <oef:AddlInfoTextBlock contextRef="C000020486_ClassMember" id="ixv-156">You can find additional information about the Fund at fundresearch.fidelity.com/prospectus/sec. You can also request this information by contacting us at 1-800-222-3232.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite contextRef="C000020486_ClassMember" id="ixv-158">fundresearch.fidelity.com/prospectus/sec</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber contextRef="C000020486_ClassMember" id="ixv-162">1-800-222-3232</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock contextRef="C000020486_ClassMember" id="ixv-169">&lt;span style="font-family:'Fidelity Sans';font-size:16px;color:#368627;font-style:normal;font-weight:bold;"&gt;What were your Fund costs for the last year?&lt;/span&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;(based on hypothetical $10,000 investment)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11px;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:12px;color:#000000;font-style:normal;font-weight:bold;"&gt;FUND COST (PREVIOUS YEAR)&lt;/span&gt;&lt;/div&gt;
&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-style:none;" width="100%"&gt;&lt;tr&gt;&lt;td style="width:41%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:27%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;Costs of a $10,000 investment&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:31%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;Costs paid as a percentage of a $10,000 investment &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:1%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:41%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="top"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Government Portfolio&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:27%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;$ &lt;/span&gt;14&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:31%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:center;"&gt;0.14&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;%&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:1%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;</oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="C000020486_ClassMember"
      decimals="0"
      id="ixv-4404"
      unitRef="usd">14</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="C000020486_ClassMember"
      decimals="INF"
      id="ixv-4405"
      unitRef="pure">0.0014</oef:ExpenseRatioPct>
    <oef:AddlFundStatisticsTextBlock contextRef="C000020486_ClassMember" id="ixv-219">&lt;span style="font-family:'Fidelity Sans';font-size:16px;color:#368627;font-style:normal;font-weight:bold;"&gt;Key Fund Statistics&lt;/span&gt;
&lt;span style="line-height:16px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;(as of June 30, 2024)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11px;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="1" style="border-collapse:separate;border-style:none;margin:auto;" width="100%"&gt;&lt;tr&gt;&lt;td style="width:63%; " valign="top"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:12px;color:#000000;font-style:normal;font-weight:bold;"&gt;KEY FACTS&lt;/span&gt;&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt; &lt;span&gt;&#160;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:63%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Fund Size&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:right;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;$&lt;/span&gt;20,603,345,239&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:right;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:63%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Number of Holdings&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:right;"&gt;289&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:right;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:63%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Total Advisory Fee&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:right;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;$&lt;/span&gt;40,152,360&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:right;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="middle"&gt;&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;</oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="C000020486_InstantMember"
      decimals="0"
      id="ixv-4406"
      unitRef="usd">20603345239</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="C000020486_InstantMember"
      decimals="INF"
      id="ixv-4407"
      unitRef="holding">289</oef:HoldingsCount>
    <oef:AdvisoryFeesPaidAmt
      contextRef="C000020486_ClassMember"
      decimals="0"
      id="ixv-4408"
      unitRef="usd">40152360</oef:AdvisoryFeesPaidAmt>
    <oef:HoldingsTableTextBlock contextRef="C000020486_ClassMember" id="ixv-288">
&#160;

EFFECTIVE MATURITY DIVERSIFICATION
(% of Fund's net assets)


&#160;
Days
&#160;


1-7

42.7

&#160;


8-30

29.9

&#160;


31-60

11.7

&#160;


61-90

5.9

&#160;


91-180

8.0

&#160;


&gt;180

2.5

&#160;


&#160;
&#160;




&#160;

U.S. Treasury Obligations

65.6


U.S. Government Agency - Debt

31.2


Repurchase Agreements

3.9




ASSET ALLOCATION (% of Fund's net assets)




Net Other Assets (Liabilities) - (0.7)%







</oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="C000020486_EMD_0_Member"
      decimals="INF"
      id="ixv-4409"
      unitRef="pure">0.427</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_1_Member"
      decimals="INF"
      id="ixv-4410"
      unitRef="pure">0.299</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_2_Member"
      decimals="INF"
      id="ixv-4411"
      unitRef="pure">0.117</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_3_Member"
      decimals="INF"
      id="ixv-4412"
      unitRef="pure">0.059</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_4_Member"
      decimals="INF"
      id="ixv-4413"
      unitRef="pure">0.080</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_5_Member"
      decimals="INF"
      id="ixv-4414"
      unitRef="pure">0.025</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USTreasuryObligations_Member"
      decimals="INF"
      id="ixv-4415"
      unitRef="pure">0.656</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USGovernmentAgencyDebt_Member"
      decimals="INF"
      id="ixv-4416"
      unitRef="pure">0.312</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_RepurchaseAgreements_Member"
      decimals="INF"
      id="ixv-4417"
      unitRef="pure">0.039</oef:PctOfNav>
    <oef:MaterialFundChngTextBlock contextRef="C000020486_ClassMember" id="ixv-414">
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:16px;color:#368627;font-style:normal;font-weight:bold;"&gt;How has the Fund changed?&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;This is a summary of certain changes to the Fund since July 1, 2023. For more complete information, you may review the Fund's next prospectus, which we expect to be available by&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:12px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;August 29, 2024 at &lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;fundresearch.fidelity.com/prospectus/sec&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt; or upon request at &lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;1-800-222-3232&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:0px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-style:none;" width="100%"&gt;&lt;tr&gt;&lt;td style="width:50%; background-color:#ebf3e9;border-right:2px dashed #368627;padding:19px 19px 19px 19px;" valign="top"&gt;&lt;div style="text-align:left;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;The fund's principal investment risks were updated in connection with the implementation of recent rule amendments related to money market funds adopted by the SEC.&lt;/span&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:50%; background-color:#ebf3e9;padding:19px 19px 19px 19px;" valign="top"&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;</oef:MaterialFundChngTextBlock>
    <oef:SummaryOfChngLegendTextBlock contextRef="C000020486_ClassMember" id="ixv-420">&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;This is a summary of certain changes to the Fund since July 1, 2023. For more complete information, you may review the Fund's next prospectus, which we expect to be available by&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:12px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;August 29, 2024 at &lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;fundresearch.fidelity.com/prospectus/sec&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt; or upon request at &lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;1-800-222-3232&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:0px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;.&lt;/span&gt;</oef:SummaryOfChngLegendTextBlock>
    <oef:UpdProspectusWebAddress contextRef="C000020486_ClassMember" id="ixv-424">&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;fundresearch.fidelity.com/prospectus/sec&lt;/span&gt;</oef:UpdProspectusWebAddress>
    <oef:UpdProspectusPhoneNumber contextRef="C000020486_ClassMember" id="ixv-427">&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;1-800-222-3232&lt;/span&gt;</oef:UpdProspectusPhoneNumber>
    <oef:MaterialFundChngRisksChngTextBlock contextRef="C000020486_ClassMember" id="ixv-439">&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;The fund's principal investment risks were updated in connection with the implementation of recent rule amendments related to money market funds adopted by the SEC.&lt;/span&gt;
&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;"&gt;&lt;/div&gt;</oef:MaterialFundChngRisksChngTextBlock>
</xbrl>
