<?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_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_be4da129-4f7c-4538-8fab-47b4c30cf88c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_da1c4704-ef0a-46af-aa83-98a69ec4bd38">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_60909659-1077-4bed-91bd-a00b9f8fcc11">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_9d57ea10-f8db-4f98-8cab-115f50d1b4d3">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_6f02913a-4651-4de8-aaba-54652a0c7610">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_21b95506-d652-4167-b627-c75034168951">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_3b99d113-4f87-4967-9cc2-77893d7e8dab">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_4ecf46b4-0818-4d2a-af47-05c3ef885b91">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_b0023036-73c1-49cc-8ed3-d9160afb53f1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      id="F_597e37bb-4df0-4f11-ace0-85a1f9469a02">&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;23,623,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_68b2ab74-cbfa-4616-9ca5-657a33b7a4f6"
      decimals="0"
      id="F_222f1659-43c4-42c1-971f-a6b7d235afe4"
      unitRef="U_USD">23623000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
