<?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_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_3ab845db-9f8d-4e4f-a20e-fb2c1104a084">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_eec4eba1-126e-44c4-9f9a-c2d167d8dcdf">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_e7c936a9-6e10-42c1-a1fd-ea51d21162f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_adf7865f-c519-4bd2-89d2-a5fe5ca1ed3e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_1df9ffd5-116b-427c-becf-5d3ff7a3e16c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_afda6c09-aa20-481e-be80-f4c77542c71e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_d8da90be-376a-447c-863c-05cd9962e51c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_039ed124-67a8-4806-8c1a-d4bafe6f1a1a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_8691c0d9-0d3f-4876-b101-60e730205b9f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      id="F_bebb7323-c832-4b54-a7dd-49e9af157fe1">&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,135,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_7e9f2854-4b0a-46d7-9aa6-ccfe25a98841"
      decimals="-3"
      id="F_e3d9ece3-078a-4457-8d77-8669d52829e5"
      unitRef="U_USD">1135000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
