<?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_a7148919-c6e7-45ec-973e-0e7da1cf7235">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_08fef0a0-08eb-4f5f-af49-2aa0a50fe41a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_8bf0539a-0b5e-4756-8093-71f7fdf19d41">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_7261b366-851c-48ed-bcce-efbc46a33de7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_dc06adc8-ba63-486a-bf99-27550caf18c0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_16b03ff2-167b-459b-a1f6-0408bc097d09">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_6b3885d2-3b75-4725-bbc1-36fc36ca59a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_25269958-24a2-4cfd-aa4e-cb51c9cdb588">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_e611c4b3-b899-40dc-a463-9b45e3ace508">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_7706a4a0-fa4c-4de8-be1b-db4a92b301d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      id="F_38c9e042-a064-424a-be66-59de67871294">&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,000,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_a7148919-c6e7-45ec-973e-0e7da1cf7235"
      decimals="-6"
      id="F_9ccbbe23-1f6e-4c1a-bc01-6c4cd3ed9c79"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
