<?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_1d9c0d42-91a2-4cb6-8090-910f09214e4e">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_0aa257e7-13f9-482f-9ca7-d6625c40b3e3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_a5f5f97a-f4df-42b1-9a06-e035a1847674">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_55454ba4-2032-4257-b896-444071f28e96">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_56debea8-ddbc-4bfe-a147-5c4cf166211b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_644b1640-85d5-4c4f-8757-16f1a25f8e4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_aa955b97-fa6c-4809-b6bf-4e0a06405bce">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_c6439ef2-cec4-41d7-b956-c5690632d6da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_c942af95-e1df-42b8-88ce-c85c6049c872">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_1f2788e0-e8ad-4fe1-9e14-2e4cf3875085">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      id="F_df759d70-ae33-4e82-a503-897130ba6ae1">&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;11,050,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_1d9c0d42-91a2-4cb6-8090-910f09214e4e"
      decimals="-3"
      id="F_bbbe49de-0e68-4850-9b97-00c808c428a6"
      unitRef="U_USD">11050000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
