<?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_8b37af63-3364-48dc-9deb-a409ab4229bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_25f5f878-a127-4cfb-a417-f25c013f9873">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_886fdb07-c160-4785-8f87-698af42ac43e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_2b3557be-b280-476b-aa2c-4d272053122e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_eb3945e1-5d60-4074-9e71-d688c5629275">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_97fc37a7-d7f9-4baa-a899-b20ecde368a4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_fab0f6ab-4f19-4c56-91f3-39448b0b9fa6">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_926cc169-483c-4660-8bb7-d22f22b9d724">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_0d7fbf28-ce27-47ab-895f-48b2c1139245">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_aeac6916-8fb5-4c4b-917a-27fb80a1fb1b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8b37af63-3364-48dc-9deb-a409ab4229bc"
      id="F_736cc2f5-c230-4c0b-82ae-42a0a08ff30a">&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;2,900,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_8b37af63-3364-48dc-9deb-a409ab4229bc"
      decimals="0"
      id="F_c1a23eba-de95-4ea3-8b83-84462fef2235"
      unitRef="U_USD">2900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
