<?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_083766ec-820c-4b8c-907d-5de8b6015ea7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_e525ae2d-d5aa-4cae-a790-7061db6afad5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_aaea2ef8-e19b-4318-9e07-5c79f098f315">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_dbe6b229-6476-45b3-ba42-b7dbd6dfff4a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_a8c5627f-24d6-4653-9497-5e5e41696ee9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_0a63a40d-606d-4f9a-bf60-4ce7e1005831">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_b028ab61-6958-4d41-9b25-b8dc19334c0c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_3c3ab2df-7e01-40c1-941d-014faf3f9cc8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_5306edb4-9e48-418c-8f16-5364d26b339e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_d61865fb-ec21-41f5-94ef-817976a1e41e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_083766ec-820c-4b8c-907d-5de8b6015ea7"
      id="F_04f13a7b-84d3-484d-931b-abb63e346b50">&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;17,320,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_083766ec-820c-4b8c-907d-5de8b6015ea7"
      decimals="-3"
      id="F_d2cf2f6f-45b2-413a-874e-0b54b39e4b3f"
      unitRef="U_USD">17320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
