<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_3a35c250-2978-43b9-9521-7cd8cdb809be">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_839af226-cf26-46e6-841c-761adb2f9f88">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_94e6dbb2-481f-44a6-95cd-b7bdf8dd3f11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_ce5e6bb4-99c8-4e24-9cdd-72ed7b47391a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_16d5feff-cb1d-45bc-aa08-f15aadc85506">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_1d8e0c8e-48ec-43e4-932e-c9079ab66838">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_6db8d4f2-4dcf-435b-b357-9c27ad5afeeb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_e06a260b-7f26-4362-bbe5-ef9eed84e4ca">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_d8078157-36d0-4ef7-8a8f-c1298bc649bf">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_156eb00c-1537-4af7-9210-197a9886c10f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3a35c250-2978-43b9-9521-7cd8cdb809be"
      id="F_3ce1d5df-21dd-44b7-8ac3-a6ab8bbb1dfc">&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;630,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_3a35c250-2978-43b9-9521-7cd8cdb809be"
      decimals="0"
      id="F_abeb4acd-285a-49a3-a588-88bc3718a5ee"
      unitRef="U_USD">630000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
