<?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_d8febae9-9fd9-46cd-879c-a6f118093f75">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_aed4f2c2-f39c-44e7-a535-b9d7e64e0766">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_cc644e3f-ad68-46be-b2b2-2bbeed0a759a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_c6d195c0-f676-411c-b584-5924e741cb67">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_a0223f1e-1d94-4c4e-bf66-024839da1221">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_8db6fa4c-33bb-451d-afa2-a472726dbd9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_9b21bc70-c737-408d-85ea-aca794943cec">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_eb322b0b-d9aa-4bdf-81ea-a63d5e8c2c76">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_11b1738d-df0d-4bb8-b905-4fd7f2001416">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_bddd2604-153d-49f2-b94b-236bdf53cceb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d8febae9-9fd9-46cd-879c-a6f118093f75"
      id="F_4433581a-a176-4655-9e55-284d3474f76e">&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;926,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_d8febae9-9fd9-46cd-879c-a6f118093f75"
      decimals="-3"
      id="F_7104ba95-fb79-4d6a-a51a-6a43c67d9ec3"
      unitRef="U_USD">926000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
