<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>8</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>9</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <context id="offrl_10">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>10</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-468">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-469">S-3</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-470">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-471">0000736772</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-472">CNB FINANCIAL CORP/PA</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-476"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-477"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-478"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-479"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FormTp contextRef="rc" id="ixv-585">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-586">CNB FINANCIAL CORP/PA</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-587">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-588">Common Stock, no par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-589">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-590">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-591">Preferred Stock, no par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_2" id="ixv-592">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-593">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-594">Depositary Shares</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_3" id="ixv-595">true</ffd:Rule457oFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-596">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-597">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_4" id="ixv-598">true</ffd:Rule457oFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_5" id="ixv-599">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-600">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule457oFlg contextRef="offrl_5" id="ixv-601">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_5"
      decimals="2"
      id="ixv-602"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-603"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_5"
      decimals="2"
      id="ixv-604"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_6" id="ixv-605">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_6" id="ixv-606">Common Stock, no par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_6" id="ixv-607">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_6" id="ixv-608">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_6" id="ixv-609">333-272781</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_6" id="ixv-610">2023-07-10</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_7" id="ixv-611">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_7" id="ixv-612">Preferred Stock, no par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_7" id="ixv-613">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_7" id="ixv-614">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_7" id="ixv-615">333-272781</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_7" id="ixv-616">2023-07-10</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_8" id="ixv-617">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_8" id="ixv-618">Depositary Shares</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_8" id="ixv-619">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_8" id="ixv-620">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_8" id="ixv-621">333-272781</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_8" id="ixv-622">2023-07-10</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_9" id="ixv-623">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_9" id="ixv-624">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="offrl_9" id="ixv-625">true</ffd:Rule415a6Flg>
    <ffd:CfwdFormTp contextRef="offrl_9" id="ixv-626">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_9" id="ixv-627">333-272781</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_9" id="ixv-628">2023-07-10</ffd:CfwdPrrFctvDt>
    <ffd:OfferingSctyTp contextRef="offrl_10" id="ixv-629">Unallocated (Universal) Shelf</ffd:OfferingSctyTp>
    <ffd:Rule415a6Flg contextRef="offrl_10" id="ixv-630">true</ffd:Rule415a6Flg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_10"
      decimals="2"
      id="ixv-631"
      unitRef="USD">150000000.00</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp contextRef="offrl_10" id="ixv-632">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb contextRef="offrl_10" id="ixv-633">333-272781</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="offrl_10" id="ixv-634">2023-07-10</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="offrl_10"
      decimals="2"
      id="ixv-635"
      unitRef="USD">16530.00</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-636" unitRef="USD">150000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-637" unitRef="USD">0.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-638" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-639" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-640" unitRef="USD">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_5" id="ixv-641">There are being registered hereunder such indeterminate number of securities as may be sold by the registrant from time to time, which together shall have an aggregate initial offering price not to exceed $150,000,000. Any securities registered hereunder may be sold separately or as units with the other securities registered hereunder. The proposed maximum offering price per unit will be determined, from time to time, by the registrant in connection with the issuance by the registrant of the securities registered hereunder. The securities registered hereunder also include such indeterminate number of shares of common stock and preferred stock as may be issued upon conversion of or exchange for preferred stock that provide for conversion or exchange or pursuant to the antidilution provisions of any of such securities. In addition, pursuant to Rule 416 of the rules and regulations under the Securities Act, the shares being registered hereunder include such indeterminate number of shares of common stock and preferred stock as may be issuable with respect to the shares being registered hereunder as a result of stock splits, stock dividends or similar transactions. The debt securities covered by this registration statement may be senior and/or subordinated debt securities of CNB Financial Corporation.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_10" id="ixv-642">The registrant previously registered the offer and sale of securities having a maximum aggregate offering price of $150,000,000 pursuant to a registration statement on Form S-3 (File No. 333-272781), which was initially filed with the Securities and Exchange Commission on June 20, 2023 and became effective on July 10, 2023 (the "Prior Registration Statement") and, in connection therewith, paid a filing fee of $16,530. All of such securities remain unsold (the "Unsold Securities"). Pursuant to Rule 415(a)(6) under the Securities Act, this registration statement includes the Unsold Securities, and the filing fee associated therewith (which amount is based on the filing fee rate in effect at the time of the filing of the Prior Registration Statement) will continue to be applied to the Unsold Securities. Accordingly, no registration fee is being paid herewith. Pursuant to Rule 415(a)(6), the offering of the Unsold Securities pursuant to the Prior Registration Statement shall be deemed terminated as of the effective date of this registration statement.</ffd:OfferingNote>
</xbrl>
