<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0000819940="http://www.dreyfus.com/20251031"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="c485bpos-20260226.xsd" xlink:type="simple"/>
    <context id="Context_20251031_20251031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000765Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_PrincipalRisks2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_RiskLoseMoneyMember_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_RiskNotInsuredMember_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Fixed-incomemarketrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Fixed-incomemarketrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Interestraterisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Interestraterisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Creditrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Creditrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Governmentsecuritiesrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Governmentsecuritiesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Indexingstrategyrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Indexingstrategyrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Indexsamplingrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Indexsamplingrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Concentrationrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Concentrationrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Mortgage-relatedsecuritiesrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Mortgage-relatedsecuritiesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Asset-backedsecuritiesrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Asset-backedsecuritiesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Prepaymentrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Prepaymentrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Foreigninvestmentrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Foreigninvestmentrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Liquidityrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Liquidityrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Valuationrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Valuationrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Issuerrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Issuerrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Marketrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Marketrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Derivativesrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Derivativesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000307Member_Portfolioturnoverrisk2_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Portfolioturnoverrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251231_20251231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000766Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000765Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000765Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000765Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000307Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_PrincipalRisks2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_RiskLoseMoneyMember_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_RiskNotInsuredMember_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_Risksofstockinvesting2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Risksofstockinvesting2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_Indexingstrategyrisk2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Indexingstrategyrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_Concentrationrisk2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Concentrationrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_Marketrisk2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Marketrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_S000000299Member_Non-diversificationrisk2_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000819940:Non-diversificationrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251231_20251231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000819940:C000000734Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251031_20251031_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:SP500Indexreflectsnodeductionsforfeesexpensesortaxes32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-31</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:SP500Indexreflectsnodeductionsforfeesexpensesortaxes32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:SP500Indexreflectsnodeductionsforfeesexpensesortaxes32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000819940</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000819940:S000000299Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000819940:SP500Indexreflectsnodeductionsforfeesexpensesortaxes32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:EntityInvCompanyType contextRef="Context_20251031_20251031" id="ixv-39127">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Context_20251031_20251031" id="ixv-39128">BNY Mellon Investment Funds IV, Inc.</dei:EntityRegistrantName>
    <dei:DocumentEffectiveDate contextRef="Context_20251031_20251031" id="ixv-39129">2026-02-27</dei:DocumentEffectiveDate>
    <oef:ProspectusDate contextRef="Context_20251031_20251031" id="ixv-39130">2026-02-27</oef:ProspectusDate>
    <dei:TradingSymbol
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39131">DBIRX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39132">DBMIX</dei:TradingSymbol>
    <oef:RiskReturnHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39133">Fund
Summary</oef:RiskReturnHeading>
    <oef:ObjectiveHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39134"> Investment
Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39135">The fund seeks to match the total return of
the Bloomberg U.S. Aggregate Bond Index.</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39136">Fees and
Expenses</oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-302">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the fees and expenses
that you may pay if you buy, hold and sell shares of the fund.  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;You may
pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not
reflected in the table and examples below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:OperatingExpensesCaption
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39137">Annual
Fund Operating Expenses (expenses that you pay each year as a percentage of the value
of your investment)</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39138"
      unitRef="pure">0.0015</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39139"
      unitRef="pure">0.0015</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39140"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39141"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39142"
      unitRef="pure">0.0001</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39143"
      unitRef="pure">0.0001</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39144"
      unitRef="pure">0.0016</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39145"
      unitRef="pure">0.0041</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="_29_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="_30_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39148"
      unitRef="pure">0.0015</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39149"
      unitRef="pure">0.0040</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39150">Example</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-382">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The Example is intended to help you compare the cost of investing in the fund
with the cost of investing in other mutual funds.  The Example assumes that you invest $10,000 in the
fund for the time periods indicated and then hold or redeem all of your shares at the end of those periods.
 The Example also assumes that your investment has a 5% return each year and that the fund's operating
expenses remain the same.  The Example is based on net operating expenses, which reflects the contractual
undertaking by BNY Mellon Investment Adviser, Inc.  Although your actual costs may be higher or lower,
based on these assumptions your costs would be:&lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleYear01
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39151"
      unitRef="usd">15</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39152"
      unitRef="usd">48</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39153"
      unitRef="usd">85</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39154"
      unitRef="usd">192</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39155"
      unitRef="usd">41</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39156"
      unitRef="usd">128</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39157"
      unitRef="usd">224</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39158"
      unitRef="usd">505</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39159">Portfolio
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-424">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions,
when it buys and sells securities (or "turns over" its portfolio).  A higher portfolio turnover may indicate
higher transaction costs and may result in higher taxes when fund shares are held in a taxable account.
 These costs, which are not reflected in annual fund operating expenses or in the Example, affect the
fund's performance.  During the most recent fiscal year, the fund's portfolio turnover rate was 181.20%
of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39160"
      unitRef="pure">1.8120</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39161">Principal
