<?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_b6dd8adc-2b06-4349-98fc-05b4177c96af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_4491c62d-396b-456e-bf0b-95ff2a9c1362">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_452677a5-2b70-45e6-b740-0876f4cf4fec">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_1ffb689c-e941-4d65-8870-b0de35d2d8ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_fcdd074c-46e9-4c1f-b9ac-191e548206de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_6a51e3ca-18f8-4a6f-8723-5158e4ff9be8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_c51a515d-122d-440a-8ec5-a799d9cd0a36">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_b00501a8-6b2c-4a5d-875d-0322441ca4d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_1b2cbd84-ec14-4901-801a-32f0b5807019">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_9b3b99a3-e1ba-4b54-aa01-28590ebfe957">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      id="F_bd190bb8-56a4-41c0-bf82-c8f8e399b958">&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;1,035,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_b6dd8adc-2b06-4349-98fc-05b4177c96af"
      decimals="-3"
      id="F_971aca3e-6c0e-413c-9551-9e087c752485"
      unitRef="U_USD">1035000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
