<?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_d26072a9-ffa7-4e08-87c3-1aa1af707ef7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_3facc0b8-e186-4cd9-a0ac-24d20f8537a5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_b4260fe6-9598-4e81-9969-0514aec59f79">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_2cf1279a-e487-4655-845b-738b0b764ff3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_38449de7-1ced-4f09-959a-9a957fd5f71b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_e9742d1e-50f5-4be4-a6d4-608b95b06d7c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_c3cad976-d0d0-44f8-a1e8-383ec4abb1c3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_fdeaadcd-75a2-4b8d-b92b-4982bd360ebe">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_9d4ddefa-b5ed-4069-902d-6a2f965476ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_f1cb3cbc-b593-4c0d-93f9-f980e06d7ed2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      id="F_b0b2209b-36a1-4407-adaa-2415d9565b25">&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;686,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_d26072a9-ffa7-4e08-87c3-1aa1af707ef7"
      decimals="-3"
      id="F_2892ca9d-d06f-46ac-80f7-cac7c903b44c"
      unitRef="U_USD">686000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
