<?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_bb186489-4343-4a65-8804-f964dd97a0dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_61c62a50-a7c7-4e7b-8bcf-540fcd73865c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_d2328bf6-61eb-44d0-8c3e-a29f685bc8c3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_3506386d-637e-4390-a5e3-44cd9d7c2297">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_4e732cad-3db4-40de-8048-d2a510c87550">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_9270078f-de84-4064-bbf8-0c0f97bb6959">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_9f9cc3b6-96ef-46ec-8320-52cc39706428">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_bbdbc4e0-518e-4b2d-97d9-4b2eb4ec9712">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_35d6b396-b047-4366-85cc-709b19cb327c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_807fe1e6-f90b-4d6a-9c64-00de687ce1e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_bb186489-4343-4a65-8804-f964dd97a0dc"
      id="F_5c4e45f7-fab0-4082-a56c-b8b01d6111ec">&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;300,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_bb186489-4343-4a65-8804-f964dd97a0dc"
      decimals="-3"
      id="F_3b5aa66c-a34e-4d61-ba03-c276b83839e6"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
