<?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_91876ebd-737b-4079-a6f1-196d57bd8bb0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_2791fb9c-5041-452b-a665-add94e9f744f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_e5752e72-d9d3-43ea-a7b9-3039f86973ac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_05108949-ed2e-4d32-9b20-0ef2139f2cdd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_a2ab3da6-6fd9-44ed-809e-57cda04e60b9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_3290c450-3737-4bf7-9599-fc80ab77a3a3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_08744ff5-2203-443e-b32c-0e646a897052">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_d0810f99-042e-4003-ae64-942bc0b79d07">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_c6d2940b-3ef2-41eb-a03f-23d85bc31222">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_c3b08f4a-cc1c-40d8-9d93-08c65655530d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      id="F_6d16729f-59b9-4918-96ea-1c1cad1a5231">&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;471,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_91876ebd-737b-4079-a6f1-196d57bd8bb0"
      decimals="-3"
      id="F_66f6b86a-fbbc-48e7-abf7-d8e91d77b7c6"
      unitRef="U_USD">471000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
