<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2026-06-16">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_1316919921">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_2316919921">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-06-16" id="Fact000003">0000883618</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2026-06-16" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp contextRef="AsOf2026-06-16" id="xdx2ixbrl0010">N-2</ffd:FormTp>
    <ffd:SubmissnTp contextRef="AsOf2026-06-16" id="xdx2ixbrl0011">424B2</ffd:SubmissnTp>
    <ffd:CfwdFormTp contextRef="From2026-06-162026-06-16_2" id="xdx2ixbrl0024">N-2</ffd:CfwdFormTp>
    <ffd:OffsetPrrFormTp
      contextRef="From2026-06-162026-06-16_2316919921"
      id="xdx2ixbrl0047">N-2</ffd:OffsetPrrFormTp>
    <ffd:OfferingTableNa
      contextRef="AsOf2026-06-16"
      id="xdx2ixbrl0055"
      xsi:nil="true"/>
    <ffd:OffsetTableNa
      contextRef="AsOf2026-06-16"
      id="xdx2ixbrl0056"
      xsi:nil="true"/>
    <dei:EntityRegistrantName contextRef="AsOf2026-06-16" id="Fact000012">Nuveen Select Tax-Free Income Portfolio</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="From2026-06-162026-06-16_1" id="Fact000013">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_1" id="Fact000014">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_1" id="Fact000015">Common Shares $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2026-06-162026-06-16_1" id="Fact000016">true</ffd:FeesOthrRuleFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="From2026-06-162026-06-16_1"
      decimals="INF"
      id="Fact000017"
      unitRef="USD">39376966.02</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="From2026-06-162026-06-16_1"
      decimals="INF"
      id="Fact000018"
      unitRef="Ratio">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="From2026-06-162026-06-16_1"
      decimals="INF"
      id="Fact000019"
      unitRef="USD">5437.96</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_2" id="Fact000020">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_2" id="Fact000021">Common Shares, $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="From2026-06-162026-06-16_2" id="Fact000022">true</ffd:Rule415a6Flg>
    <ffd:MaxAggtOfferingPric
      contextRef="From2026-06-162026-06-16_2"
      decimals="INF"
      id="Fact000023"
      unitRef="USD">106083793.09</ffd:MaxAggtOfferingPric>
    <ffd:CfwdPrrFileNb contextRef="From2026-06-162026-06-16_2" id="Fact000025">333-271575</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="From2026-06-162026-06-16_2" id="Fact000026">2023-06-22</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="From2026-06-162026-06-16_2"
      decimals="INF"
      id="Fact000027"
      unitRef="USD">11690.43</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000028"
      unitRef="USD">145460759.11</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000029"
      unitRef="USD">5437.96</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000030"
      unitRef="USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000031"
      unitRef="USD">1761.53</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000032"
      unitRef="USD">3676.43</ffd:NetFeeAmt>
    <ffd:Rule457pOffsetFlg
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000033">true</ffd:Rule457pOffsetFlg>
    <ffd:Rule457pOffsetFlg
      contextRef="From2026-06-162026-06-16_2316919921"
      id="Fact000034">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetClmdInd
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000035">true</ffd:OffsetClmdInd>
    <ffd:OffsetPrrFilerNm
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000036">Nuveen California Select Tax-Free Income Portfolio</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000037">N-2</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000038">333-271871</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000039">2023-05-12</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt
      contextRef="From2026-06-162026-06-16_1316919921"
      decimals="INF"
      id="Fact000040"
      unitRef="USD">1761.53</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000041">Equity</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000042">Common Shares, $0.01 par value per share</ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrNbOfUnsoldScties
      contextRef="From2026-06-162026-06-16_1316919921"
      decimals="INF"
      id="Fact000043"
      unitRef="Shares">1209600</ffd:OffsetPrrNbOfUnsoldScties>
    <ffd:OffsetPrrUnsoldOfferingAmt
      contextRef="From2026-06-162026-06-16_1316919921"
      decimals="INF"
      id="Fact000044"
      unitRef="USD">15984864</ffd:OffsetPrrUnsoldOfferingAmt>
    <ffd:OffsetClmdInd
      contextRef="From2026-06-162026-06-16_2316919921"
      id="Fact000045">false</ffd:OffsetClmdInd>
    <ffd:OffsetPrrFilerNm
      contextRef="From2026-06-162026-06-16_2316919921"
      id="Fact000046">Nuveen California Select Tax-Free Income Portfolio</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFileNb
      contextRef="From2026-06-162026-06-16_2316919921"
      id="Fact000048">333-271871</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt
      contextRef="From2026-06-162026-06-16_2316919921"
      id="Fact000049">2023-08-01</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt
      contextRef="From2026-06-162026-06-16_2316919921"
      decimals="INF"
      id="Fact000050"
      unitRef="USD">1761.53</ffd:OffsetPrrFeeAmt>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_1" id="Fact000051">The Registrant is relying upon Rule 457(c) under the Securities
