<?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_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5">
        <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:SubmissnTp
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_e12fc2f4-e69b-4ca3-8a88-ac9ad62e2ffd">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_5f65f39b-f258-4036-ae4c-34667a82330c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_e245b0ad-3d8f-4cec-96e6-93f1066f18fd">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_abcec9b2-1e3a-4a83-a87f-bea846934f1c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_9ccc2ce9-d945-41fd-8a1c-6758febe0ebe">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_7f7912b7-eadf-4fec-ad21-0a5b9f5b590e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_67574e09-46f9-4ff0-a472-930f25c728ea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_e3da1699-2bfc-4d9a-a302-12dd6f6ec776">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_e3756455-5967-4006-a4e7-d840782ebf38">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      id="F_0adc95fa-f2e5-4c34-a5b2-0d9aec315879">&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;5,335,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_0d076cba-c9d5-4ccc-9db9-1f825bff8ca5"
      decimals="-3"
      id="F_12083ffc-a601-44a7-a23d-413f8045bcd0"
      unitRef="U_USD">5335000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
