<?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_c835fa7b-1195-4101-9d2f-21c421a2c13f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_2e1cd4e6-697b-4b07-854d-2fdbb108e24a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_7244abcd-d1d4-4330-8469-c23e82d05604">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_cc91247e-3d6a-432f-97af-8db03fc64bda">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_921fa092-f9d9-43f5-991e-281d8f23fd12">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_9cbf435e-b9b2-4202-8ffc-22d6c20b1302">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_3035d780-5741-48e3-b26d-ccf020681669">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_deed34d5-a4bb-4546-825a-b840b04cfe1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_93e9ff77-f0d5-49f3-b8e7-bc80a57c9e15">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_0ea510b3-7943-45e5-bdb6-04ae18291834">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      id="F_1d7d65be-9c1a-458b-86f2-3b45140f3a71">&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,124,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_c835fa7b-1195-4101-9d2f-21c421a2c13f"
      decimals="-3"
      id="F_58c5a60f-7b77-4272-a9c0-8e895d499154"
      unitRef="U_USD">2124000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