Act of 1933 (&#x201c;Securities Act&#x201d;) to calculate the registration fee. The maximum aggregate offering price is estimated solely
for purposes of determining the registration fee based on the average of the high and low sales prices of the shares of Common Shares,
as reported by the New York Stock Exchange on June 10, 2026, in accordance with Rule 457(c) under the Securities Act. The proposed maximum
offering price per security will be determined from time to time by the Registrant in connection with the sale by the Registrant of the
securities registered under this Registration Statement.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_2" id="Fact000052">The Registrant previously registered 14,000,000 Common Shares in
reliance on Rule 457(c) under the Securities Act, with respect to which the Registrant paid filing fees of $22,206.40 in its prior Registration
Statement (File No. 333-271575), which was declared effective on June 22, 2023 (the &#x201c;2023 Registration Statement&#x201d;). As of
the time of this filing, 7,333,826 Common Shares remain unsold from the 2023 Registration Statement. Pursuant to Rule 415(a)(6) under
the Securities Act, this Registration Statement carries forward such unsold Common Shares, with respect to which $11,690.43 in filing
fees have already been paid.</ffd:OfferingNote>
    <ffd:TermntnCmpltnWdrwl
      contextRef="From2026-06-162026-06-16_1316919921"
      id="Fact000054">In accordance with the
Notes to Instruction 3.C.i. to Form N-2, this statement confirms that the offering of unsold Common Shares previously registered under
the 2023 NXC Registration Statement has terminated.</ffd:TermntnCmpltnWdrwl>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2026-06-16" id="Fact000057">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FnlPrspctsFlg contextRef="AsOf2026-06-16" id="Fact000058">false</ffd:FnlPrspctsFlg>
    <ffd:RegnFileNb contextRef="AsOf2026-06-16" id="Fact000059">333-296853</ffd:RegnFileNb>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#Fact000040"
          xlink:label="Fact000040"
          xlink:type="locator"/>
        <link:footnote id="Footnote000053" xlink:label="Footnote000053" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US">On May 12, 2023, Nuveen California Select Tax-Free Income Portfolio
(&#x201c;NXC&#x201d;) filed a Registration Statement (File No. 333-271871), which was amended on August 1, 2023 and declared effective
by the Securities and Exchange Commission on August 4, 2023, to register 1,300,000 Common Shares (the &#x201c;2023 NXC Registration Statement&#x201d;).
On January 12, 2026, NXC was reorganized with and into the Registrant (the &#x201c;Reorganization&#x201d;). As of the time of this filing,
1,209,600 Common Shares remain unsold from the 2023 NXC Registration Statement. Pursuant to Rule 457(p) under the Securities Act, a filing
fee credit of $1,761.53, the amount of the prior filing fee attributable to the unsold Common Shares under the 2023 NXC Registration
Statement, remains available to offset future registration fees, which the Registrant, as NXC&#x2019;s &#x201c;successor&#x201d; (as defined
in Rule 405 under the Securities Act) by way of the Reorganization, has claimed in connection with this filing. <xhtml:span id="xdx_90F_effd--TermntnCmpltnWdrwl_c20260616__20260616__ffd--OffsetAxis__1_zAzMPNRpeCGh">In accordance with the
Notes to Instruction 3.C.i. to Form N-2, this statement confirms that the offering of unsold Common Shares previously registered under
the 2023 NXC Registration Statement has terminated.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000040"
          xlink:to="Footnote000053"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000050"
          xlink:label="Fact000050"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000050"
          xlink:to="Footnote000053"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
