<?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_ff33bc85-60bb-4dab-a79c-cd30c7a13f51">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_0dc0bf08-7b4d-4fee-8d1c-028ec1a5ec32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_ebcf0188-1ac1-44ad-a148-7791f14e7aa8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_acf7eff5-b85e-4448-a0e0-8155785db95b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_769204ea-c643-4f92-92c5-31d652d5c448">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_a43be906-5da6-4bdc-8420-77efd90b9cdf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_70012b63-f5ed-4981-a54d-2fa7ede27198">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_4eed870a-bb33-464a-9701-260941190f78">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_ec9608d2-5c09-440a-ae41-745a45ef8418">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_df8fef83-9f5b-449e-a087-4590893abd88">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      id="F_e3141454-70e6-49d9-9a1f-f46b9f2e57ea">&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,328,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_ff33bc85-60bb-4dab-a79c-cd30c7a13f51"
      decimals="-3"
      id="F_9d64efef-740d-4f9b-82af-084a8488a01e"
      unitRef="U_USD">1328000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
