<?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:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_dc30b0ff-fa95-419e-a91a-22e53255457f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_42bdbdf5-1d05-4b43-94d4-7c0f03e3d90b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_9121fa70-0933-471b-8b42-efabfb51afd0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_4df378e4-65dc-4542-b2ed-0cc034a5962b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_fd913b7a-9bc0-442d-a5da-3497ed166401">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_72ba0fd0-a0c4-4394-856c-4250b996528e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_ee53d478-8505-4c70-b0bd-11ccd2a6a0eb">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_34891db5-c51e-4578-9919-c87b0700b134">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_f42f5284-87f7-4a42-8d3e-d06f7d1b9766">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      id="F_205fe8a1-3077-4713-81da-6425f19a0893">&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;273,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_147a8b7e-5e9c-4ed9-9cef-c88f59cf641b"
      decimals="-3"
      id="F_efaca6fd-146c-4c29-a122-8398fb468241"
      unitRef="U_USD">273000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
