<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_90932190-1c41-43f7-b8ba-4307163a6758">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_a9bd3efc-884d-451a-a0ef-1a96887eea5a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_37f74cf0-009b-4b23-a2aa-b63d5bb9fff2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_ab2ed0b2-c3ef-45e8-a4da-be0ce722e13f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_040a0ee8-0afc-421a-a2c7-3ebc867c3702">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_cfc9539a-4ee0-413d-987b-c65c8dd2db6f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_a25281e0-e831-4a89-b3af-286419394696">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_37509136-5f93-4ed9-8fc9-3045b88f3022">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_e3e70a9a-f065-4bee-9310-c04d493e0341">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_0a2caab9-c849-42a7-9b40-25c7624753b2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_90932190-1c41-43f7-b8ba-4307163a6758"
      id="F_26d3bbd8-1ebc-45d8-b589-7bb9925363e5">&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;125,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_90932190-1c41-43f7-b8ba-4307163a6758"
      decimals="0"
      id="F_1f2be475-03a0-418e-b04c-f1ce41bc1d32"
      unitRef="U_USD">125000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
