<?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_6cde37f7-42b2-40b7-b1e8-3b53789e5208">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-02</startDate>
            <endDate>2026-02-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_122d95f5-ae24-445a-826d-d3301a0e8154">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_a5038a12-3275-4ebd-aeb8-d108d4d17a71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_ca9969e4-435a-4d0d-a4c5-d0b8c83afc9e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_0e9a737b-23e7-4b52-ab2a-a0f460085925">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_c0b09bbb-87ed-4535-8f97-ac57bf8d30e8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_c70d09a8-3dd6-4fb6-a4d1-60fc97f48b7e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_9fa7cc78-fe70-42e8-866f-3bb8d621c054">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_3a3e8e45-4ad2-497f-875f-cea3a7f56c83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_ecaa5143-6267-45b3-8f6f-123813e3129e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      id="F_1072e408-517f-4919-9bd0-6fbee8077997">&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,307,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_6cde37f7-42b2-40b7-b1e8-3b53789e5208"
      decimals="0"
      id="F_b03bdcde-e8e6-453a-b5a3-ba1a8f4b8255"
      unitRef="U_USD">1307000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
