<?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_f7ac09de-3a50-43ba-8b49-dd805af58052">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_2f70fa23-efaf-4f7b-8f89-0861af22369c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_e0d2f8e7-061a-4000-baa0-d492308ef36c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_884c7a40-d3d3-4d8e-b7af-5b1e78a496eb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_dad4b978-d4f7-4f39-a9f0-591196912bae">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_f620dac3-116b-4c17-af98-a2792c3d9958">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_ab273005-033c-4b25-a4ab-eff86fb142f2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_fa733b13-6c22-47a7-93c0-82edb493667d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_687a47e4-ada8-4eea-9016-d766a0238f9e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_cab06f86-a091-4d90-851d-ac968601d8d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f7ac09de-3a50-43ba-8b49-dd805af58052"
      id="F_3a769037-dbc5-4c36-89f5-4f2d4fa22bf1">&lt;p style="tab-size:26.66px;font-size:12pt;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;11,533,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_f7ac09de-3a50-43ba-8b49-dd805af58052"
      decimals="-3"
      id="F_070eb748-95fb-4c64-9add-e7d13fc02694"
      unitRef="U_USD">11533000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
