<?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_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_1c040a16-152e-4860-bd70-0dd62bca6345">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_64c29f5d-2a0d-4691-a0f7-a74f9f7f6229">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_64a3ae97-208f-4d78-b347-a3f6089fdd01">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_81d0fadf-0465-40cc-be6b-70d00639f667">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_e325d57b-a62f-402c-abc3-8293354661ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_cc196535-37c8-4706-ab69-ff8628349791">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_0aa1703b-8e13-4767-982b-7c534f230eab">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_17c9eee8-4932-4ef4-8ca2-a851612f3872">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_d91d0d85-0258-41f6-9882-e95a415d5eea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      id="F_2ff54404-3b25-4f96-ae0d-13f9ea525870">&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,610,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_d1ebad15-1f58-44f1-90e7-5d2e7beeeb86"
      decimals="-3"
      id="F_43cd9b29-a8dd-4423-90ec-ab38ab7fc884"
      unitRef="U_USD">1610000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
