<?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_bd37dd13-c7d0-4219-8099-b6cf16ce35f6">
        <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:SubmissnTp
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_40e02c18-56a3-4f4a-9693-695bd3b28e48">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_6752e65c-508d-41e3-95fd-28cea6585953">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_6447e82f-1c97-4da5-8bef-716051d1d807">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_c0b29000-d4db-4501-a845-bdd1e2b450f9">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_69374a18-4834-4637-9521-ec25ef91004d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_a5fb7d38-4db1-4235-9e8d-2e9291c899ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_f4087075-fd2c-4c87-962c-0771e24b7347">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_5bcc029e-1901-4527-8132-748c3f47f6be">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_53f041da-f239-43b5-ad6d-2ef44c6fa478">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      id="F_b66d53c5-db1d-420a-aabb-55e61c1397b4">&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;2,869,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_bd37dd13-c7d0-4219-8099-b6cf16ce35f6"
      decimals="-3"
      id="F_a2aba5e3-a903-47c2-9d6a-e47e0629442a"
      unitRef="U_USD">2869000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
