<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024q2"
  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/2024q2/ffd-2024q2.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000019617</identifier>
        </entity>
        <period>
            <startDate>2025-12-18</startDate>
            <endDate>2025-12-18</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-36">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-37">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-39">333-270004</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-40">0000019617</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-41">JPMORGAN CHASE &amp; CO</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="rc" id="ixv-57">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-58">JPMORGAN CHASE &amp; CO</dei:EntityRegistrantName>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="rc" decimals="INF" id="ixv-59" unitRef="USD">5236000</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="rc" id="ixv-60">true</ffd:FnlPrspctsFlg>
    <ffd:NrrtvDsclsr contextRef="rc" id="ixv-61">    </ffd:NrrtvDsclsr>
</xbrl>
