<?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_06e93ae2-41f8-485c-925a-e851718bfb33">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_27879c01-ed35-4d6c-8ed9-d318d8bd27a3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_661231c9-77c0-4309-8c7c-296da05cc680">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_90633b13-4557-4e30-9577-45e5187ace8e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_03133c27-6a1c-4e76-b291-1905129438cd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_3f318c43-98c9-4185-ad57-c35c06622395">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_bec9ef2a-86e2-4d8b-b261-b16d1885ada7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_887546e5-ed05-48b1-a8bf-9928f41c800f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_c5d67d8b-3a28-4765-b584-3389fdd336d1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_c0664daf-1472-44d1-9fa6-45b01b1ba345">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_06e93ae2-41f8-485c-925a-e851718bfb33"
      id="F_d82ea6e1-e549-4d8c-a9c5-92f4b7c8d6e0">&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;3,424,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_06e93ae2-41f8-485c-925a-e851718bfb33"
      decimals="-3"
      id="F_0042d279-9c8f-433a-b2c4-d00a93dcfd60"
      unitRef="U_USD">3424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