Investment Strategy</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-429">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;To pursue its goal, the fund
normally invests at least 80% of its net assets, plus any borrowings for investment purposes, in bonds
that are included in the Bloomberg U.S. Aggregate Bond Index (or other instruments with similar economic
characteristics).  In seeking to match index performance, the fund's portfolio managers use a passive
management approach and generally purchase a representative sample of the bonds comprising the Bloomberg
U.S. Aggregate Bond Index.  Because the fund has expenses, performance will tend to be slightly lower
than that of the index.  The fund &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;attempts to have a correlation between its performance and that of the Bloomberg
U.S. Aggregate Bond Index of at least .95 before expenses.  A correlation of 1.00 would mean that the
fund and the index were perfectly correlated.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund's investments are
selected by a "sampling" process, which is a statistical process used to select bonds so that the fund
has investment characteristics that closely approximate those of the index.  By using this sampling process,
the fund typically will not invest in all of the securities in the Bloomberg U.S. Aggregate Bond Index.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The Bloomberg U.S. Aggregate Bond Index is a broad-based, unmanaged index that
measures the investment grade (Baa3/BBB-/BBB- or higher), U.S. dollar-denominated, fixed-rate taxable
bond market.  The index includes Treasuries, government-related and corporate securities, fixed-rate
agency mortgage-backed securities, asset-backed securities and commercial mortgage-backed securities
(agency and non-agency).  Although most of the securities in the index are issued by the U.S. Treasury
and other U.S. government and agency issuers, the index may include U.S. dollar-denominated bonds issued
by foreign issuers in which the fund may invest to the extent the index contains such securities.  To
maintain liquidity, the fund may invest up to 20% of its net assets in various short-term, fixed-income
securities and money market instruments.  The fund also may use index futures as a substitute for the
sale or purchase of securities and purchase or sell securities on a forward commitment (including "TBA"
(to be announced)) basis.  A derivatives contract, such as futures contracts, will obligate or entitle
the fund to deliver or receive an asset or cash payment based on the change in value of the underlying
asset.  The fund may engage in short-term trading in the execution of its investment strategy, which
will increase portfolio turnover.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund will concentrate
its investments (i.e., hold 25% or more of its total assets) in a particular industry or group of industries
to approximately the same extent that the index is concentrated. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;"Bloomberg&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;"
and Bloomberg U.S. Aggregate Bond Index are service marks of Bloomberg Finance L.P. and its affiliates,
including Bloomberg Index Services Limited, the administrator of the index, and have been licensed for
use for certain purposes by BNY Mellon Investment Adviser, Inc.  Bloomberg is not affiliated with the
fund, and it does not sell or endorse the fund, nor does it guarantee the performance of the fund or
the index.&lt;/span&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_PrincipalRisks2_S000000307Summary1Member"
      id="ixv-444">&lt;div style="border-bottom:0.25pt; border-bottom-style:solid; border-bottom-color:#000000; padding:0pt 0pt 1pt 0pt;"&gt;&lt;div style="font-size:12.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold;"&gt;&lt;span style="font-size:12.0pt; font-family:Arial; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;An
investment in the fund is not a bank deposit.  It is not insured or guaranteed by the Federal Deposit
Insurance Corporation (FDIC) or any other government agency.  It is not a complete investment program.
 The fund's share price fluctuates, sometimes dramatically, which means you could lose money.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_RiskNotInsuredMember_S000000307Summary1Member"
      id="ixv-39162">An
investment in the fund is not a bank deposit.  It is not insured or guaranteed by the Federal Deposit
Insurance Corporation (FDIC) or any other government agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_RiskLoseMoneyMember_S000000307Summary1Member"
      id="ixv-39163">
 The fund's share price fluctuates, sometimes dramatically, which means you could lose money.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Fixed-incomemarketrisk2_S000000307Summary1Member"
      id="ixv-449">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Fixed-income
market risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The market value of a fixed-income security may decline due
to general market conditions that are not specifically related to a particular company, such as real
or perceived adverse economic conditions, changes in the outlook for corporate earnings, changes in interest
or currency rates or adverse investor sentiment generally.  The fixed-income securities market can be
susceptible to increases in volatility and decreases in liquidity.  Liquidity can decline unpredictably
in response to overall economic conditions or credit tightening.  Increases in volatility and decreases
in liquidity may be caused by a rise in interest rates (or the expectation of a rise in interest rates).
 An unexpected increase in fund redemption requests, including requests from shareholders who may own
a significant percentage of the fund's shares, which may be triggered by market turmoil or an increase
in interest rates, could cause the fund to sell its holdings at a loss or at undesirable prices and adversely
affect the fund's share price and increase the fund's liquidity risk, fund expenses and/or taxable distributions.
 Federal Reserve policy in response to market conditions, including with respect to interest rates, may
adversely affect the value, volatility and liquidity of dividend and interest paying securities.  Policy
and legislative changes worldwide are affecting many aspects of financial regulation.  The impact of
these changes on the markets and the practical implications for market participants may not be fully
known for some time.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Interestraterisk2_S000000307Summary1Member"
      id="ixv-455">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest rate risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Prices
