<?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_cf6038d6-a98d-4ad1-af11-33723b0afe1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_755dc47b-d8b3-4ca9-9bb3-878d7d719389">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_970c0401-dcfc-4c7d-89e9-46798b0f4580">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_885cf9e9-30d0-4b62-8298-491bc51df8a2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_8e525a1c-e339-4d55-a618-449ef5c75fef">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_39e18771-7fa2-4003-a8de-c0578c60c3ca">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_36a8567b-de33-4e1f-ae76-6fbe0665febd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_da308f87-2b43-4cb1-9012-cbbc369dbd7e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_088430c9-5389-4666-b2bf-d23d03a4b7f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_c371cc49-90a2-453e-84f5-c75b27caf06e">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      id="F_5fb43847-f46d-4ba0-9c3d-a5721140551d">&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;4,752,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_cf6038d6-a98d-4ad1-af11-33723b0afe1f"
      decimals="-3"
      id="F_4ad2719e-73e7-4a43-8a34-53c62db2464a"
      unitRef="U_USD">4752000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
