<?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_1c9fb13a-55f7-4b5d-913f-92fe65c097a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-05</startDate>
            <endDate>2026-02-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_bfe8332e-9209-4c40-8887-503b759d6a8c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_f67b495e-463b-4485-af08-516265eb090f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_8a73c42e-7150-43bf-a7a0-99ed5272b9a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_00000a45-ded5-4144-9297-288c74d9007d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_4eff41bb-9c7c-481c-9994-97d844065497">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_0be5dd20-e9a9-4b50-83dc-319cd1f8923b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_bc6bcb88-11f9-445c-8475-79a078bbeb44">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_d448e318-c27c-4db1-ba03-7507069fa897">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_0cbf6eaf-3941-478a-aa37-456681af6f63">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      id="F_9d35f10f-9dc7-4004-8035-b0b89a88ad85">&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;565,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_1c9fb13a-55f7-4b5d-913f-92fe65c097a8"
      decimals="0"
      id="F_17aa2a2a-d4ad-4cd1-91f9-8cef0abf3bec"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
