<?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_5df58237-a73f-4660-8a7d-697225374c6f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_466c5ca5-9c4e-40ed-b735-99c9d6f27dba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_1a98b965-de79-4aa9-b343-d1df5cf8b7b4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_d7367344-48df-47e7-b289-8cc85aee3627">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_50beb5b8-421a-4a5a-b56b-b8d2d86dfdea">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_c0f2c2e4-32b7-43a3-94a4-811ecfc6eac4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_6094520b-94d5-4499-8d93-06791839fa09">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_fe4ca474-0d30-4c6a-acf6-65109397090e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_1adfb53b-5c64-442b-a219-40d5e9ea4b2b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_cdd63c95-12f6-4669-b7b8-ca96caf456d6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5df58237-a73f-4660-8a7d-697225374c6f"
      id="F_55fc95e6-7423-4f35-8138-ef904b1c4a67">&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,146,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_5df58237-a73f-4660-8a7d-697225374c6f"
      decimals="-3"
      id="F_41a35b34-edb8-459e-a052-18ae266bd590"
      unitRef="U_USD">3146000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
