<?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_8c693777-7547-415c-afc1-95256cdddc25">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_8c62b06a-9862-45a4-a2d0-f95a28eb69bc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_2c1ba146-7868-45a3-801c-a313ef74bb33">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_12a3c43f-60fd-4204-966d-0a6eb8841c89">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_95898a5d-0aeb-488c-a711-84d3a98591e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_b517096a-c324-4ae3-8d26-e20fea359d55">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_e4027ae4-5249-4dd6-8e77-56889d8f84d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_53eb2994-eb13-4325-9c88-1ed402031579">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_9e0ad342-1d90-4b17-9953-74b9681e6182">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_0af8de07-e924-4a2b-8b9c-db1e117b7c33">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8c693777-7547-415c-afc1-95256cdddc25"
      id="F_2b4b75e0-7f71-43b0-8e30-52f90ee0c264">&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;3,183,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_8c693777-7547-415c-afc1-95256cdddc25"
      decimals="0"
      id="F_bf481c6c-d6e2-4dc3-bf80-6ce0f2044e4f"
      unitRef="U_USD">3183000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
