<?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_5fc78aa6-838f-42ba-9dbf-788f2f5de33a">
        <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>
    <ffd:FormTp
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_729e659e-db5b-4c33-9a78-f9c90396356f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_0073b81d-5fab-413e-a3a2-75159a6599c9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_985460a6-7f09-4bbd-8022-b8c7c6da7092">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_99fba83f-788e-4843-bc96-c1f7ff03ae4c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_879ce71c-15fd-441a-9ac0-6f6939d03253">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_72422016-36c6-414a-bd96-90ed22a39527">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_fc471c33-978d-4f0d-861a-ef07cc43ee09">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_3f690e5f-20c1-4a91-afbc-a2277c6b3f64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_66c6c2fc-dfb4-4d18-996f-31b7276ef5d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      id="F_2a5f6488-3c15-4c00-9941-52ab06832eaf">&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;890,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_5fc78aa6-838f-42ba-9dbf-788f2f5de33a"
      decimals="-3"
      id="F_4264d175-9e25-4e4e-af88-f5eeea374b96"
      unitRef="U_USD">890000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
