<?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_1c198425-de1b-4726-8c4c-1ec2b16ba7cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-04</startDate>
            <endDate>2026-02-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_93e00c5a-9017-42e7-a4a2-33671833c58c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_562c254b-6cae-4a33-96a8-0597aa1a7035">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_52e1de35-16f6-4fcb-a8a7-c8aefc30f39b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_cca74bc3-5531-4512-97d9-35a7f993cde7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_e407a244-8b3d-4357-8a64-453a34a03921">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_6e31c922-099c-483b-9c4b-6d1f20f3333d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_415989ab-a544-4f7a-bd80-a997c9dfcab0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_646d1b66-8c84-420f-977c-469becf6f926">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_d7460df4-26de-43f9-beeb-d5046abbb5a8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      id="F_67bbf4ee-57d3-4a0c-828b-ece00839cb67">&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,005,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_1c198425-de1b-4726-8c4c-1ec2b16ba7cf"
      decimals="0"
      id="F_c73d3fbb-07f2-4bd1-abdc-ab57caf19274"
      unitRef="U_USD">1005000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
