<?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_2898e927-b94c-4817-b21e-59b16ee9a015">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_8a729633-2ee3-4ba3-aa90-7cc0932207ec">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_0844d44b-57f8-4d3f-8045-3582c9a3c4a2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_f52e7a24-ded8-467b-819d-d3b0008025c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_d911a0c7-d8aa-40f1-9f59-979c0b763b7a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_3bb08746-7f74-45a7-b118-696265f20215">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_4325a592-3927-4ab7-95b7-74410c244db8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_3d739c4c-9f17-40a4-8e87-77c1edfb75a8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_b3d2cc0a-5899-4579-9530-b379073a30ea">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_dbe8d211-8fec-4aba-a5f4-7fa871f5dacc">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2898e927-b94c-4817-b21e-59b16ee9a015"
      id="F_1d92411e-e5bb-45b3-8db6-38cbd05eeaf8">&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;33,355,700&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_2898e927-b94c-4817-b21e-59b16ee9a015"
      decimals="0"
      id="F_b9d18ac1-c622-45cc-aed0-be43a09538db"
      unitRef="U_USD">33355700</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
