<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_5f535e15-ad76-4508-b98b-de3928073dd4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_751b966a-6e49-4f76-855b-7d54551ad8e0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_2af4341e-57c8-4204-a601-b819c7fe79ca">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_03c1bbd7-3dba-41ea-b044-b73e30ff2d91">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_62cf840f-a6cb-4207-8b6d-5673f4307dca">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_524ffe29-2c74-43b7-a1d5-51b16851d5e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_01b0422d-2359-41ba-889a-c29645544c02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_075dc4a7-bcb9-49c1-b51b-473d19209729">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_240a1795-c6e6-4070-8df7-135948167e27">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_c7a3fb50-16a5-4d56-855a-610f2d9cc39c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5f535e15-ad76-4508-b98b-de3928073dd4"
      id="F_17f1a2e5-6f1d-422d-b434-4585913a43ec">&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,900,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_5f535e15-ad76-4508-b98b-de3928073dd4"
      decimals="-3"
      id="F_e8e17942-ecb7-4721-b6ba-573e37468261"
      unitRef="U_USD">1900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
