<?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_e922cbac-6382-42aa-a860-9b315a23da1c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_4144c707-53a4-436d-b7a9-dbb3895ba88a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_727a4a5c-e7f5-41a6-92b0-3f2f5529fa0d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_c8f65d3c-775b-4435-84ad-212113b0ce91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_e167dad0-2342-486a-ac8c-559974fd0bc4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_6240731c-7af5-4270-9187-279412af7c34">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_00daa9ab-b2f6-4e1c-9977-9ac00fb977a2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_3cc0dcbc-fad3-45ae-a56d-1e0ff1958948">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_dbf714c2-7158-44c8-afb4-c65708bfbb34">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_5703ff82-995a-47a6-870c-8fc358f932fb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e922cbac-6382-42aa-a860-9b315a23da1c"
      id="F_ea40af44-0298-4bcb-8e32-e55a4c5e24fc">&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;550,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_e922cbac-6382-42aa-a860-9b315a23da1c"
      decimals="-3"
      id="F_80bd1e92-9670-4510-8e3b-a5fc53731144"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
