<?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_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_47a5a845-dff0-4fc3-8783-8a6897bdb268">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_a4439b39-3de5-49f4-b7d3-1948c3d069ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_1da29e1f-9dd6-4018-a4a0-d224bac814ae">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_b690ee4c-f0c3-4230-bff5-33f01312ae10">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_409cb04d-ac0c-4ab7-a0a2-06fe41b69684">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_fe66b442-62fe-420d-b7b7-903c5b4de8aa">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_defb9a74-5ca9-4d35-ac1f-a81c5cd5f538">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_64c06f72-322a-476e-9ac9-55df62c5be8b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_60847fc1-4773-4536-99a3-95b2a87f1066">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      id="F_1e4153b7-d8fe-4520-bfb3-9b22ecbe3f3c">&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;8,353,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_00e8fe8e-f03b-4bd4-87d8-0d28c3c9cb60"
      decimals="-3"
      id="F_7b7c068d-2968-44f2-8a96-04bf0a2431e7"
      unitRef="U_USD">8353000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
