<?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_d7dd7199-7eff-4841-9328-da6906ae09dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_61c5d3e2-dbfc-4a8a-bfe4-78fa055ab0a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_086c737e-5120-4cb3-94a3-84164e0db43e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_978194e6-89f6-424b-aa9d-41993bfabc5b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_e3e17280-d6cf-4156-bba8-3c8b12f5f613">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_1a2e118c-20e2-4bda-9119-8324cc1a0971">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_041d3f4a-5e65-44bb-9a56-aa7ec7647ca6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_882469ba-a926-44f8-91b2-32c282d1427b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_907724c4-d2ed-42d8-9b4b-51faf4776247">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_36d44386-dc89-4c15-8b69-21dbdd265d42">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d7dd7199-7eff-4841-9328-da6906ae09dd"
      id="F_7c478bef-2aec-4153-bde6-720774d69b63">&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;5,505,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_d7dd7199-7eff-4841-9328-da6906ae09dd"
      decimals="-3"
      id="F_f3a2eaa4-74cc-47c6-942d-7153cfc88704"
      unitRef="U_USD">5505000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
