<?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_0e8329f7-668f-44f0-a35b-1dc4331f9f44">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_20a81eb7-5ea2-4491-be00-a95e02e997eb">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_f4f6084e-8ce6-4c8c-814b-b2455f74eb0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_b7a916c1-1688-4f6d-9514-47b6b6907487">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_b17ce322-b455-4c4e-b13d-c830e7612ee1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_b99f2074-184f-4a9e-ae03-40121b9bf95a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_49907bd6-edff-4745-b28a-e7356083683a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_3ab1d5d7-3a3b-498d-ad28-4d4025ce7be2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_4035502d-9b24-4d54-858c-8b6455782171">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_9d3468ef-b9aa-463e-9081-bf41578afe41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      id="F_6b428344-d9ba-45f8-8916-6275352aa626">&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;1,540,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_0e8329f7-668f-44f0-a35b-1dc4331f9f44"
      decimals="-3"
      id="F_18c66770-c39e-4e4d-9147-b5187c9a54cd"
      unitRef="U_USD">1540000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
