<?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_93c234d3-3e9d-49c7-af1f-feb68e755871">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_bfc551ad-594a-487f-bcdf-161ec300ab63">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_802af779-2f1f-464e-9405-8b922b955da4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_0c176745-6cdf-4a58-8d1e-7acea46092da">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_2ff3205f-7eda-4eee-920e-55f520aa93ac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_b3a70c2f-f608-4f2f-bd11-36fb28aebe54">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_b9c95ec1-e3f0-4ecf-96c4-540a8a4db825">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_7477c593-e297-477f-9a96-457d3eb602b5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_5f06fc70-c23a-4ae2-a30d-16eeed766df7">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_7b54f2a7-06f8-4a3c-aee1-9eb191a96d38">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_93c234d3-3e9d-49c7-af1f-feb68e755871"
      id="F_9ce57fe3-b659-41c8-ad4e-9e5fcc216369">&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,500,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_93c234d3-3e9d-49c7-af1f-feb68e755871"
      decimals="-3"
      id="F_8f950776-b9d3-4f30-baea-7f93ef93c03b"
      unitRef="U_USD">11500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
