<?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_4b30ac27-0d38-4f2a-bc03-3623cc1980d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_7e65b8a1-df7d-441b-8f2b-8a610e0b8c4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_888a2d2e-41f3-4b13-9a54-9009e66401b6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_3efbab22-e8f9-428f-9652-7eef8c0329a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_a93fe49b-87f6-4b24-b738-6634ed3ba99c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_513dfb16-7f95-4848-842b-9d9c67672d77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_14301247-13a8-45d8-a612-2b8c231b53c3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_dba8f240-8649-483a-8f3c-10adb572b854">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_bdc409e4-3d93-477a-bb01-92cb28593869">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_8213b81f-16d9-4675-b381-19534e1f0323">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      id="F_82c97983-4b5b-473a-8c91-ee1a9d689d84">&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;40,500,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_4b30ac27-0d38-4f2a-bc03-3623cc1980d5"
      decimals="-3"
      id="F_641e7eef-74f2-4578-9b66-9fda114c1cb2"
      unitRef="U_USD">40500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
