<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-21</startDate>
            <endDate>2026-01-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_7ab97068-9dea-4688-9c3b-682e7dede89a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_14f259fb-fe63-4ee8-b95f-2237adc91f31">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_a79043e2-ac4b-452f-b212-fe3d4656be39">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_e88f3767-7e89-4fc2-a59f-47e799742290">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_2398702b-a418-45db-8ab6-f08e61b89f13">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_e29800d8-5e51-4b85-a99c-6c021b151c5a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_c50b4262-773d-40c0-a6f0-c08a071befde">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_fa1b5c09-aa62-45b0-8ac2-6737ee9bc874">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_8d1f5cba-16e2-494d-a510-8da19bcd76fb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      id="F_92657fa8-1da1-498d-bbc9-2e0955edb8d2">&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: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;19,397,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_ea0e28c4-e5d1-422d-9cc3-3dc02e368aa6"
      decimals="0"
      id="F_e3b4b352-3232-4002-a65e-6c7e5bb7b5ec"
      unitRef="U_USD">19397000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
