<?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_c585cfa4-ddd5-47c4-8467-3919be006564">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_d8a4b87f-f0c2-4fc8-b28f-4295fa7bfd95">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_b94802e3-e3b0-4687-adf1-d5c330b43dd5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_5052cd7c-8fb8-4943-afee-b0fb5f978ba8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_b2599284-4aea-4546-ba19-5ab9cc4a7879">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_2505751a-7799-4b04-86ac-9d678e69db6c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_2bdc28ad-94be-479f-ad94-c5e0cb7a1322">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_27764815-43d4-47d0-a2a7-51e47ef52ebe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_f3d0843d-f584-4428-a47b-6d9b7ab17b20">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_2e792013-1b84-41c0-b827-2a464c2c3fa6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c585cfa4-ddd5-47c4-8467-3919be006564"
      id="F_2b14bacb-53f7-46cc-90b6-a3236da85669">&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;25,054,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_c585cfa4-ddd5-47c4-8467-3919be006564"
      decimals="-3"
      id="F_b184bbc5-68b5-42e2-8b9e-9f3f58d8091a"
      unitRef="U_USD">25054000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
