<?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_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_ff4b4492-2a3f-4a14-84f7-fb6d8205af72">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_6ffbb48d-7d20-4022-9220-35ab745a0217">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_6bf5c7fc-b488-483e-81aa-c7fb2e98e1db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_041025ef-8760-4c7e-aadc-3965df878445">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_79f06ac0-2e01-4bed-be4c-6c6f34d9afbe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_302dd9c6-6d46-49f7-a79b-900ed1b313b4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_e0608d76-75a6-4559-a361-7b66f1b2282c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_0a53387f-383f-4b45-8733-3a8cd420cc5e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_eafa10a3-77c5-42a7-9afe-70eeabb5ac27">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      id="F_3555c23a-40cf-4bed-b78b-b15db518e2fb">&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;729,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_88ffa3de-3e13-4b82-aec8-0ccf2c5a0022"
      decimals="-3"
      id="F_ad2e33b6-2434-448c-adf6-29f70c3d28bf"
      unitRef="U_USD">729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
