<?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_4b04d8d7-80be-469a-bef3-6f31a2152025">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_93bae733-ad1b-4c2b-ab88-3b3b4c43a182">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_6b26c78f-4d15-4c78-8694-152499313ecd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_f8c64a3a-f993-4a26-af72-f1871ae9458c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_1b840d87-5c6c-46c6-9e0b-33337e6586d8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_9f9dacec-0e77-445b-b493-d35df09a44a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_80907690-37f2-46f8-933e-b74d3cf717a3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_19fcef77-0ae8-4362-8720-7fa12160dc8c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_15b1a0fb-3cd4-4c63-86e8-c26bbd2fcd47">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_ef95a8f4-4c68-477e-9153-2e35b1034c22">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4b04d8d7-80be-469a-bef3-6f31a2152025"
      id="F_d8a51c77-d739-46d2-8084-f18da8932183">&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;955,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_4b04d8d7-80be-469a-bef3-6f31a2152025"
      decimals="-3"
      id="F_ab43f8ba-7efa-470f-a984-4ee173384a46"
      unitRef="U_USD">955000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
