<?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_3da9da8f-5998-4e7e-9b2a-2aeac95779ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_da0399f3-7fd7-4e23-b999-f63e69361de5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_aebe497c-e42d-4c90-bb22-e65b487bacbf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_af35e932-2232-435e-ab59-c94b8ef8fca9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_937bf0fb-c117-4fb3-bc4a-74ac972eaf8c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_290387ef-0598-4c5b-8cca-d372ebd5cfff">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_be069012-0f34-4807-ae2a-1bc37c028bd9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_f70a96b3-c22b-49e5-95ab-a5f3a1cad237">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_054de1c8-95cf-419a-8112-a532025a8fef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_a144b4f8-23dc-4ff5-8787-8fb9c7e8cd25">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      id="F_0b8dcf56-f191-44b3-aa5f-941dc1eed662">&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;5,219,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_3da9da8f-5998-4e7e-9b2a-2aeac95779ca"
      decimals="-3"
      id="F_bf173037-6a48-4a44-b73e-7dd727518e4d"
      unitRef="U_USD">5219000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
