<?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_e7d000d5-2a87-423f-9a68-adbf9605c4c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_aff07613-5f7a-4c71-875a-e537292b0b87">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_8f29eb41-1ab9-45c5-8585-bdc561ee48af">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_1a63190c-94a9-4962-86e3-5cade8c09098">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_b2e7dd5b-583d-4aad-8359-263e773359de">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_34a02c03-da73-4c89-bba5-16ada969f259">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_da984ca6-d489-421b-9492-f0f3499edc67">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_e00918c4-7e99-4390-a358-4b67ec719d2b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_a0df63bf-910c-4dfb-b00c-a2f4e814faac">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_14bdfea7-00a3-4429-aa5e-f606842f1d57">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      id="F_cd49c286-30f9-4049-a811-26b4d9fef9d1">&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,001,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_e7d000d5-2a87-423f-9a68-adbf9605c4c6"
      decimals="-3"
      id="F_cbdc9ea0-1e85-417d-a88a-841a95db8ca2"
      unitRef="U_USD">2001000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
