<?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_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2">
        <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:OffsetTableNa
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_4da94ce8-f9ec-4f8b-a427-53966b6f8e07">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_484ca297-724a-4800-b6a0-be6bba7c68fc">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_855194a1-436a-4169-97b8-0ad9d0b39652">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_cf926c7c-0905-4b2c-a0a7-29b733d78711">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_4eb604b9-5eb4-46b8-b481-930ab6f81da0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_d0cb0c43-0a3c-41b6-a80c-620d0aa65953">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_8457ac92-b4dc-466e-9900-a06769271f24">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_814d4d37-89a6-4336-996a-5d63bc3416cc">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_caf1a66c-1de7-4dc1-acfd-628083f6d4de">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      id="F_d6f4d32a-c471-471b-862b-eed5a958b15e">&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;8,088,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_e7adaaae-23e3-4d96-978a-f7e6cf1d82f2"
      decimals="0"
      id="F_afac411c-6114-4ce8-a2cf-e140d95bc6b8"
      unitRef="U_USD">8088000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
