<?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_dcc6f93b-9724-41b2-ab7a-04f619f6d058">
        <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_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_8b973613-26c9-48db-90a1-be6ad97e0d22">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_8a963cdc-de59-4ffe-a96e-92289b2e2d3a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_45c78843-69b2-4ae3-a2fb-31ef07f5fa1d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_005a6656-f1d3-49df-a47d-860797c8a6b2">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_94ec73c6-03ec-4439-848d-1805ab973f34">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_f44c1333-e6da-440f-9661-5c8a46fe0cfd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_6473a8f4-95c6-43f0-aa26-596e755c2a81">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_f359e3b5-617b-4dc5-b348-81f7b7d79c91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_261a90cf-d80a-4417-ac4e-49a3698617d6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      id="F_cf0911bf-45a0-4d78-ba08-13c8a2af1a0a">&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;985,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_dcc6f93b-9724-41b2-ab7a-04f619f6d058"
      decimals="0"
      id="F_d2b4a389-856f-4130-b89d-fa24524d014b"
      unitRef="U_USD">985000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
