<?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_4246167c-7d14-4312-86a5-5a3dde6e5abf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_d2f6ba1b-4f16-4237-834e-fa42f168101c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_b0fc463b-14de-46fd-91d9-c704267fc33a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_f123a4d7-e67a-44bb-8a94-7ece56d75d5d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_1f532bda-bebe-4940-b306-7e7b2f801e22">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_9185638f-3014-4b4a-b696-54931e78604f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_82217d1b-f036-40d6-9c5d-7e14daabf9e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_0dcf2740-6e0b-47d5-829b-698fdf3fd8ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_b4f1bf98-5b1d-4af8-9856-8879c24223ff">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_6769a02c-db9d-4245-b2e6-b71dd05db0ed">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      id="F_990fdebc-41e4-4240-acc1-af22f9e2c55c">&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;100,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_4246167c-7d14-4312-86a5-5a3dde6e5abf"
      decimals="0"
      id="F_6244b9fd-8820-4190-96b4-22cfdafe9ac2"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
