<?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_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_781bdd1f-f0ab-409c-8f10-18eee697c6f1">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_bf9cd239-a845-468f-84a0-4101cbba6546">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_481ec918-f46e-4672-9b65-355d4523dd01">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_f7350050-e05e-44ff-896f-8d62b6f54c5b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_d27b48da-c393-4531-a521-6f6ae9c6ab38">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_76ca257e-75b2-4639-95c0-42d278ad1c81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_43327efb-2fe2-4b90-a646-c9a318affc3c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_45b86e7c-20ab-4ab5-91e7-8fffb8c4a66d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_c4d6a131-79ed-41ee-a2b0-9cb8fc3de1f9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      id="F_548f4fe8-bcf9-4797-a0ee-c6a9c54aa1ca">&lt;p style="tab-size:26.66px;font-size:12pt;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;17,225,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_bc5ddeae-1220-4c27-8c85-a7c7dac85e6a"
      decimals="-3"
      id="F_c3e27141-d535-4cd4-ba71-a10afdffe591"
      unitRef="U_USD">17225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
