<?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_ccfc5a50-266e-4dbb-be41-f4ed1249bb43">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_46ab8776-55d0-434d-a1f2-f2c08c959e7c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_cf2ac35f-6a1e-4e99-b098-acd8dab4a361">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_f55d1d01-26a3-4daf-b5d0-f94cffb5698d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_a2c8d52a-814c-4178-bb62-dece074b360c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_d0d70045-18e4-4a1a-bc6f-f4e4bbf7298c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_dabac4ee-88e5-40db-9bd7-b6f8bf1bc88d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_a0dad796-7d30-4be4-872a-05077eb03153">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_02122075-9662-495d-9139-d959c29b0c09">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_d08bad56-3822-49ea-bf58-23cca2b587b7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      id="F_6814b132-d6f3-432e-9ab5-6e558adf063e">&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;1,522,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_ccfc5a50-266e-4dbb-be41-f4ed1249bb43"
      decimals="-3"
      id="F_dc650457-0ed7-4b6e-a44b-2adff747ffc7"
      unitRef="U_USD">1522000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
