<?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_20244478-41a4-468f-adc2-ffb0db0e34cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_91a6371e-b03a-40a6-852a-d72219e644d7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_fc9b929f-69d7-4c68-8d39-dd5ecc68cee1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_581f11b1-920f-42ee-97cf-fa608f9faf83">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_9dd1fe64-cd40-49b7-ab7e-621b42cb97a4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_e17f9ff7-2796-4fa4-b83d-fb431a811644">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_6bd06ea8-b789-4cad-b7bd-feb2658b8a6f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_f528660b-7b01-43c3-9d10-12b43e17f136">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_4c5336cf-5318-4520-97ed-141824a12c9d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_f54e0557-b96a-44a4-a58a-9aa7e3ff8558">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_20244478-41a4-468f-adc2-ffb0db0e34cc"
      id="F_14a1b192-ec1b-4905-9a54-6d05ee6f3e24">&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;535,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_20244478-41a4-468f-adc2-ffb0db0e34cc"
      decimals="-3"
      id="F_226cf93b-c9d8-423c-a43b-8453aec34071"
      unitRef="U_USD">535000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
