<?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_c51cb86b-6909-4b5f-b70d-e28137b70333">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_66f9d2e7-f499-466b-844a-2c64859dff22">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_93c87769-27a7-49e0-8e4a-b8894418d782">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_8b72e0cf-894e-4e84-aae6-7dddc7666b65">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_deff6768-0e88-4901-b638-48ae6059efff">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_02ff3c0c-d1dd-4008-a1ac-8280d205a230">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_254b1c67-6d50-4bd0-b6fe-7d0fbc0f01e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_fa9cebac-d6be-4faa-9a05-5f570c0e5194">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_18a3748a-334d-41f3-b457-85d1a455961c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_91c853a7-c32e-4143-a6cc-98bdf09d3e7d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c51cb86b-6909-4b5f-b70d-e28137b70333"
      id="F_1e75a388-2bae-41dc-91a2-7925133a2eae">&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;4,448,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_c51cb86b-6909-4b5f-b70d-e28137b70333"
      decimals="-3"
      id="F_a9e26d09-9d7a-4a7e-8adf-e00a700b78cd"
      unitRef="U_USD">4448000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
