<?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_ae58187d-cb31-415c-b2dc-8fc5c65a0371">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_668021b3-7a0e-401f-a4f8-f74c461c9480">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_08ef67a8-923e-4d62-a9d7-c71ec80a7440">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_07fa3b56-c7ba-4efb-bc0a-fc5c28c866e7">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_f5c86fed-0e18-4a97-88cb-f5e51f5d5fe7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_a552dba3-c564-468b-ac7e-6685f4e57c7d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_5c9451a8-3aee-4a53-b371-a39115d50424">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_22d77f8d-decb-4700-8020-5c667e5d42f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_319efa56-d6ef-4b3c-a59c-c0cdeb0ed678">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_904b99a8-1283-4b15-bab0-01fc227c4cd1">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      id="F_9b70fabc-c522-42e1-bc61-b1d201cfa88e">&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;1,005,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_ae58187d-cb31-415c-b2dc-8fc5c65a0371"
      decimals="-3"
      id="F_310d43c7-4242-4a65-8c4f-f257593370d7"
      unitRef="U_USD">1005000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
