<?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_63f8f903-c9f5-446f-bfa0-ed2c706122b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-26</startDate>
            <endDate>2026-01-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_65283967-17cf-4f6a-9a91-dbe89648edc4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_b3d494e2-b70b-4bab-ab7c-d8ee6d0df391">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_5298b2b0-64cf-40ea-96ac-0b78e8921b30">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_dfe8ecb0-0c7c-44d1-9ddf-4d07f96999a0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_1ccd9a4c-71fe-4404-824b-ac6fb75be20c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_e7439cbc-8a47-4ace-b865-89fb8b9a1a37">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_be27aedb-b7f0-4cea-8d55-51cc42e57f0f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_0f38e1c8-9763-4174-9afe-5c598836c556">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_21d35cd1-dd9b-45c9-a3c5-ce2a29a7cc87">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      id="F_f58daa46-af21-4cdd-9afd-2a51609a3d05">&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;2,174,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_63f8f903-c9f5-446f-bfa0-ed2c706122b5"
      decimals="0"
      id="F_96b36413-1f60-4e5b-baa8-cfaa31fc4807"
      unitRef="U_USD">2174000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
