<?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_974a9e57-dacd-4adc-96a0-751fc4ee9f4a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_175ce23d-2354-4d65-9934-7ea37fda11fd">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_043dd999-fb49-497d-a19f-8a91f99b11d8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_2914fb1f-1d1d-4e6a-9bb7-2a7aa0866267">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_8538ff7c-2915-47b1-9549-2aefd4fb95a0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_e96d7762-a6c2-4add-953c-53ab582bfd15">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_c211a1a3-a257-48db-b5af-aff59f006fd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_161e3a93-8302-4e02-ac2a-05917a60d501">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_9ee7603e-3ea9-4580-a8c7-94320a8d2cb7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_be0c1511-0928-476e-b6ec-681a7fddc548">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      id="F_1e07d762-01df-45b6-9881-01d6028f68b5">&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;6,750,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_974a9e57-dacd-4adc-96a0-751fc4ee9f4a"
      decimals="0"
      id="F_c8c7f5f0-0b35-4515-85b2-80ce895b839a"
      unitRef="U_USD">6750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
