<?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_6fa24f13-fffe-478e-945c-0a9552ae6cb6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-12-02</startDate>
            <endDate>2026-12-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_b5e41ddd-c04f-4b89-9949-4cc9a9426a8d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_01ed8b24-b5f6-4ff5-ba6d-5c53d58d263b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_8279e198-0f54-4f7e-bc6a-7669dc11d6fc">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_058d6cf1-7f54-4d66-9d64-276e497b3e4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_2251c9a5-2e38-4b94-b959-46eb98c01fc8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_113562c7-7d99-4cee-8a5b-cdbd6b62a321">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_b514746a-d56d-42b1-8f4e-0dc4c5f8a1d1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_b9ad8c99-98db-46d1-a4a8-e2140ecf49bc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_469a343c-446c-4416-8a82-a357b69a63f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      id="F_68ff8a7a-25fe-4795-bdf2-2469f58f0839">&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;2,853,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_6fa24f13-fffe-478e-945c-0a9552ae6cb6"
      decimals="-3"
      id="F_66246406-2fa9-4def-ad58-48e7d8249406"
      unitRef="U_USD">2853000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
