<?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_1813f88a-37b4-4944-8d5d-e9dfd1e7a993">
        <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:OffsetTableNa
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_8a731f7e-cf78-4e5b-866f-b7effc12889f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_b832a057-2895-4e65-b1c1-9306ad1acb53">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_856a957f-a199-40a5-9354-3800ff125295">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_1aa6d4d1-7c25-4344-8516-32893f3f5d5d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_f9ca8a56-a6c8-4850-8314-17cc60f404ce">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_08f3f23d-71ee-43bd-a7ee-e6b223280158">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_36995875-0621-498b-b06c-12c4e155e26a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_428a2112-6f85-4acd-bc3b-5a192f0526c9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_df2ca0f2-0d47-4ce3-94fe-ef0bc93914d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      id="F_54ece8fc-7bda-4e94-b60b-3c2a76b72315">&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;7,946,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_1813f88a-37b4-4944-8d5d-e9dfd1e7a993"
      decimals="-3"
      id="F_8201fe48-2368-4acd-a953-facc98021e42"
      unitRef="U_USD">7946000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
