<?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_08c8d784-14ef-4212-8f3e-435afcc489c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_0c81fded-ff42-426d-b700-289abd184a80">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_f6222364-1986-4b15-bd51-dabc103279fb">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_1a751540-399c-4ca6-8a30-e6087833547d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_15f552bf-071d-4aaf-b2d7-d848655a930b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_b1aaca50-1631-4dfb-b738-1c98358ace1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_60fb69a7-398a-4074-aba3-56f88a2aa420">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_a05b90d4-cdad-4b47-a8ca-c8f16379424f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_ba016b38-3759-4026-b32d-63d0b59b5ee6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_89ee6efe-b127-41a1-b78f-7b96b86907fa">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_08c8d784-14ef-4212-8f3e-435afcc489c3"
      id="F_023c0423-d69d-42e7-8b22-2fc9cc53dfb6">&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;13,150,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_08c8d784-14ef-4212-8f3e-435afcc489c3"
      decimals="-3"
      id="F_f75a9a45-952d-415f-a043-b979517fc5ed"
      unitRef="U_USD">13150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
