<?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_2ea5a04a-586c-4684-a4cc-9144d5411682">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_4b5255ef-dc9c-4426-bb45-f501d04689eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_5d60586e-fa66-4520-9779-6a067430f509">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_14704bc0-4079-42cd-a069-c8d7485b3a17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_d5bb00ed-1eea-4b7e-9dce-52e8adf68e54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_aef96be3-ee21-495a-bb85-575624deeb3f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_03700e0a-25f6-4469-93ac-b84723c8e029">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_4d209fa1-5a0f-4cc6-9cda-98caf4058a76">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_c00eea57-2ea7-4845-b97d-1ac80f79bc4d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_d1f892cb-44b2-4432-864e-57b7aebad716">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2ea5a04a-586c-4684-a4cc-9144d5411682"
      id="F_f7a60174-4384-4e47-9fe4-51d32855e984">&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;2,657,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_2ea5a04a-586c-4684-a4cc-9144d5411682"
      decimals="-3"
      id="F_ec335990-187f-423e-9ca5-acd879fa8e80"
      unitRef="U_USD">2657000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
