<?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_442a6ac9-b55c-498c-826d-cf164231129d">
        <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:OffsetTableNa
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_03eb4bcf-75e7-4c1f-a8cf-05ecfb323dff">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_f77f5490-7184-45b9-b9cc-5aa93935626f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_bd8e35f9-14f2-4c0d-a7a5-ec0929f052e5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_695f4c34-3236-4d9b-9713-72825ad48a7f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_6720e992-347e-4606-9386-2b258b3057ac">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_d19edeef-289b-4170-bdad-4da426d04011">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_0d0d9bc2-d651-4d2d-87c4-d15a4bf6863e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_67369b4d-6b5f-4f7d-b91e-cfb847f46e58">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_3fd6eea8-0928-4459-8a42-d289af8e7159">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_442a6ac9-b55c-498c-826d-cf164231129d"
      id="F_c7f85057-e5bb-4e23-a781-a03e2223dec2">&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,935,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_442a6ac9-b55c-498c-826d-cf164231129d"
      decimals="-3"
      id="F_2cfa064f-4ef7-41c8-a41f-6a8da51cc3c1"
      unitRef="U_USD">1935000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
