<?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_44d17a57-8d5e-4e52-a88a-a4dfda5746e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_7968a51f-8770-4d44-b92a-4dc8a18efb42">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_e7d3d1a7-fb08-49b2-b5ca-ec189af095e1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_4cabd4cd-c4ea-4eec-b4d0-bfddb003aba0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_ce044d7a-cfe5-4f6a-ae51-68578865dfb2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_dba4f6f4-107b-4b85-b6c1-fc4fe16792fd">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_443d5fd3-cb56-4e70-b4ad-4c2ee1959c76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_c6ed8609-ed7e-4b0d-9996-a970f7d6cd27">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_dbed4b77-f1f5-4180-a86e-7953a1190584">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_02b28c33-41f1-4760-899c-225b32cd5310">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      id="F_402d8443-8a5c-4f9b-83de-ab97534b5cdf">&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;612,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_44d17a57-8d5e-4e52-a88a-a4dfda5746e9"
      decimals="-3"
      id="F_a2c1dd69-2a89-4349-b4e6-ef458965dad6"
      unitRef="U_USD">612000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
