<?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_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_baaefd68-f5e3-416b-98e3-f602004f7042">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_2d3312c2-24d1-424b-9d66-ab724db02126">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_305fa47f-17b8-4cb7-9552-04db456d0439">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_134a58fb-8aee-4adc-a66c-dbdfb496e0ad">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_4c269d3c-c4ed-43da-8d57-d6f60f4dcf9b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_eb09c3b7-693d-43b7-a60b-f852c86b6e51">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_3e28e815-bff5-407a-b461-484bb0de9d4c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_0f6591b3-6736-4760-987d-58e82a37b921">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_2058cf5d-d830-4334-b837-d0aeb3cc5d07">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      id="F_88153d2c-e704-4e96-998a-9b0fb0ce4c05">&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;4,441,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_66c4b276-d5e9-4dff-9cf9-e6a5b12b7b92"
      decimals="-3"
      id="F_523bd5ed-7dde-44dd-a6b7-cb3de29c06f5"
      unitRef="U_USD">4441000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
