<?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_2ffd4920-0594-4f70-b6f3-1084c4c162c1">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_510c9edd-c48f-48f4-b779-ff82b9629928">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_0d27ae10-8a8f-43c4-a642-1e0965457ec6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_bea54e17-5a6e-4d05-8a05-d5ec77cc2b4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_4ce35a80-2c58-42d7-a2c7-46a63e1ee9f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_47ad040a-ddc6-452a-a1e8-a88777a457a5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_918d4bcf-b206-4fa2-8962-f50450173df2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_16a3dd0b-2630-48a5-b848-00574e89046a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_739311e7-1208-4aad-b325-21ac7b1c9407">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_81bbec80-404a-400b-bf8e-998a149c0198">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      id="F_2a402ab9-be28-4cf8-852a-f1869698f300">&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;647,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_2ffd4920-0594-4f70-b6f3-1084c4c162c1"
      decimals="0"
      id="F_26b4e193-f336-43e5-aab0-ad25868e5645"
      unitRef="U_USD">647000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
