<?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_60637d31-ee96-494d-b4f7-ee5e2e284096">
        <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:OfferingTableNa
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_e5bcf85f-ad22-4002-bfe7-ad6a3b3af36b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_2eecd34c-1f33-41d5-baef-b85c219cd489">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_5ccbf76d-8e87-4d2c-94c1-4d75243bf01a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_1a885d3e-e613-4635-83fd-5db515e5d0e0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_31fe6cd4-1913-44a6-b281-6fbe06799508">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_9437c7cd-c57c-4dfd-89cf-fad7cd1c7bac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_8e060a88-7a85-423b-bf31-39dec3776b3a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_c3c25a18-346f-4c36-bcd8-fedebc3d3536">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_8d5492f8-7762-444b-8e89-edc0e1022fcb">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_60637d31-ee96-494d-b4f7-ee5e2e284096"
      id="F_b0c18d26-4fc6-4bf1-9370-000bc6ba43b5">&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,022,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_60637d31-ee96-494d-b4f7-ee5e2e284096"
      decimals="-3"
      id="F_8ad1e2f0-a7fc-47c2-a0a8-0a6f5f71d34d"
      unitRef="U_USD">2022000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
