<?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_1219b1d6-0a36-4b0d-a7b5-416a431a0b86">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_26b7293f-3c87-43fd-973d-5e9e56b49c9e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_1a7f6daa-475e-40ce-a7e2-891aa835200d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_6afa100e-401a-4edc-9c2f-472036a0813e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_466e4ea6-4fef-4d88-aa30-800e906fd010">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_7f5ee34a-a5cb-404d-8fbd-3e7610c49d8c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_4dfb967d-7b28-499d-8f61-8b7d44737b84">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_f6285849-2261-462b-9dd7-b510fe0ed9be">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_406b2c6c-64b9-4aa1-adba-9008f41c4a28">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_01cd5ef4-d7e9-4861-a961-1d6385d68220">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      id="F_a220726f-d168-4169-82e2-418947a6681d">&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_1219b1d6-0a36-4b0d-a7b5-416a431a0b86"
      decimals="-3"
      id="F_6630f6f3-0ec1-4498-97a5-dee85b6ed913"
      unitRef="U_USD">1400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
