<?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_aa0fbb64-f65a-4b06-9893-9fe2e79e0011">
        <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:SubmissnTp
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_f43934d1-0372-4ab0-afbf-4d1847ca8e4b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_789d34c3-6f58-4fed-a90f-d51dd9097bdb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_d59b6d0c-68c8-48b2-9af5-5a400190702f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_b8d3550b-d80f-4d70-b06d-7514f02fa033">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_3005a500-8222-4de1-9a6d-0b9a3c0848d2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_a0ccc82c-7d7b-43c6-9407-c06bac97ca77">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_edf74862-dd82-4a0c-9814-2d8df45bf415">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_2e0c2b64-6faa-47cb-aee9-b9e38d5f8581">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_4a2daaee-1066-4168-b34e-51373c5e7f55">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      id="F_7b6e0c6f-c70a-4378-a320-a68cf5e5d19b">&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;197,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_aa0fbb64-f65a-4b06-9893-9fe2e79e0011"
      decimals="-3"
      id="F_40f5cb3b-6b17-40bd-879d-36636347df1a"
      unitRef="U_USD">197000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
