<?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_77fbf2f6-b65f-42a8-9f51-26001649536a">
        <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_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_4359b22d-9441-4abc-b716-9d828573b545">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_a758e9e7-3175-4224-b973-3e91dfbc8d02">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_460f9247-bcfe-47c0-827a-4be91b28e1b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_44ec702c-b737-47be-9c6b-eb0a74083e5e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_9550e72c-2da3-4547-b96b-4bb982c4391a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_948caed2-fbf8-4344-addc-fb62e6d1a0e7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_50b13429-baea-492d-8d76-59f399078ba5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_e50851ad-6947-4e40-b496-c93245cce425">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_c48c1081-a432-4f9d-8f4d-36ef0773cf39">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_77fbf2f6-b65f-42a8-9f51-26001649536a"
      id="F_85b2ea6f-1a10-44bf-afe6-63e1902a15a2">&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;31,837,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_77fbf2f6-b65f-42a8-9f51-26001649536a"
      decimals="0"
      id="F_89e1f6aa-c996-4a7e-a15b-439652287508"
      unitRef="U_USD">31837000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
