<?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_650ccaa1-a993-4505-a828-082af897f9af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_06760b43-f520-4baa-9868-67ec4bcccc32">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_2da173b7-bb4c-4c71-b8e4-7eef4cb0b267">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_c3b62c35-7b49-48c9-8e2e-68e2eb172d08">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_0f5819a4-e261-4fe4-8811-b54225a38bfc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_c1baeffb-f83c-4f57-8143-4cf3a8060c5e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_ebfeabfb-9c14-454a-8038-273005a60f0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_431172d1-3de3-4124-a116-72a31f561751">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_c9f01a02-38b0-4b30-a389-2215631a48a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_2a290a34-8fcc-4fb5-9378-4d963ed950ad">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_650ccaa1-a993-4505-a828-082af897f9af"
      id="F_d28edda7-7666-41e6-85c7-08ea53d800ea">&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;250,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_650ccaa1-a993-4505-a828-082af897f9af"
      decimals="0"
      id="F_3fcaadee-22c6-4743-a4b6-15c403f672a0"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
