<?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_dc96b1e4-405e-4fde-8f4e-009d3ac4f244">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_07015f90-5e62-42b2-9b4c-076d8c779e6d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_fa6ba31c-2309-4fb0-ad32-9846ef548d31">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_c1a10241-0fc7-4345-9dd4-787989d2a494">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_5bbdd70f-d041-4e69-a61b-d92107e64430">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_49dd4755-d3e8-4dd9-a652-203adc308229">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_938249e4-26d2-4e85-9068-de943cf300ac">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_d2c05355-1435-438c-a433-2e14464a3b93">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_5a4fceb1-f2f4-4402-a802-056845c6ce93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_2a9d0923-eac5-4619-bf7d-ee5be2455ac7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      id="F_e65ee439-f6bf-4a76-8d1e-477f6a8556a3">&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;1,130,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_dc96b1e4-405e-4fde-8f4e-009d3ac4f244"
      decimals="-3"
      id="F_d725c0ef-9c2e-4f36-88ad-154c45fae24f"
      unitRef="U_USD">1130000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