of bonds and other fixed rate fixed-income securities tend to move inversely with changes in interest
rates.  Typically, a rise in rates will adversely affect fixed-income securities and, accordingly, will
cause the value of the fund's investments in these securities to decline.  A wide variety of market factors
can cause interest rates to rise, including central bank monetary policy, rising inflation and changes
in general economic conditions.  It is difficult to predict the pace at which central banks or monetary
authorities may increase (or decrease) interest rates or the timing, frequency, or magnitude of such
changes.  During periods of very low interest rates, which occur from time to time due to market forces
or actions of governments and/or their central banks, including the Board of Governors of the Federal
Reserve System in the U.S., the fund may be subject to a greater risk of principal decline from rising
interest rates.  When interest rates fall, the fund's investments in new securities may be at lower yields
and may reduce the fund's income.  Changing interest rates may have unpredictable effects on markets,
may result in heightened market volatility and may detract from fund performance.  The magnitude of these
fluctuations in the market price of fixed-income securities is generally greater for securities with
longer effective maturities and durations because such instruments do not mature, reset interest rates
or become callable for longer periods of time.  The &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; margin-left:8.65pt; text-decoration:none;"&gt;change in the value of a fixed-income security or portfolio
can be approximated by multiplying its duration by a change in interest rates.    &lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Creditrisk2_S000000307Summary1Member"
      id="ixv-466">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Credit
risk&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;:  Failure of an issuer of a security to make timely interest or principal payments
when due, or a decline or perception of a decline in the credit quality of the security, can cause the
security's price to fall.  The lower a security's credit rating, the greater the chance that the issuer
of the security will default or fail to meet its payment obligations.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Governmentsecuritiesrisk2_S000000307Summary1Member"
      id="ixv-472">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Government
securities risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Not all obligations of the U.S. government, its agencies
and instrumentalities are backed by the full faith and credit of the U.S. Treasury.  Some obligations
are backed only by the credit of the issuing agency or instrumentality, and in some cases there may be
some risk of default by the issuer.  Any guarantee by the U.S. government or its agencies or instrumentalities
of a security held by the fund does not apply to the market value of such security or to shares of the
fund itself.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Indexingstrategyrisk2_S000000307Summary1Member"
      id="ixv-478">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Indexing strategy risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The
fund uses an indexing strategy.  It does not attempt to manage market volatility, use defensive strategies
or reduce the effects of any long-term periods of poor index performance.  The correlation between fund
and index performance may be affected by the fund's expenses and use of sampling techniques, changes
in securities markets, changes in the composition of the index and the timing of purchases and redemptions
of fund shares.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Indexsamplingrisk2_S000000307Summary1Member"
      id="ixv-484">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Index sampling risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#160; The
fund's use of sampling techniques will result in it holding a smaller number of securities than are in
the index, and the fund may not track the index as closely as it would if it were fully replicating the
index.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#1F497D; font-weight:normal; text-decoration:none;"&gt;&#160;&#160;&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Concentrationrisk2_S000000307Summary1Member"
      id="ixv-491">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Concentration risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The
fund will concentrate its investments (i.e., hold 25% or more of its total assets) in a particular industry
or group of industries to approximately the same extent that the index is concentrated.  To the extent
the fund concentrates in a particular industry or group of industries or sector, it may be more susceptible
to economic conditions and risks affecting those industries or sectors.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Mortgage-relatedsecuritiesrisk2_S000000307Summary1Member"
      id="ixv-497">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Mortgage-related
securities risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Mortgage-related securities are subject to credit, prepayment
and extension risk, and may be more volatile, less liquid and more difficult to price accurately than
more traditional debt securities.  The fund is subject to the credit risk associated with these securities,
including the market's perception of the creditworthiness of the issuing federal agency, as well as the
credit quality of the underlying assets.  Although certain mortgage-related securities are guaranteed
as to the timely payment of interest and principal by a third party (such as a U.S. government agency
or instrumentality with respect to government-related mortgage securities) the market prices for such
securities are not guaranteed and will fluctuate.  As with other interest-bearing securities, the prices
of certain mortgage-related securities are inversely affected by changes in interest rates.  However,
although the value of a mortgage-related security may decline when interest rates rise, the converse
is not necessarily true, since in periods of declining interest rates the mortgages underlying the security
are more likely to be prepaid causing the fund to purchase new securities at current market rates, which
usually will be lower.  The loss of higher yielding underlying mortgages and the reinvestment of proceeds
at lower interest rates, known as prepayment risk, can reduce the fund's potential price gain in response
to falling interest rates, reduce the fund's yield and/or cause the fund's share price to fall.  When
interest rates rise, the effective duration of the fund's mortgage-related and other asset-backed securities
may lengthen due to a drop in prepayments of the underlying mortgages or other assets.  This is known
as extension risk and would increase the fund's sensitivity to rising interest rates and its potential
for price declines.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Asset-backedsecuritiesrisk2_S000000307Summary1Member"
      id="ixv-503">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Asset-backed securities risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Asset-backed
securities are subject to credit, prepayment and extension risk, and may be more volatile, less liquid
and more difficult to price accurately than more traditional debt securities.  General downturns in the
economy could cause the value of asset-backed securities to fall.  Asset-backed securities are often
subject to more rapid repayment than their stated maturity date would indicate as a result of the pass-through
of prepayments of principal on the underlying loans.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Prepaymentrisk2_S000000307Summary1Member"
      id="ixv-509">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Prepayment risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Some
