<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_7bdc4852-bea7-4d25-b326-7be657be7334">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_ce62402d-179c-4144-9c8c-d6f7d7a0138a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_ed341c69-0559-4e97-b94f-e4fba40551ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_dbf4d03a-4013-47f1-a4db-068a28d623f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_0bb30c7a-bd7e-4f24-97ce-6a1a09332ea0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_28c33361-da66-4552-bcba-08c6279fc65b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_64c8a62c-ea3e-4e3a-837a-73089b2698a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_c90f5574-59ce-4884-ad1b-4592e9096e81">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_13263c2e-36bc-42df-8c99-9719a0ed58f0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_dcfa4267-afca-4f42-a6be-f703c36df07c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7bdc4852-bea7-4d25-b326-7be657be7334"
      id="F_77b792ac-7711-49fc-954f-b3def5dd5c0f">&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;20,700,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_7bdc4852-bea7-4d25-b326-7be657be7334"
      decimals="0"
      id="F_eca92378-c8ab-41dd-8937-c374f8cf1f6d"
      unitRef="U_USD">20700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
