<?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_c0a37714-cc3f-4d40-8edb-7068524b801c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_9e542074-907e-4a24-88f3-c8ee77130987">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_ea2c6ccb-8a4c-41e2-893b-005e0ebe350d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_85525215-e24c-42b6-a5dc-1e63f8f45286">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_07f9cd23-f5fc-4340-b97b-80ae1e6649e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_de0e41aa-5820-4e3b-b287-c09b15701a85">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_b063cddf-ad55-44fb-8842-f508aa32d317">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_ed64cf3c-577d-499d-981f-f1c251cad1a4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_ee898db0-bd7d-4596-9ab4-5cc48282fa05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_cc17acf6-4351-4716-b2ed-3af2aeb704e8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c0a37714-cc3f-4d40-8edb-7068524b801c"
      id="F_43ad622d-2345-450b-994d-6ef89565557f">&lt;p style="tab-size:26.66px;font-size:12pt;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;23,639,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_c0a37714-cc3f-4d40-8edb-7068524b801c"
      decimals="-3"
      id="F_9c9f05b7-fccd-446c-a069-ce9ab89bac2c"
      unitRef="U_USD">23639000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