securities give the issuer the option to prepay or call the securities before their maturity date, which
may reduce the market value of the security and the anticipated yield-to-maturity.  Issuers often exercise
this right when interest rates fall.  If an issuer "calls" its securities during a time of declining
interest rates, the fund might have to reinvest the proceeds in an investment offering a lower yield,
and therefore might not benefit from any increase in value as a result of declining interest rates.
During periods of market illiquidity or rising interest rates, prices of "callable" issues are subject
to increased price fluctuation.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Foreigninvestmentrisk2_S000000307Summary1Member"
      id="ixv-515">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Foreign investment risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  To
the extent the fund invests in foreign securities, the fund's performance will be influenced by political,
social and economic factors affecting investments in foreign issuers.  Special risks associated with
investments in foreign issuers include less liquidity, less developed or less efficient trading markets,
lack of comprehensive company information, political and economic instability and differing auditing
and legal standards. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Liquidityrisk2_S000000307Summary1Member"
      id="ixv-521">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Liquidity risk&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;When
there is little or no active trading market for specific types of securities, it can become more difficult
to sell the securities in a timely manner at or near their perceived value.  In such a market, the value
of such securities and the fund's share price may fall dramatically. Investments that are illiquid or
that trade in lower volumes &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; margin-left:8.65pt; text-decoration:none;"&gt;may be more difficult to value. Investments in foreign securities
tend to have greater exposure to liquidity risk than domestic securities.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Valuationrisk2_S000000307Summary1Member"
      id="ixv-533">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Valuation
risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The price that the fund could receive upon the sale (or other disposition) of
an investment may differ from the fund's valuation of the investment, particularly for investments that
trade in lower volumes, investments that are valued using a fair valuation methodology or a price provided
by an independent pricing service, or during market turmoil or volatility.  As a result, the price received
upon the sale of an investment may be less than the value ascribed by the fund, and the fund could realize
a greater than expected loss or lesser than expected gain upon the sale of the investment.  The fund's
ability to value its investments also may be impacted by technological issues and/or errors by pricing
services or other third-party service providers.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Issuerrisk2_S000000307Summary1Member"
      id="ixv-539">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuer risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  A security's
market value may decline for a number of reasons which directly relate to the issuer, or to factors that
affect the issuer's industry.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Marketrisk2_S000000307Summary1Member"
      id="ixv-545">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Market risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The value
of the securities in which the fund invests may be affected by political, regulatory, economic and social
developments, and developments that impact specific economic sectors, industries or segments of the market.&#160;
In addition, turbulence in financial markets and reduced liquidity in equity, credit and/or fixed-income
markets may negatively affect many issuers, which could adversely affect the fund.&#160; Global economies
and financial markets are becoming increasingly interconnected, and conditions and events in one country,
region or financial market may adversely impact issuers in a different country, region or financial market.&#160;
These risks may be magnified if certain events or developments adversely interrupt the global supply
chain; in these and other circumstances, such risks might affect companies world-wide.&#160; Local, regional
or global events such as war, military conflicts, acts of terrorism, natural disasters, the spread of
infectious illness or other public health issues, recessions, elevated levels of government debt, changes
in trade regulation or economic sanctions, internal unrest and discord, or other events could have a
significant impact on the fund and its investments.&#160; &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Derivativesrisk2_S000000307Summary1Member"
      id="ixv-551">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  A small
investment in derivatives, such as futures contracts, could have a potentially large impact on the fund's
performance.  The use of derivatives involves risks different from, or possibly greater than, the risks
associated with investing directly in the underlying assets, and the fund's use of derivatives may result
in losses to the fund and increased portfolio volatility.  Derivatives in which the fund may invest can
be highly volatile, illiquid and difficult to value, and there is the risk that changes in the value
of a derivative held by the fund will not correlate with the underlying assets or the fund's other investments
in the manner intended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_Portfolioturnoverrisk2_S000000307Summary1Member"
      id="ixv-557">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Portfolio turnover risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The
fund may engage in short-term trading, which could produce higher transaction costs and taxable distributions,
and lower the fund's after-tax performance.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39164">Performance</oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-566">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The following bar chart and table provide some indication of the risks of investing
in the fund.  The bar chart shows changes in the performance of the fund's Class I shares from year to
year.  The table compares the average annual total returns of the fund's shares to those of the Bloomberg
U.S. Aggregate Bond Index, a broad measure of market performance.  The fund's past performance (before
and after taxes) is not necessarily an indication of how the fund will perform in the future.  Performance
for each share class will vary due to differences in expenses.  More recent performance information may
be available at www.bny.com/investments. &lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39165">The following bar chart and table provide some indication of the risks of investing
in the fund.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39166">The table compares the average annual total returns of the fund's shares to those of the Bloomberg
U.S. Aggregate Bond Index, a broad measure of market performance.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39167">The fund's past performance (before
and after taxes) is not necessarily an indication of how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39168">www.bny.com/investments</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:BarChartHeading
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39169">Year-by-Year Total Returns&#x2005;as of 12/31 each year
(%)</oef:BarChartHeading>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-586">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; font-weight:normal; text-decoration:none;"&gt;During the periods shown in the chart:&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Best&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt; Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2023,
Q4: 6.67&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Worst Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2022, Q1: (5.98)&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39170">Best Quarter</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39171">2023-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39172"
      unitRef="pure">0.0667</oef:BarChartHighestQuarterlyReturn>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39173">Worst Quarter</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39174">2022-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39175"
      unitRef="pure">-0.0598</oef:BarChartLowestQuarterlyReturn>
    <oef:PerformanceTableNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-600">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;After-tax performance is shown only for Class
