<?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_32e30545-9501-45c7-9883-89e8317ddd46">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-21</startDate>
            <endDate>2026-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_c893c7ab-2b39-4101-ae01-f83012a0fd96">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_10c58b65-574d-4bc8-97c0-e9ea26812b71">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_71fea9b7-7350-4e0b-8af0-c708c6b3dfb7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_4149e740-ad9c-4c48-b2e9-823e9600d6ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_a07682b4-809f-4cc3-8442-5df50e800a42">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_10af503f-2c43-4331-a0b6-9c8f171d9292">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_aa8db6b3-dee9-438a-929f-855d0137c92e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_1738ed36-4ee3-4478-aee9-670e5fd30f18">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_dd0d7237-791d-4a03-821e-cdb16798067e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_32e30545-9501-45c7-9883-89e8317ddd46"
      id="F_59d2f75a-017e-4529-9ac1-49b53d136857">&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;5,880,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_32e30545-9501-45c7-9883-89e8317ddd46"
      decimals="-3"
      id="F_2479ded3-650d-4f97-b084-e76a2afafcb0"
      unitRef="U_USD">5880000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
