<?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_92c2b298-5f44-4984-8edd-a6caf46a4805">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_07370085-e5d6-4746-8648-d8c93d69fd23">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_6fb6d34e-3320-4cdf-9bd8-9e55ff27cd57">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_e6a155c6-5500-408f-9d67-ec4565d67e6d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_db60f02c-df1b-4944-ba7c-c3efe4d0556f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_d5e590d6-8ccc-49e1-8812-7fe3a3b78c53">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_403b8396-2282-4b03-8242-f2c70b44bc3b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_e1bb7909-2d63-465f-b533-4255375f5545">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_858c5227-e0a6-4272-a469-036e52f66714">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_5778ac03-cbcf-4180-a61c-8966e4a8db7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_92c2b298-5f44-4984-8edd-a6caf46a4805"
      id="F_82d0a8e5-b904-41cd-95b2-ce0474265b06">&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;1,350,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_92c2b298-5f44-4984-8edd-a6caf46a4805"
      decimals="0"
      id="F_8f620f70-39b4-4c7d-81f0-dcff32aac1e4"
      unitRef="U_USD">1350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
