<?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_22ec8be7-2cb4-429e-baed-361b09b69436">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_7dbd36a5-2608-4284-a270-8f607f31791b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_46403648-c0c8-4a3e-bd38-2a0c3584b547">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_45f3f8ac-52a7-431f-aba8-4e064ad7db1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_3d8c67c1-08df-4a09-9b59-c4f0ddab5792">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_fe961213-5798-45fb-821e-bd9e8ca367cd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_15dba662-4224-4941-aadc-1aff8336eec4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_4ac27ea1-6c7b-42f8-8837-610cffcbfc7f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_92e10797-02cf-4de7-95bf-6db7431cd5a1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_805a204c-035a-4d88-89b1-a6d3b4de90d6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_22ec8be7-2cb4-429e-baed-361b09b69436"
      id="F_87bf659d-a0eb-4a84-a5a2-907261a7285d">&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;869,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_22ec8be7-2cb4-429e-baed-361b09b69436"
      decimals="-3"
      id="F_0872bd50-d84d-4938-9805-b20a3c9f13fe"
      unitRef="U_USD">869000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