I shares.  After-tax performance of the fund's other share class will vary. After-tax returns are calculated
using the historical highest individual federal marginal income tax rates, and do not reflect the impact
of state and local taxes.  Actual after-tax returns depend on the investor's tax situation and may differ
from those shown, and the after-tax returns shown are not relevant to investors who hold their shares
through U.S. tax-deferred arrangements such as 401(k) plans or individual retirement accounts.  Returns
after taxes on distributions and &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;sale of fund shares may be higher than returns before taxes or returns after taxes
on distributions due to an assumed tax benefit from losses on a sale of the fund's shares at the end
of the period.  &lt;/p&gt;</oef:PerformanceTableNarrativeTextBlock>
    <oef:PerformanceTableUsesHighestFederalRate
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39176">After-tax returns are calculated
using the historical highest individual federal marginal income tax rates, and do not reflect the impact
of state and local taxes.</oef:PerformanceTableUsesHighestFederalRate>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39177">Actual after-tax returns depend on the investor's tax situation and may differ
from those shown, and the after-tax returns shown are not relevant to investors who hold their shares
through U.S. tax-deferred arrangements such as 401(k) plans or individual retirement accounts.</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableExplanationAfterTaxHigher
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39178">Returns
after taxes on distributions and sale of fund shares may be higher than returns before taxes or returns after taxes
on distributions due to an assumed tax benefit from losses on a sale of the fund's shares at the end
of the period.</oef:PerformanceTableExplanationAfterTaxHigher>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39180">Average
Annual Total Returns (as of 12/31/25)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39181">returns before taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39182"
      unitRef="pure">0.0705</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39183"
      unitRef="pure">-0.0057</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39184"
      unitRef="pure">0.0182</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39185">returns after taxes on distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39186"
      unitRef="pure">0.0540</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39187"
      unitRef="pure">-0.0185</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39188"
      unitRef="pure">0.0059</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39189">returns after taxes on distributions and
sale of fund shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39190"
      unitRef="pure">0.0414</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39191"
      unitRef="pure">-0.0096</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39192"
      unitRef="pure">0.0087</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_C000000765Member_S000000307Member_S000000307Summary1Member"
      id="ixv-39193">returns before taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39194"
      unitRef="pure">0.0666</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39195"
      unitRef="pure">-0.0082</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000000765Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39196"
      unitRef="pure">0.0156</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member"
      id="ixv-39197">Bloomberg
U.S. Aggregate Bond Index</oef:AverageAnnualReturnLabel>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39198">reflects no deductions for fees, expenses
or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39199"
      unitRef="pure">0.0730</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39200"
      unitRef="pure">-0.0036</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_BloombergUSAggregateBondIndexreflectsnodeductionsforfeesexpensesortaxes31_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-39201"
      unitRef="pure">0.0201</oef:AvgAnnlRtrPct>
    <dei:TradingSymbol
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39202">DSPIX</dei:TradingSymbol>
    <oef:RiskReturnHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39203">Fund
Summary</oef:RiskReturnHeading>
    <oef:ObjectiveHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39204"> Investment
Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-1919">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund seeks to match the total return of
the S&amp;amp;P 500&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Index.&lt;/span&gt;&lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39205">Fees
and Expenses</oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-1928">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the fees and expenses
that you may pay if you buy, hold and sell shares of the fund.  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;You may
pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not
reflected in the table and examples below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:OperatingExpensesCaption
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39206">Annual Fund Operating Expenses (expenses
that you pay each year as a percentage of the value of your investment)</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39207"
      unitRef="pure">0.0020</oef:ManagementFeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39208"
      unitRef="pure">0.0002</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39209"
      unitRef="pure">0.0022</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="_147_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39211"
      unitRef="pure">0.0021</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39212">Example</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-1979">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The Example is intended to help you compare the cost of investing in the fund
with the cost of investing in other mutual funds.  The Example assumes that you invest $10,000 in the
fund for the time periods indicated and then hold or redeem all of your shares at the end of those periods.
 The Example also assumes that your investment has a 5% return each year and that the fund's operating
expenses remain the same.  The Example is based on net operating expenses, which reflects the contractual
undertaking by BNY Mellon Investment Adviser, Inc.  Although your actual costs may be higher or lower,
based on these assumptions your costs would be:&lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleYear01
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39213"
      unitRef="usd">22</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39214"
      unitRef="usd">68</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39215"
      unitRef="usd">118</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39216"
      unitRef="usd">268</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39217">Portfolio Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-2006">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The
