<?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_d4849599-2ec8-42e6-bb16-ca9a7626f6df">
        <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_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_ac858509-f28d-4340-a8ad-d7051004aded">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_a1754df5-cf7c-48b9-8455-b74a6352b3af">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_5a7d6fc3-f840-4eed-b577-28e2b8367d4b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_5500c5a2-87ff-4abf-a748-bdd19e5113c2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_cf7a4e97-a1db-4188-b519-0b962e0a18dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_a56884b0-8d5d-43d8-8a38-713aef208f19">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_f324d210-6c0d-45c6-9b94-a98ed2f9fd87">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_1de0fb31-7e0c-4425-88a3-baefb916d684">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_30cdf95c-3c2c-4499-be1a-360f43f1f31b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      id="F_9a02987a-71c1-4a5f-b870-a511189119d5">&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;574,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_d4849599-2ec8-42e6-bb16-ca9a7626f6df"
      decimals="-3"
      id="F_1882bdb8-f288-4466-bf0e-1c4955df02bb"
      unitRef="U_USD">574000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
