<?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_39dec20c-d50b-4ce7-8c51-bad05b61e273">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_11ac2927-e34c-4372-8a70-f0e51a2b6325">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_23a073bf-0d24-4184-b087-a5883ccd0dbd">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_5ccbc975-8837-4334-b7d3-9d3cc8a77312">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_d5b632fa-d673-4c3e-a63f-125ab19571ea">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_ffa6083a-94fb-4929-b51f-f00c02934352">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_6f11796b-7c06-47af-86b4-01a79db41266">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_7e686d3a-f38f-4202-821d-cb94876b0899">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_e039c2c6-14b0-4572-87e6-540ee1b6e9cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_f39ef43f-842c-4677-9091-4ae3049e5cb5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      id="F_30e5c5af-3709-48bf-855f-4a32947ed6c9">&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;2,071,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_39dec20c-d50b-4ce7-8c51-bad05b61e273"
      decimals="-3"
      id="F_b1ca2fc9-ce3c-41fa-8248-3d65adc00fe0"
      unitRef="U_USD">2071000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
