<?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_5adff88a-2c78-4ffd-800a-3ac46c4dff18">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-12-04</startDate>
            <endDate>2026-12-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_015cddc3-2d59-42d4-a822-00846124e545">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_3c3c0ca6-f3d0-440b-9c25-42d9cd46b6a2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_75c88985-62f6-4e1f-a2bf-1d96e89e90e2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_3a789a2a-0e7b-487c-b475-6bea6df4e1b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_63ceb131-8f6d-4c4d-ad08-8319f73140c0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_614a469d-e8d7-43e3-a748-e9e4eb3c6d86">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_9eb4fc43-787e-4126-8e72-1e041c873a4a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_05a036cb-2193-4557-9851-483b2b606979">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_b604d72b-0d09-4b6e-bd5a-952fd8c8a63d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      id="F_dae43e84-d8bd-4f9e-8b58-724bfbae1220">&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;31,070,900&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_5adff88a-2c78-4ffd-800a-3ac46c4dff18"
      decimals="0"
      id="F_1a9cbaa1-e037-487a-91a5-8b046418583b"
      unitRef="U_USD">31070900</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
