<?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_9c7e8a70-a295-456d-b055-c70e283fc538">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_1f90354c-f495-439f-b230-7ea0c897260d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_03cf0f4f-b8d7-44b5-8751-7b639db2ebb4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_739b388c-9724-471b-be26-638fb1b3ab8c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_ae149e8b-626c-4d66-83e8-7affb5fb12c3">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_10b5d827-b420-4b7e-8ec9-ae6320c91730">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_90283b39-eb87-49c3-957b-4925b00f0b0c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_56b1c6f4-0f80-4bed-81f6-4258792b83a7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_137d3f0e-8cd0-4bfa-ad80-c48e1c8a8366">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_c26ed561-79ad-47e9-8abd-30bb31375678">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9c7e8a70-a295-456d-b055-c70e283fc538"
      id="F_bead73d0-a0c6-47fb-9e8e-e664f80e5905">&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;7,018,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_9c7e8a70-a295-456d-b055-c70e283fc538"
      decimals="-3"
      id="F_26d1130f-9887-439f-9bae-f798a3bcea03"
      unitRef="U_USD">7018000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
