<?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_04816893-7d82-4dc9-a8ec-a14ad4778be1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_95c17de8-e41b-4008-a191-d5febe1392c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_ab067278-48ee-497b-82c3-b40cc011eb69">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_28dab4a7-b07b-4489-a7c2-6ad7a84a9128">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_1e0bba76-9fd3-43c9-b807-f04e7d9d2799">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_7cf7bd14-3fe4-4487-a534-e2d1446313a4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_df13182c-b3ed-4568-8d0d-52c67d6245d6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_ee6529d7-f5ba-4800-934a-4f17f67c8f20">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_714d277c-80e5-48d4-9e76-bb41a0af7f73">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_77cb1fe7-2fe8-48aa-ba8b-844599000be5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      id="F_ac5255fa-73ef-443d-ac9a-dfc8d8a69a5b">&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;1,615,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_04816893-7d82-4dc9-a8ec-a14ad4778be1"
      decimals="-3"
      id="F_aacf948e-e38b-40de-8249-4ef6fdbe2e99"
      unitRef="U_USD">1615000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
