<?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_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_fbc690fb-b2b0-445b-a26d-ebce5ba7b1ca">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_6f1182ae-bcdf-4419-b31e-280ed0d185fb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_4c2dc666-f80f-4884-910a-5a101d518060">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_286debb9-1458-4fa9-affb-144a97dd0c17">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_e9fcf8ac-2e9e-4e5d-b418-a988ebc6ed7c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_73ac7863-24df-41e3-ac75-ffa60ed15fa7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_e59d4eb4-9d5e-448f-b8e0-aa71efe8f353">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_6c1c57c5-3d7a-483c-8be2-58d6bbed306e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_f2efc2e6-a147-4d72-a049-d7fad52a08fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      id="F_924990bb-f5fe-40db-b786-00aa0f26c2bd">&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;5,566,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_24fdce6b-7794-4ca6-a5ae-b5ad4c2bde39"
      decimals="-3"
      id="F_70894c46-18a3-4c80-b3dd-3b5d25347dc8"
      unitRef="U_USD">5566000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
