<?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_4723c5cc-7956-456f-9d83-f4717344af75">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_1bde41dc-8dc5-477e-bdb7-6130fc6423fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_22b5bbfb-2ae9-413d-9cf6-b6a83442273a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_773ce8fb-156b-4a71-a8a8-4730a2b2c5b6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_aa788bc6-45d3-4fc8-89f0-05541311e907">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_032fc1c0-1610-487a-8948-b0aa72e22c5a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_b7dc477b-e271-426a-ba87-19a11f41726f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_eac75100-f2f5-460e-9b6c-20429c7a8166">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_ee7a03d3-2f93-4f8e-9536-337783431a94">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_d73ecad4-7dce-47a9-9366-8d9ed28a61cf">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4723c5cc-7956-456f-9d83-f4717344af75"
      id="F_aa5d64f7-5fd1-47c4-b8ba-cf17c2fc109d">&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,338,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_4723c5cc-7956-456f-9d83-f4717344af75"
      decimals="0"
      id="F_99d4fc21-ab8b-4224-89e6-bf517891a2cd"
      unitRef="U_USD">2338000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
