<?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_08791c86-e0f1-4cbc-9220-ba4aee0f3475">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_b1917549-b85b-4a8b-83b5-fdeacf5e932d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_4fc67bdf-273d-4518-9266-070518489bae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_3e587777-9e5a-4d1f-b30c-a04497ddd468">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_e52399cb-be65-4c9f-8fef-365a236ee01e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_b779f0b5-fa3c-49a9-bb04-6c797cf3d3dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_4b44b46c-8e89-4752-8bab-1464ef57a539">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_db53179d-23f2-4732-bc9d-3244f1087550">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_2122bca0-f129-417f-8c25-1f908b9fc570">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_53e55c19-7c0b-4ce7-ba61-95d0dced155d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      id="F_7097027a-0070-47a7-83f2-e45c6aee9f2a">&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,193,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_08791c86-e0f1-4cbc-9220-ba4aee0f3475"
      decimals="-3"
      id="F_55f7ff67-20ce-4e81-8534-cf0802205165"
      unitRef="U_USD">1193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