fund pays transaction costs, such as commissions, when it buys and sells securities (or "turns over"
its portfolio).  A higher portfolio turnover may indicate higher transaction costs and may result in
higher taxes when fund shares are held in a taxable account.  These costs, which are not reflected in
annual fund operating expenses or in the Example, affect the fund's performance.  During the most recent
fiscal year, the fund's portfolio turnover rate was 2.69% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39218"
      unitRef="pure">0.0269</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39219">Principal Investment Strategy</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-2011">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;To
pursue its goal, the fund normally invests at least 95% of its total assets in common stocks included
in the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index.  To replicate index performance, the fund's portfolio managers use a passive
management approach and generally purchase all of the securities comprising the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index (though,
at times, the fund may invest in a representative sample of the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index).  Because the fund
has expenses, performance will tend to be slightly lower than that of the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index.  The fund
attempts to have a correlation between its performance and that of the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index of at least
.95, before expenses.  A correlation of 1.00 would mean that the fund and the index were perfectly correlated.&lt;/p&gt;
&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index is an unmanaged index that measures
the performance of the large-cap segment of the U.S. market.  Considered to be a proxy of the U.S. equity
market, the index is composed of 500 constituent companies.  Standard &amp;amp; Poor's weights each company's
stock in the index by its market capitalization (i.e., the share price times the number of shares outstanding),
adjusted by the number of available float shares (i.e., those shares available to public investors.
 As of February 2026, companies included in the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index generally must have market capitalizations
of $22.7 billion or more. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund may operate as a non-diversified fund,
as defined under the Investment Company Act of 1940, as amended, to the approximate extent the S&amp;amp;P
500&lt;sup&gt;&#xae;&lt;/sup&gt; Index is non-diversified, without shareholder approval.  The fund may therefore operate as non-diversified
solely as a result of a change in relative market capitalization or index weighting of one or more constituents
of the index.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund will concentrate its investments (i.e., hold 25%
or more of its total assets) in a particular industry or group of industries to approximately the same
extent that the index is concentrated.  In addition, to the extent the fund purchases securities comprising
the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; Index, the fund may, from time to time, invest a significant portion of its assets
in securities of companies in certain sectors, such as the information technology sector. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:italic;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;"Standard
&amp;amp; Poor's&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;," "S&amp;amp;P&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;,"
"Standard &amp;amp; Poor's 500&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;" and
"S&amp;amp;P 500&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;" are trademarks of Standard
&amp;amp; Poor's Financial Services, LLC (Standard &amp;amp; Poor's), and have been licensed for use by the fund.
 The fund is not sponsored, endorsed, sold or promoted by Standard &amp;amp; Poor's, and Standard &amp;amp; Poor's
makes no representation regarding the advisability of investing in the fund.&lt;/span&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_PrincipalRisks2_S000000299Summary2Member"
      id="ixv-2043">&lt;div style="border-bottom:0.25pt; border-bottom-style:solid; border-bottom-color:#000000; padding:0pt 0pt 1pt 0pt;"&gt;&lt;div style="font-size:12.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold;"&gt;&lt;span style="font-size:12.0pt; font-family:Arial; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal
Risks&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;An investment in the fund is not a bank deposit.
 It is not insured or guaranteed by the Federal Deposit Insurance Corporation (FDIC) or any other government
agency.  It is not a complete investment program.  The fund's share price fluctuates, sometimes dramatically,
which means you could lose money.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_RiskNotInsuredMember_S000000299Summary2Member"
      id="ixv-39220">An investment in the fund is not a bank deposit.
 It is not insured or guaranteed by the Federal Deposit Insurance Corporation (FDIC) or any other government
agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_RiskLoseMoneyMember_S000000299Summary2Member"
      id="ixv-39221">  The fund's share price fluctuates, sometimes dramatically,
which means you could lose money.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_Risksofstockinvesting2_S000000299Summary2Member"
      id="ixv-2048">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Risks of stock investing:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Stocks
generally fluctuate more in value than bonds and may decline significantly over short time periods.
There is the chance that stock prices overall will decline because stock markets tend to move in cycles,
with periods of rising prices and falling prices.  The market value of a stock may decline due to general
market conditions or because of factors that affect the particular company or the company's industry.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_Indexingstrategyrisk2_S000000299Summary2Member"
      id="ixv-2054">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Indexing
strategy risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The fund uses an indexing strategy.  It does not attempt
to manage market volatility, use defensive strategies or reduce the effects of any long-term periods
of poor index performance.  The correlation between fund and index performance may be affected by the
fund's expenses and/or use of sampling techniques, changes in securities markets, changes in the composition
of the index and the timing of purchases and redemptions of fund shares.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_Concentrationrisk2_S000000299Summary2Member"
      id="ixv-2060">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Concentration
risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The fund will concentrate its investments (i.e., hold 25% or more of its total
assets) in a particular industry or group of industries to approximately the same extent that the index
is concentrated.  To the extent the fund concentrates in a particular industry or group of industries
or sector, it may be more susceptible to economic conditions and risks affecting those industries or
sectors.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_Marketrisk2_S000000299Summary2Member"
      id="ixv-2066">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Market
risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The value of the securities in which the fund invests may be affected by political,
regulatory, economic and social developments, and developments that impact specific economic sectors,
industries or segments of the market.&#160; In addition, turbulence in financial markets and reduced liquidity
in equity, credit and/or fixed-income markets may negatively affect many issuers, which could adversely
affect the fund.&#160; Global economies and financial markets are becoming increasingly interconnected, and
conditions and events in one country, region or financial market may adversely impact issuers in a different
country, region or financial market.&#160; These risks may be magnified if certain events or developments
adversely interrupt the global supply chain; in these and other circumstances, such risks might affect
companies world-wide.&#160; Local, regional or global events such as war, military conflicts, acts of terrorism,
natural disasters, the spread of infectious illness or other public health issues, recessions, elevated
levels of government debt, changes in trade regulation or economic sanctions, internal unrest and discord,
or other events could have a significant impact on the fund and its investments.&#160; &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_Non-diversificationrisk2_S000000299Summary2Member"
      id="ixv-2072">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-diversification
risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Because the fund seeks to closely track the composition of the index, from time
to time, more than 25% of the fund's total assets may be invested in issuers representing more than 5%
of the fund's total assets due to an index rebalance or market movement, which would result in the fund
being non-diversified under the Investment Company Act of 1940, as amended.  A  non-diversified fund
may invest a greater portion of its assets in securities of a smaller number of individual issuers than
a diversified fund.  As a result, the fund's performance may be more vulnerable to changes in the market
value of a single issuer or group of issuers and more susceptible to risks associated with a single economic,
political or regulatory occurrence than a diversified fund.  &lt;/span&gt;&lt;/p&gt;
</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39222">Performance</oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-2084">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The following
bar chart and table provide some indication of the risks of investing in the fund.  The bar chart shows
changes in the performance of the fund's Class I shares from year to year.  The table compares the average
annual total returns of the fund's Class I shares to those of the S&amp;amp;P 500&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;
Index, a broad measure of market performance.  The fund's past performance (before and after taxes) is
not necessarily an indication of how the fund will perform in the future.  More recent performance information
may be available at www.bny.com/investments.  Prior to August 31, 2016, the fund's Class I shares were
undesignated. &lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39223">The following
bar chart and table provide some indication of the risks of investing in the fund.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39224">The table compares the average
annual total returns of the fund's Class I shares to those of the S&amp;P 500&#xae;
Index, a broad measure of market performance.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39226">The fund's past performance (before and after taxes) is
not necessarily an indication of how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39227">www.bny.com/investments</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:BarChartHeading
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39228">Year-by-Year Total Returns&#x2005;as of 12/31 each year
(%)</oef:BarChartHeading>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-2109">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; font-weight:normal; text-decoration:none;"&gt;During the periods shown in the chart:&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Best&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt; Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2020,
Q2: 20.48&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Worst Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2020, Q1: (19.63)&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39229">Best Quarter</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39230">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39231"
      unitRef="pure">0.2048</oef:BarChartHighestQuarterlyReturn>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39232">Worst Quarter</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39233">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39234"
      unitRef="pure">-0.1963</oef:BarChartLowestQuarterlyReturn>
    <oef:PerformanceTableNarrativeTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-2123">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;After-tax returns are calculated using the
historical highest individual federal marginal income tax rates, and do not reflect the impact of state
and local taxes.  Actual after-tax returns depend on the investor's tax situation and may differ from
those shown, and the after-tax returns shown are not relevant to investors who hold their shares through
U.S. tax-deferred arrangements such as 401(k) plans or individual retirement accounts.  Returns after
taxes on distributions and sale of fund shares may be higher than returns before taxes or returns after
taxes on distributions due to an assumed tax benefit from losses on a sale of the fund's shares at the
end of the period.  &lt;/p&gt;</oef:PerformanceTableNarrativeTextBlock>
    <oef:PerformanceTableUsesHighestFederalRate
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39235">After-tax returns are calculated using the
historical highest individual federal marginal income tax rates, and do not reflect the impact of state
and local taxes.</oef:PerformanceTableUsesHighestFederalRate>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39236">Actual after-tax returns depend on the investor's tax situation and may differ from
those shown, and the after-tax returns shown are not relevant to investors who hold their shares through
U.S. tax-deferred arrangements such as 401(k) plans or individual retirement accounts.</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableExplanationAfterTaxHigher
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39237">Returns after
taxes on distributions and sale of fund shares may be higher than returns before taxes or returns after
taxes on distributions due to an assumed tax benefit from losses on a sale of the fund's shares at the
end of the period.</oef:PerformanceTableExplanationAfterTaxHigher>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39238">Average
Annual Total Returns (as of 12/31/25)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39239">returns before taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39240"
      unitRef="pure">0.1763</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39241"
      unitRef="pure">0.1419</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39242"
      unitRef="pure">0.1459</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39243">returns after taxes on distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39244"
      unitRef="pure">0.1054</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39245"
      unitRef="pure">0.0893</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39246"
      unitRef="pure">0.1135</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      id="ixv-39247">returns after taxes on distributions and
sale of fund shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39248"
      unitRef="pure">0.1556</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39249"
      unitRef="pure">0.1048</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39250"
      unitRef="pure">0.1155</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20251031_20251031_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member"
      id="ixv-39251">S&amp;P
