<?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_093b5ff5-354a-4916-9159-0184f49b5962">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_7a6a8b0a-df74-477d-834f-965c19e98df8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_fc2a32e2-ef55-4d7f-85fa-fae8c6eb8117">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_0186f4da-2c6d-41de-a49c-c2871faabace">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_87bb0144-bdd7-4151-980a-b7f357fb493b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_88cf9906-3b0a-4e29-b1ad-61857455e54b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_617eeb1c-e65b-46eb-8a17-eb4c52d16667">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_727934f5-ea9f-4297-94b8-45a4f4e572ba">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_e2aa2243-2009-4921-9059-cbe5d68aff42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_d754d5ab-1b10-4533-978f-1cce5ca96d9a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_093b5ff5-354a-4916-9159-0184f49b5962"
      id="F_f9312474-c9f4-47fc-9ab7-1bf796f7032b">&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,556,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_093b5ff5-354a-4916-9159-0184f49b5962"
      decimals="-3"
      id="F_c209eee8-1421-4410-9c2a-2b9618cd5db0"
      unitRef="U_USD">2556000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
