<?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_d8fe626c-bb56-41d8-a34b-5335064ded20">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_037972ef-a87c-444f-98be-1512292633cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_e1357101-be35-46f5-9e98-636041a7bd6c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_e6938ac1-d8d5-4dcf-b51e-e9de00d86766">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_1541d11e-12c5-46cc-9581-e0b61441b66d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_0265b46a-cf6a-48f0-8e12-963f2ced18d0">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_e8352451-cef2-466e-88af-ecb795fec91a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_db0f67e3-0fad-4637-aaab-0cc87e484a31">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_5c08649a-3c85-489f-9d33-397f7c5534d1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_c3545fa6-2cf7-422e-b5a7-66be4017e1dd">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d8fe626c-bb56-41d8-a34b-5335064ded20"
      id="F_cea20a33-38bf-46f4-ba7c-55e107e55615">&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;7,277,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_d8fe626c-bb56-41d8-a34b-5335064ded20"
      decimals="-3"
      id="F_9141d8d5-0a5c-4580-a4d8-d8f601cea5c9"
      unitRef="U_USD">7277000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
