<?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_17a18072-5113-4589-9b6b-5129b744b17e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_6a2aa368-f29e-49ee-a1a1-bf0c3cc27b4b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_acb15338-5150-4eeb-af66-d3c098f58a40">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_effd2fa1-b9ce-49ed-9e1d-10b43aa583e4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_3d105d58-7444-4e2c-9300-170dfdfe8727">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_fb46610d-acb0-4c7d-bde4-71af6f6ba0c2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_1b3c7d9a-9dd8-4518-a0f7-7ad7494c5b05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_76ff76e9-aed8-46e9-a245-4cf2075856cb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_ed38fae6-fd53-483f-80c3-10855ce7bdbe">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_bdc48dcf-c98f-4c05-9419-006d64d2ceb0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_17a18072-5113-4589-9b6b-5129b744b17e"
      id="F_95f739ea-b1cb-4d23-924f-c5ec36586935">&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;7,592,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_17a18072-5113-4589-9b6b-5129b744b17e"
      decimals="-3"
      id="F_8b68ddb6-5deb-462d-9b14-985ef7f97e2a"
      unitRef="U_USD">7592000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
