<?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_e4f40dce-b446-498a-8576-bdf1ba7501e6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_cbcb8d06-9906-445f-b9ab-69223d41ad1a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_39e6dadb-8c2b-4d78-97ea-a9832b8e6e7e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_3971e0ff-63c9-4aed-8763-858c55715fb9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_91295321-74bb-4e6c-baac-70893cd6d688">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_5d73ce1f-d8ca-4a67-a127-e494c12ed14f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_98f4a229-6c07-49e9-8d06-c1517229ed34">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_c932b6e2-3bf7-48e6-859f-1fb11eec8c83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_164cc1f9-243c-4fc1-b7d4-e35b56359376">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_4a68c723-692a-4ce1-9f78-ef059504d059">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      id="F_8d066002-1225-4fc8-804f-50af1adf3a20">&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;3,000,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_e4f40dce-b446-498a-8576-bdf1ba7501e6"
      decimals="-6"
      id="F_2c859e22-cb48-48dd-93a4-7cd34cc6b347"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
