<?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="C_dcb44e05-23fa-451d-890c-23e4ca042ba7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_05a82982-6ba6-4d3a-839b-65f79949a204">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_a4d1525d-d78c-4553-a484-fb9c5c3d3672">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_47468cbc-c61a-474c-98a4-f9345efca1f5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_33d394d1-f677-486e-b1ec-9dbb27e2fe54">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_99838f3d-3e10-463e-83da-ec2652575956">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_07dabd33-3ab3-4fa1-b6e2-0d1cc30b2c67">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_088d2c26-58ed-4f09-971e-8d9e18ac0b91">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_7f73ada6-28c2-461b-840e-e0f5b0a37125">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_0337a558-0831-4227-94fc-0095c14f8242">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      id="F_e04cf0e1-01c1-4d75-a63e-600932926887">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_dcb44e05-23fa-451d-890c-23e4ca042ba7"
      decimals="0"
      id="F_5bf3ecc3-951e-473a-8a77-3623b4af9641"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
