<?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_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_f9d82469-557d-4771-b244-798fbf5da6e3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_42a0c26d-c9d9-4587-bf00-dd84d9793a2a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_5e910fa3-e099-4498-8717-e44b40306991">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_ff72be44-05cf-4dab-b754-e580e1a30102">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_9f34b8fa-2b81-41ba-842e-f10936e5b8c6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_6e565172-8fba-4a53-ae0f-162b203ece4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_a20cfacf-a7f9-4ece-b389-957cace6d737">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_7bde2b16-3c1a-4b3d-8057-1222b69b4253">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_3a9b1763-c03a-43c8-b067-ac6e34af78aa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      id="F_0975664e-b0c0-4083-899f-a960cf9a0219">&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;500,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_8ffd2a6a-f540-4b16-bdb7-5d8166bcc05e"
      decimals="-3"
      id="F_84aec354-2164-454e-9a7b-44c3aea3cef1"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
