<?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_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_852af292-57eb-43f6-84c0-7f575ac5e96b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_94b2f9ac-c4e9-4818-bae7-3138993399af">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_fda51fae-aba8-4f23-b10d-ef3c2674a978">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_6d74c29d-9e1c-4f34-bb62-641fefd7eb61">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_ba3dbe96-b222-4d6c-914a-1ecc3aa396c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_1a1436b2-ae96-4fe1-83c4-ae275e4b859e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_101b2bad-3b38-4797-a700-3e726642065e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_2b11b817-17b6-4868-be92-3dd43c28a654">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_1c94baf0-0a96-4876-a081-c8e85fa6d822">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      id="F_24fcf008-36ab-4cd6-8c04-c06772f688aa">&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;4,043,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_1b0aaaa8-d6c6-4670-9b55-c2ea4ee09adf"
      decimals="-3"
      id="F_2b32ea42-0a33-4210-91ce-a75ee099e8c0"
      unitRef="U_USD">4043000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
