<?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_8221b682-ea84-466e-a7b4-0c3e495d6f46">
        <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:FormTp
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_b70bef34-eccd-4755-ab45-2ce40d7547a7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_e4ecedf0-6609-4516-8fd1-4f6dbba531d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_4025923d-988c-4c98-938e-76a2468ffe02">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_c109a1fd-f7aa-409f-b09f-0b5f0c7ce0a0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_a3801c5b-25bf-4623-a779-41ba3dae2110">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_f577967c-afc5-48b3-87cb-a8bad51d84ab">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_5038d81e-5378-4ac8-a591-2f156a818965">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_73919486-359a-4f19-9a4a-487161d227a3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_90b79b7c-6a51-4b48-b7fd-c50a1c26559d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      id="F_531bffc2-179a-4d92-8c71-cdd463ccb5db">&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;11,685,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_8221b682-ea84-466e-a7b4-0c3e495d6f46"
      decimals="0"
      id="F_7ed08edb-0aca-4cf2-8fbb-baf9999ebb1d"
      unitRef="U_USD">11685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
