<?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_999f92fd-38e1-4244-a57a-cbc214e27295">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_04f531da-864e-4b0d-8ceb-c0ab006be392">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_7c8f98e9-1d0b-4fb1-9b3f-08a12dbb661a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_9d81d589-a08d-43dd-8a43-d02ae66cdd2e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_574d977c-2d1a-4303-8287-789a9207be06">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_47f8745a-b750-45e6-b843-76cb67d11fc7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_8c734e39-9e9b-4e58-8391-b363181642fc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_e5593812-9084-4d25-bd69-4ba8b6a5b0d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_7111a6ad-c6a0-4ab5-99a0-8cb0b5014346">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_979bf507-4de5-4fe6-893c-ed3f6e36dc45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_999f92fd-38e1-4244-a57a-cbc214e27295"
      id="F_df35214a-44c4-476f-9563-692ef939caeb">&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;2,298,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_999f92fd-38e1-4244-a57a-cbc214e27295"
      decimals="-3"
      id="F_65fc7e30-bb51-4d32-a30b-411be4f5b4a5"
      unitRef="U_USD">2298000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
