<?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_36202973-3023-41a0-9d89-f4e5b08e4661">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_52cd07a2-a63a-4875-b131-48847168cf9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_96c748ee-be41-45f8-93d3-99bf6148a5d4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_6e2e6adc-a694-425e-991e-515705321e1e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_836c81f7-9a86-4c8e-a0ee-12fc950bebac">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_177e7cde-f020-47b7-b909-23260f1f8184">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_67bf8207-8131-483d-bc14-bd3de085c939">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_d9081df2-be4e-447e-9aaa-480b5c84de8f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_0806b8ed-7933-413a-a006-abd5feaaf963">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_17caa5d2-03da-406a-b518-bc9207dd3d6a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_36202973-3023-41a0-9d89-f4e5b08e4661"
      id="F_d3328e3a-dff8-443c-b569-dcfc3ac526f5">&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;5,092,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_36202973-3023-41a0-9d89-f4e5b08e4661"
      decimals="-3"
      id="F_1af0fbc4-496f-4959-b340-b7481dd22914"
      unitRef="U_USD">5092000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
