<?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_4b6b957d-00ef-4665-9bee-2178975eb4da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_7933dfbe-9c36-4432-be0a-f131fcf77024">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_8ff4da6e-5d32-46e4-b485-fc8e1cd4694c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_e0c6a33f-4b82-4c83-9c63-2851563075d5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_9b8e04de-6a70-469f-a67b-50a7b3864507">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_c3ea595d-ecb7-4302-932e-963222726412">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_c58ffb1c-bb68-47f8-bb92-b66e1cf1bbc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_b119e96d-c4cf-488c-aeb1-c7bb12bb6a4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_54c877c7-2b9b-42ea-bfe2-2651f2c6f496">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_07454dcb-01c0-4960-9556-11d7566f63da">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4b6b957d-00ef-4665-9bee-2178975eb4da"
      id="F_8aa14a78-c45f-429c-a7e5-8df5a9e03c93">&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,000,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_4b6b957d-00ef-4665-9bee-2178975eb4da"
      decimals="-6"
      id="F_092f1793-bf50-4f8a-865f-b43a6553badb"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
