<?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_be30a80f-a59a-4470-b004-267d94c2c9bd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_286aebd8-41c9-495c-b235-740f64b7a329">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_e0e97176-568b-447f-b68a-d5ec028e94fc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_1240509e-d637-4dfd-96fd-eccf38f1df59">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_a8c6f3ad-6ad1-4578-820d-86ebee06edd3">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_a27b0fac-8542-4f7d-9f59-e4d957cecdc0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_1af32359-f955-4d55-b62b-3e7a66787c72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_2d663290-8949-46ba-9b37-7dde433fa8f5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_081d914f-39f1-4187-b15a-f34f1a508854">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_5b130ce3-fd2d-4797-9d0e-0384aa5596f7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_be30a80f-a59a-4470-b004-267d94c2c9bd"
      id="F_23979571-4b99-467e-8280-b59191595c9f">&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;5,130,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_be30a80f-a59a-4470-b004-267d94c2c9bd"
      decimals="-3"
      id="F_4ed42034-8acb-40ae-9254-5d89fa23becc"
      unitRef="U_USD">5130000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
