<?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_5762890e-b2be-4c84-8acc-0f05399006cd">
        <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:FeeExhibitTp
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_f88c5d97-d877-43dd-a895-969c17f6b081">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_ec741aa1-7e7d-4a72-a974-6e313fb4d95a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_65c68e80-11a3-4b10-b1ab-23130b24d953">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_5ad40057-bd6c-4087-a098-21e768a998ac">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_d78d0ba9-c60f-4369-8a67-651f8aa41d55">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_62769ce0-c140-4386-ba0f-cdc6c3f86703">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_54d73863-41a2-4195-a5ba-779c489c511a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_f5d16ca9-29b3-4bad-bc40-6d07d35d1566">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_fee55eb8-f809-4e87-a584-8076716bebf0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5762890e-b2be-4c84-8acc-0f05399006cd"
      id="F_31d8c075-9677-4617-b87f-2f95c971e605">&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;9,725,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_5762890e-b2be-4c84-8acc-0f05399006cd"
      decimals="-3"
      id="F_062a8d19-d006-410b-85f0-9ae733539d6c"
      unitRef="U_USD">9725000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
