<?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_3a053244-c6f5-45bd-9c22-29229b788a68">
        <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:FormTp
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_1fd1aaf8-0c47-4e10-961e-bb5a2fa048ac">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_9c213f9e-c255-46fa-aa01-7e0561597e63">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_82a7fce8-0859-42d7-871a-8d9ba3d32697">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_4d2d8e05-143e-4462-83cf-03e95cfa4190">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_92e27f64-dbeb-4d11-8bc6-24981750faef">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_fcea0570-88c9-4e8a-98a1-8e740ce89875">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_86ba4766-f5df-4c3a-94f2-e0f0ebb69cb3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_a0637014-c125-4fd1-8662-76158b23f391">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_fb6c3bd6-9f92-4f68-bf0d-338067c2cc27">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3a053244-c6f5-45bd-9c22-29229b788a68"
      id="F_f4978cc1-729b-48db-a3ff-76bc0bbcd143">&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;8,204,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_3a053244-c6f5-45bd-9c22-29229b788a68"
      decimals="-3"
      id="F_cfc5e4f6-0b33-4122-bc91-43e159a4c6dd"
      unitRef="U_USD">8204000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
