<?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_9de305b0-daad-4efd-b565-b215eb7903ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_fcdc430b-95f9-4d64-9444-6d02197c6620">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_cce580af-a623-441a-b5b4-53da70cbc359">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_f1f2cd62-64f5-4dd6-a308-b83c9f41ff65">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_61db5495-03ca-4de0-92ed-92fb180fab17">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_289114fc-8a54-4013-877a-1066074cdbd1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_e9d8b48c-efd2-4313-96d7-12ffa932d200">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_4df00eea-c975-42ce-a966-b49e64794c34">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_6c0f4ff4-8844-4d20-b413-2b54a3628a4c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_18d9378e-c22b-401a-bc7b-cc6297e028d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9de305b0-daad-4efd-b565-b215eb7903ad"
      id="F_47a65902-aeb1-44a1-a2e1-a6536dc5df46">&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;568,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_9de305b0-daad-4efd-b565-b215eb7903ad"
      decimals="-3"
      id="F_34787643-b112-4b29-8396-4a2a17220770"
      unitRef="U_USD">568000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
