<?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_430a0c5e-2e6a-43de-86b3-029fb0723ea3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_d2622a7e-334a-4dd7-bca0-4e3d11a9ef05">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_6955359d-1748-4c06-bb9a-843f9968c648">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_b2127187-ba84-4024-beb2-46c96685a200">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_5a6f8153-a490-40cd-8011-fddfcd1be681">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_672bbc57-15ec-44ed-a07b-4ff2c107867f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_7807d612-5645-4701-b242-556c1bdd4a74">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_b7e64e6b-0c2c-41c2-8c01-ad2296d22de1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_20c4c6b0-75f2-41dd-8ed1-0081a907f73b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_38a97b29-0acb-4475-ac2a-d6a0dacdf6dc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      id="F_df9ae272-9d33-4423-9875-8247055ccbf1">&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;398,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_430a0c5e-2e6a-43de-86b3-029fb0723ea3"
      decimals="-3"
      id="F_b99da024-8a44-4cbb-b1e5-acdf8b207c76"
      unitRef="U_USD">398000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
