<?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_28d5dd25-0266-4f06-8011-dd1391745ee9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_2d29d724-23b4-41c1-837f-5b89097e5115">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_cd031ba9-781d-4018-bf05-1247db2a7ea2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_7572ecf6-96c8-4387-bb9f-96ec8e440acc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_d2315fbc-0c3d-4c33-a880-b0f0968a4b9d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_03292c5a-c438-41d0-86d1-0c2f82ae2eb9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_4e98104c-c403-4e99-8fa4-dcdd7df02054">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_1096cb8a-7cdd-40e1-a16f-605e9f05849b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_346534c2-ed7c-45c3-9042-0f6496fdb1c4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_f9600020-a1b3-4bb4-97ae-ce124ebcc713">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_28d5dd25-0266-4f06-8011-dd1391745ee9"
      id="F_ab562664-a236-4e55-91cb-b016bc914e76">&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;815,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_28d5dd25-0266-4f06-8011-dd1391745ee9"
      decimals="-3"
      id="F_d9f05a00-8194-4cdf-a85d-095d4d68ddd1"
      unitRef="U_USD">815000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
