<?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_359af046-8ec5-49f9-8a98-ff9721060776">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_2387fd55-4bfe-48be-a6ec-b7079f97605b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_a723e096-d888-4edf-b2f3-b2c147dd6135">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_44c8c0fd-da5a-4497-9e8e-e18b4b31c1ff">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_249f2604-ff88-486e-9a15-69de125590f5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_201ee4b0-4756-46b7-9c5c-f186add440d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_4ce256a3-363f-4151-b0ca-9f6fa21a44ad">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_823367d0-dbbb-4c45-989f-730ed214857f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_3782558c-028f-4669-bf25-02479678f687">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_82ea510d-9c18-4fb0-8eb6-a14fecb8e1ae">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_359af046-8ec5-49f9-8a98-ff9721060776"
      id="F_aada9ef5-7df1-4311-9edb-82a9f38fb061">&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;100,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_359af046-8ec5-49f9-8a98-ff9721060776"
      decimals="-3"
      id="F_cb3e6fe9-0105-4666-bc4c-d08e8ff9d189"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
