<?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_f0d4f8bc-5d14-4488-8393-3b123b532b11">
        <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:RegnFileNb
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_902f7b71-1ad6-4567-9b7a-2a47f4fca224">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_9a5ba5b5-08f6-458f-91e3-b332657ab5a9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_4f5102ed-19c6-4ff4-b2a4-4222feb94856">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_a02866ab-77d0-4bc6-80aa-0fb61db07f68">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_086918e4-57e0-487b-bc91-5297eb71e646">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_6801c234-8a08-4372-bca5-687dc454b177">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_111d3aa9-b6b4-4127-bbd8-403b26e22c76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_94bc8649-20ed-4d3e-ac3d-883e55a206d8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_d78f48d3-c63f-487e-8fe0-9de44b40e965">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      id="F_1bf43b22-5dd7-4415-9bac-38c65f46ab76">&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;730,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_f0d4f8bc-5d14-4488-8393-3b123b532b11"
      decimals="-3"
      id="F_b157ec89-4e2a-48ea-9ae1-d9c70ab86af2"
      unitRef="U_USD">730000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
