<?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_283044fa-c53d-45b2-b97c-02fd2582a414">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_724afb53-6894-47b7-a747-338723c13b89">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_1640e14f-2ab6-4f26-bf85-d3091467c803">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_1b3798d0-b22e-416f-85d4-555ced68c072">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_e034b7b2-5a88-41dd-a9cf-aa50f9c45973">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_80416479-f575-4bc3-a633-1d7beb3ed5f3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_b613d6b8-4d8d-40ac-b063-a340b66439ac">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_9247c666-6421-43b8-9e99-5dc2b32c16c1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_51dbdaed-f7b9-4459-8c71-3aad6e8e8eb2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_ca519a21-d66d-4a1e-bf95-bb8cf2bce1f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_283044fa-c53d-45b2-b97c-02fd2582a414"
      id="F_5428855c-fdc4-4a1c-8780-4f3ca2d77ff3">&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;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_283044fa-c53d-45b2-b97c-02fd2582a414"
      decimals="0"
      id="F_895b383e-ad4b-4c36-8bb9-e2d0c68364ab"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
