<?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_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_cac556d0-24b8-488e-86f4-b12fac104cde">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_56bf9c30-cd75-41e6-9f38-ddb38ed4be2b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_febc7536-c1c3-48ef-a518-a35f0e1f770e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_a7299ba0-3000-4126-9370-f9cb631fe41f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_7532607c-1863-4e0b-a7e9-b8c75ad1c92b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_20846ae0-8039-4909-af3e-d0ffefef50e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_ad54bcde-ff7c-4372-88d3-6d131ec62410">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_0f929c75-b891-47c2-a3a0-5ba735fcb30d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_5a51b848-26e2-4133-8ef7-cf920a6f4551">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      id="F_d96abfe6-7364-438f-947f-8579639319cf">&lt;p style="font-size:10pt;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;8,000,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_ebfb08a9-9b9c-42fa-b2e8-d0a1eaafa882"
      decimals="-6"
      id="F_676315fc-c476-4c7d-83c6-bcb00bda6ccc"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
