<?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_0acbd7b3-4085-4dfa-87fd-d1d820a516e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_1a3f4597-f4d9-42f0-9b85-2585ebd2dc75">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_8c8d2508-d74c-4e03-937b-27df0e53f635">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_358d46f1-ccb4-415c-93c9-6baada895717">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_12bb034b-e61d-4502-997d-e8ef9f88a732">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_30996985-716c-459f-8dc8-d64a4b01daa0">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_4b9cdf29-6e8a-4100-be4a-54ffe2ae23e8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_cfbef3bf-3029-4f98-b851-34147d46f4d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_5419d91f-7c50-4922-beb0-7494e4c1739c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_64244929-63e6-4f8c-9e60-00f3de8c157d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      id="F_b847e6a4-1e5a-45cf-bcb2-d019c611b5d8">&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;15,393,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_0acbd7b3-4085-4dfa-87fd-d1d820a516e4"
      decimals="0"
      id="F_7e5a7a27-768f-40d5-8bb2-d6ecc4350e13"
      unitRef="U_USD">15393000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