500&#xae;&#160;Index
</oef:AverageAnnualReturnLabel>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39253">reflects
no deductions for fees, expenses or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39254"
      unitRef="pure">0.1787</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39255"
      unitRef="pure">0.1442</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_SP500Indexreflectsnodeductionsforfeesexpensesortaxes32_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-39256"
      unitRef="pure">0.1481</oef:AvgAnnlRtrPct>
    <dei:DocumentType contextRef="Context_20251031_20251031" id="ixv-39259">485BPOS</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Context_20251031_20251031" id="ixv-39260">2025-10-31</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="Context_20251031_20251031" id="ixv-39261">0000819940</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="Context_20251031_20251031" id="ixv-39262">false</dei:AmendmentFlag>
    <dei:DocumentCreationDate contextRef="Context_20251031_20251031" id="ixv-39263">2026-02-26</dei:DocumentCreationDate>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39264">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000307Summary1Member row dei_LegalEntityAxis compact cik0000819940_S000000307Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39265">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000307Summary1Member row dei_LegalEntityAxis compact cik0000819940_S000000307Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-39266">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000307Summary1Member row dei_LegalEntityAxis compact cik0000819940_S000000307Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39267">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000299Summary2Member row dei_LegalEntityAxis compact cik0000819940_S000000299Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39268">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000299Summary2Member row dei_LegalEntityAxis compact cik0000819940_S000000299Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-39269">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0000819940_S000000299Summary2Member row dei_LegalEntityAxis compact cik0000819940_S000000299Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40075"
      unitRef="pure">0.0233</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40076"
      unitRef="pure">0.0335</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40077"
      unitRef="pure">-0.0014</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40078"
      unitRef="pure">0.085</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40079"
      unitRef="pure">0.0753</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40080"
      unitRef="pure">-0.0178</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40081"
      unitRef="pure">-0.1331</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40082"
      unitRef="pure">0.0539</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40083"
      unitRef="pure">0.0117</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20251231_20251231_C000000766Member_S000000307Member_S000000307Summary1Member"
      decimals="INF"
      id="ixv-40084"
      unitRef="pure">0.0705000019073486</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40085"
      unitRef="pure">0.1174</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40086"
      unitRef="pure">0.2158</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40087"
      unitRef="pure">-0.0459</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40088"
      unitRef="pure">0.3129</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40089"
      unitRef="pure">0.1818</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40090"
      unitRef="pure">0.2849</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40091"
      unitRef="pure">-0.183</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40092"
      unitRef="pure">0.2603</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40093"
      unitRef="pure">0.2473</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20251231_20251231_C000000734Member_S000000299Member_S000000299Summary2Member"
      decimals="INF"
      id="ixv-40094"
      unitRef="pure">0.176300010681152</oef:AnnlRtrPct>
    <cik0000819940:CustomRisksTableTextBlock
      contextRef="Context_20251031_20251031_S000000307Member_S000000307Summary1Member"
      id="ixv-40097">~ http://www.dreyfus.com/20251031/role/RRRiskTable3 ~</cik0000819940:CustomRisksTableTextBlock>
    <cik0000819940:CustomRisksTableTextBlock
      contextRef="Context_20251031_20251031_S000000299Member_S000000299Summary2Member"
      id="ixv-40098">~ http://www.dreyfus.com/20251031/role/RRRiskTable5 ~</cik0000819940:CustomRisksTableTextBlock>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#_30_" xlink:label="_30_" xlink:type="locator"/>
        <link:loc xlink:href="#_29_" xlink:label="_29_" xlink:type="locator"/>
        <link:footnote id="fn1_" xlink:label="fn1_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:9.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;">The fund's
investment adviser, BNY Mellon Investment Adviser, Inc., has agreed in its investment management agreement
with the fund to:  (1) pay all of the fund's direct expenses, except management fees, Rule 12b-1 fees
and certain other expenses, including the fees and expenses of the non-interested board members and their
counsel, and (2) reduce its fees pursuant to the investment management agreement in an amount equal to
the fund's allocable portion of the fees and expenses of the non-interested board members and their counsel
(in the amount of .01% for the past fiscal year).  These provisions in the investment management agreement
may not be amended without the approval of the fund's shareholders.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_30_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_29_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_147_"
          xlink:label="_147_"
          xlink:type="locator"/>
        <link:footnote id="fn2_" xlink:label="fn2_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:9.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;">The fund's investment adviser,
BNY Mellon Investment Adviser, Inc., has agreed in its management agreement with the fund to pay all
of the fund's expenses, except management fees, interest expenses, brokerage fees, commissions and commitment
fees on borrowings  if any, fees pursuant to any  distribution or shareholder services plan adopted by
the fund, fees and expenses of the non-interested board members and their counsel and independent counsel
to the fund, and any extraordinary expenses.  BNY Mellon Investment Adviser, Inc. has further agreed
to reduce its fees in an amount equal to the fund's allocable portion of the fees and expenses of the
non-interested board members and the fees and expenses of counsel to the fund and to the non-interested
board members (in the amount of .01% for the past fiscal year).  These provisions in the management agreement
may not be amended without the approval of the fund's shareholders. </xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_147_"
          xlink:to="fn2_"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
