<?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_de3ac864-a956-4904-abc3-d2241c4a178d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_44c01709-1f8b-4419-a460-18c952a07206">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_ebec4ae7-0eb7-4e41-97f1-87742f72bc47">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_6b5db0bb-833d-44f5-9d8c-6da10d1a330c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_5fdf65d2-bbe3-418f-b54e-cb393b657ef1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_2687e6e9-bd51-4167-b7f8-fcc87281fde2">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_e6cdf66d-4d12-4678-a878-5a66799d2e47">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_b0c2f06b-01a6-4c75-8f1d-25c075e1a8be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_865cb14c-6f4d-4fb2-b5fa-d100d914e3cb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_f062456f-7df2-410b-ae6c-2fc9bd9f0a8a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_de3ac864-a956-4904-abc3-d2241c4a178d"
      id="F_2d6fe99b-c538-4a6b-ace4-d104c2c0feb9">&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;2,184,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_de3ac864-a956-4904-abc3-d2241c4a178d"
      decimals="-3"
      id="F_026d022e-b927-4111-a59c-73f145a80388"
      unitRef="U_USD">2184000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
