<?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_0a3e39e3-631c-4245-a638-3cd76cf78330">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_69190b99-f1db-43e2-9a01-70600d903a02">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_f103018a-3b75-416c-a7b4-f9b50d77967f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_8c1b211d-6d24-4a8a-9c12-fcd4bc4549dd">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_299a8bc7-27ef-494c-8003-4d052e7c6a05">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_5e35337d-78d6-4f40-9153-a73cad8208de">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_c122149f-e682-439f-8267-6c2415b55f0f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_6e0e749d-b828-46dc-b905-fcc781556c04">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_244a841c-5108-411e-9918-4e19f605becb">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_a9659540-5310-4077-b9b6-5e977a523e52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0a3e39e3-631c-4245-a638-3cd76cf78330"
      id="F_aff33aac-193b-4738-a6dd-8bde42de8717">&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;479,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_0a3e39e3-631c-4245-a638-3cd76cf78330"
      decimals="-3"
      id="F_630c646d-b9cc-439e-8551-f501f3cd9707"
      unitRef="U_USD">479000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
