<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_725de240-00c5-4776-8b90-f55a776d243d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-29</startDate>
            <endDate>2026-01-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_f68d139c-621f-4ef7-93ce-ac490cfd4fac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_6498fe37-fde4-49fb-b5da-be433505a164">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_bd9cf955-c341-42bf-b385-9ac6d9525e5a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_b1056434-ed44-4636-b70a-d94fa9468a25">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_acc986eb-d3aa-480e-83bc-38eade9385d8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_0a144276-c002-49e2-9bdb-393fca9bc91d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_0a41582f-513f-4e51-9906-dccbf872b1fb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_92db28ba-9ab6-47e5-890e-c817168780cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_b7aba1f2-ef8c-4d31-b3c3-3d16b40dc4ad">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_725de240-00c5-4776-8b90-f55a776d243d"
      id="F_52632cf5-c86e-46d0-8c1a-f565b2631786">&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,694,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_725de240-00c5-4776-8b90-f55a776d243d"
      decimals="0"
      id="F_6773b4bd-a71a-4739-adb5-1d9e0fafdb50"
      unitRef="U_USD">1694000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
