<?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_5e78d346-819e-428c-bada-6669eee672d6">
        <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:FormTp
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_9c935400-16b2-460a-a486-af77c038e591">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_8d22c6ec-4036-4669-9a5a-a38bb9f76840">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_e4e3805e-2eb9-46e6-a44a-a987e13e7066">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_446a1ee7-0492-407a-9fa7-675d0e43bacb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_a85efa37-dff6-4924-9077-720dcb922950">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_145f1c4b-f30e-44ac-bea9-cc8c8ff71144">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_564abfa7-d013-444c-9521-cdbd176fbeef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_b25bcc8f-9138-4dfb-90c3-2a628417b304">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_ab374c0b-5179-4b7b-8bf0-e30c03af74d2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e78d346-819e-428c-bada-6669eee672d6"
      id="F_99c06dc6-d844-4ac2-a637-6874ba0b2cf5">&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,114,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_5e78d346-819e-428c-bada-6669eee672d6"
      decimals="-3"
      id="F_8333f53e-04c6-425b-a1c8-db5f5b4adb5d"
      unitRef="U_USD">1114000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
