<?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_03342f93-a4b1-47ba-b5e0-38048ef37dfa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-27</startDate>
            <endDate>2026-01-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_8fc921e6-3230-46c3-aabc-fc8ab2deefe0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_61920e07-92ff-4bfd-9d4b-720f65f1e8b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_c65e215f-c927-4848-b25c-6d063d4b2a79">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_fe041b48-feb3-444a-8aa5-fe324575b556">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_e6d358fd-7f12-4e40-9ab0-b00ab5f383f6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_1ecf97c3-1f68-4b5e-a197-8a672477b043">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_f326ba84-14db-404a-81e0-e1c9d51b87a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_f269d752-f4b8-4089-9553-2ef5aa2ae450">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_8a930546-8bdd-4bb0-8169-ab8a0cd0729d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      id="F_462731a9-6b37-4bd4-9473-fa22d90bfab0">&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;12,000,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_03342f93-a4b1-47ba-b5e0-38048ef37dfa"
      decimals="0"
      id="F_800c1b20-cddd-4439-b456-5d9adae6df43"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
