<?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_88ee75f9-fdda-42ce-9774-842f926354e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_4ccd19bd-3df6-4463-a433-f2d5ea445dbe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_f345c9c5-32bc-4dda-8ba8-db2ee542d617">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_a282e7cb-fd07-4076-b719-6776f41c2f9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_4e5ca692-47cd-4306-8721-5515424ec61d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_91c4f412-edc1-4228-9d34-cfbb02414ac0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_4cce3bbb-6fd7-43a9-9296-2ad6380543e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_d1c2797e-877e-43ac-a9f1-78892d38f0e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_b6e399f9-d232-4148-a53c-96477c17c073">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_90feeb6d-5b82-457f-ae2f-8fe945c8a18b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_88ee75f9-fdda-42ce-9774-842f926354e0"
      id="F_54eaf2e9-af08-461b-8947-69b7b89eff8b">&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;4,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_88ee75f9-fdda-42ce-9774-842f926354e0"
      decimals="-3"
      id="F_1d75a439-8151-4f19-a71c-c03bd1e13a3e"
      unitRef="U_USD">4500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
