<?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_026df3d8-4826-4fa4-ae94-11d05ee705ac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_a82ccd30-f35a-4c9c-8128-3cdd1ab4f203">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_10455ae6-de03-4e92-acc9-9534c27516ff">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_1f775e5c-e883-4af5-94c4-541fae22f9fa">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_0be608d6-c046-46ad-8adf-5828ba74e8b3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_e0c7d7a4-63b5-4659-b04b-e3f778c4d08e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_6802288e-5659-4079-a256-fb27d976d7a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_7e59aabb-8463-4c42-82b0-e8cf20e75a5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_0b834937-c4ec-432d-9ca7-5f2181dbcb1b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_e8668395-e8b2-4351-89ec-f67a6db36aef">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      id="F_3661511e-b630-4f38-8d2a-2f43edae2d41">&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;1,161,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_026df3d8-4826-4fa4-ae94-11d05ee705ac"
      decimals="-3"
      id="F_80644003-e46b-4279-ab91-c6b44073b7b0"
      unitRef="U_USD">1161000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
