<?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_1d45736c-09b3-414d-a3c4-139470bd8082">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_f8e6b0a7-c267-4b9c-97ad-d57b7c10fedd">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_7c776b3b-7f54-4fd5-9884-24df25b84cf8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_844d3d15-e6ba-46d8-94b6-02de627a8fa4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_82c6eb05-13fe-46c5-b347-5f6c96be6a7d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_3ae103fb-1f81-42e2-ba37-664fd0b5dcd9">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_7fdf8a03-5a21-4f7f-b2df-f12618e12293">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_aaa9839b-b5a2-4fd0-bb1a-f1424c60f2bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_9d0aa4f2-a00d-4d66-a493-09b6062e433e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_c9f84ad4-81f2-4345-842a-9a59989a5f0c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1d45736c-09b3-414d-a3c4-139470bd8082"
      id="F_afc68342-06b3-49f5-bbec-0386ce7c6fc3">&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;3,785,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_1d45736c-09b3-414d-a3c4-139470bd8082"
      decimals="0"
      id="F_98bc1aac-3f66-40af-8c28-21edc1ab1e7c"
      unitRef="U_USD">3785000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
