<?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_5d1e85a5-2bb1-4481-999a-72efb6f4aedc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_1d62e919-e777-4dfa-b821-164f2e3fcac0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_99bc38eb-5864-43fd-be2c-084f911f8821">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_de39e53d-c299-4a01-bb5d-84f5d9c19e36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_0415fe94-43b3-485e-972a-86e3bd769a41">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_ab8d4896-fce0-4973-8c43-8e29be7dbda6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_ebab15ac-bd5c-4513-9666-066e783f6d58">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_cd243d5a-c4f6-4d24-9cfb-3541b2896710">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_3f92205e-ce8b-43b9-8a41-74a22618dbff">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_7545326a-95f1-477e-8baa-52e20ea193c4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      id="F_79b7a353-823f-46e6-9b5f-84c2a2b01689">&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,530,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_5d1e85a5-2bb1-4481-999a-72efb6f4aedc"
      decimals="-3"
      id="F_b543a29c-1cdf-4234-ba7a-3a5f6e83eacc"
      unitRef="U_USD">1530000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
