<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2025-12-09">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000009631</identifier>
        </entity>
        <period>
            <startDate>2025-12-09</startDate>
            <endDate>2025-12-09</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-12-09" id="Fact000003">0000009631</dei:EntityCentralIndexKey>
    <ffd:FormTp contextRef="AsOf2025-12-09" id="Fact000009">F-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="AsOf2025-12-09" id="Fact000010">BANK OF NOVA SCOTIA</dei:EntityRegistrantName>
    <ffd:SubmissnTp contextRef="AsOf2025-12-09" id="Fact000011">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="AsOf2025-12-09" id="Fact000012">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="AsOf2025-12-09" id="Fact000013">333-282565</ffd:RegnFileNb>
    <ffd:FnlPrspctsFlg contextRef="AsOf2025-12-09" id="Fact000014">true</ffd:FnlPrspctsFlg>
    <ffd:OfferingTableNa contextRef="AsOf2025-12-09" id="Fact000015">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa contextRef="AsOf2025-12-09" id="Fact000016">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2025-12-09" id="Fact000017">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr contextRef="AsOf2025-12-09" id="Fact000018">The pricing supplement to which this Exhibit is attached is a final prospectus for the related offering.</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="AsOf2025-12-09"
      decimals="0"
      id="Fact000019"
      unitRef="USD">34649000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
