<?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_4730d800-7010-4814-8e46-b7e8d914320d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_27b18471-e783-4865-a1f5-23aed618341f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_e33fef93-21b6-4f1d-8aa8-7fbef5d4a434">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_5e803689-9c2b-4fc8-a6d3-82c7b99da59b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_7510deff-3f2e-4638-9f4e-581a474b4ff1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_4b4a2599-6648-4208-b99e-ac4203f4c6aa">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_950e85b2-e353-44a3-b015-60bbd4f51c93">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_2a95bb73-779b-4a4d-9b38-13c491045aa7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_b5dbf57e-94d6-4724-a413-91bd9c6a7403">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_db4db33a-24c7-4fe6-b1d5-ca40f61ba97c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4730d800-7010-4814-8e46-b7e8d914320d"
      id="F_28b90790-bb11-4de0-a36d-f2a8f2dfcf92">&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;500,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_4730d800-7010-4814-8e46-b7e8d914320d"
      decimals="-3"
      id="F_e116b19f-0703-439d-af80-0708336df4a0"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
