<?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_dca76507-2335-45cc-8a9a-23acfc9ebf61">
        <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:OffsetTableNa
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_6c20018f-5d14-419d-972b-ce1dddd8de1b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_ec5b5568-6b9d-4e4d-a3ac-3955bf8ebb04">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_941b8f7d-2c88-4f68-869f-5c3be0742c68">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_b977c5da-a8fd-42a8-9882-173edb1679ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_d04a9bb4-2832-4284-bc2c-fcdb487be2d5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_a42d8fb0-1f9d-4e5b-8415-e6176a69050f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_416d1689-bf79-49ba-8ed8-ccfccd89a4cd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_d46e9150-c12f-45b6-9dc8-ac5e788a2401">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_da07a4d0-ceb8-4ae4-9fd3-ad79b4fea0fd">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      id="F_b83cabbd-e1f0-437a-90df-d72bfaef6dee">&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,502,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_dca76507-2335-45cc-8a9a-23acfc9ebf61"
      decimals="-3"
      id="F_0585102e-7e51-4e9e-bc49-895b871e3811"
      unitRef="U_USD">4502000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
