<?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_1b53bc02-4063-4fd3-970f-9b2c421eb94b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-03</startDate>
            <endDate>2026-02-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_539fb297-d42b-411c-a1a4-8413958d61f2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_917ef082-a9cc-4168-8ecc-44ad2163ae47">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_be6e8bb8-2a16-4d9e-82a1-c0cbcd53a6c0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_afe7002c-3d2a-41cd-a103-33b1d6ec4549">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_d9dc50f4-c528-4524-8dc2-c2948a825383">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_86a45cff-390e-49a7-aed0-3bd6e720d52e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_6d59b4ea-88b4-468a-87bc-d88966e256b0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_89860ece-e473-46cf-a2e0-89f200ea4219">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_c13849a2-75fb-4a8f-b20b-0582ed9936dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      id="F_9c6135dd-5238-4235-90b4-b3bc10c953f0">&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;662,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_1b53bc02-4063-4fd3-970f-9b2c421eb94b"
      decimals="0"
      id="F_31f630b9-ab40-4486-88a2-656e48eca43b"
      unitRef="U_USD">662000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
