<?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_888473ad-dc13-42d1-a6ba-f161966858d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-22</startDate>
            <endDate>2026-01-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_e65f23e2-2307-4c32-b577-3d4d35a40aff">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_bb78e21b-5fc0-4fbd-9b9b-7ebae6982a69">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_0d509c50-2531-473d-9aa2-79ee3645578e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_1923e560-6d91-42d5-a158-8256b840d177">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_a4700aa4-f6e7-4cc4-a4d9-6203ecc0296c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_cce3919f-bdc8-4086-a85d-3f4303150b3d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_6c357357-9556-4c97-94ae-89c63586f3d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_37853ca2-8bf6-40c1-a5e2-44acee35326b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_f486aa33-0267-467a-9ebd-94632c4b7be2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_888473ad-dc13-42d1-a6ba-f161966858d1"
      id="F_0ddf6d18-3e6b-459c-9b7b-bb3d9b1ffcf9">&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;7,000,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_888473ad-dc13-42d1-a6ba-f161966858d1"
      decimals="0"
      id="F_4bde3536-1f16-4b9e-9778-926d9dcd2672"
      unitRef="U_USD">7000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
