<?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_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-22</startDate>
            <endDate>2026-07-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_05e29c0b-b692-436d-954d-f405e9b53a09">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_192e0a39-fd70-4bd8-a95b-86ba192a5bf4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_05a80c31-b75c-413f-8e73-c63089e8c206">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_d753d9c7-ebdf-4cfe-a233-cb51bd549775">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_9ed686c4-677b-4459-9664-4a0ea15bacba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_e58a4993-1beb-4746-b594-99e80cd2e6f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_53decff8-5f36-4c8f-bd75-54d999c01083">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_4e8e7fff-7b29-4460-9ebf-7c3d9cb3a7ef">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_1b49906a-c382-46dd-b73d-5c8479cb10c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      id="F_d0c2da50-12ad-4919-89b0-169d5ddb22ee">&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;1,400,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_ca95ca06-13c3-4d94-b9a1-bc285b40e5a2"
      decimals="-3"
      id="F_ae7e61b0-4df4-4a5e-9223-fe01ed7ecad8"
      unitRef="U_USD">1400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
