<?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_990e1386-11eb-44ac-bc29-95f7ce1cebde">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-15</startDate>
            <endDate>2026-07-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_6a219886-b073-41bd-8e80-e4a325e37915">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_2b9f3c0a-69e7-47cb-a012-7eed2f9ef9ea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_028cbc28-6cea-4bc7-a67f-8ec1661b1de9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_aca4f740-3ade-42e3-a971-0b0b2bf1dff3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_4a55d7ab-7239-4143-b960-cd50f94b949b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_fb45c510-16cd-46e9-a318-0f0c52e43b0d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_198be657-a185-4741-878f-d183133de725">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_85659679-023a-4c4a-830b-bd76a113500e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_ddbb72c5-8dd3-4e5c-af4a-690999bed265">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      id="F_f040df5c-04b2-47cf-a76d-81f9243d6307">&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:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is an amendment of the final prospectus for the related offering.  This amendment increases the maximum aggregate offering price for such offering by $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;45,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_990e1386-11eb-44ac-bc29-95f7ce1cebde"
      decimals="-3"
      id="F_038af7c6-7a86-4bb0-87ec-cda164735a48"
      unitRef="U_USD">45000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
