<?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_3e0597ce-61d5-41c5-b0d9-1da1a266df04">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_0a97eb65-6bda-48a9-b43f-62c82bb571e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_5652fcef-e3c8-4cf3-b50a-9fe9a12d3959">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_26d2e474-6a7d-4e3f-98d1-99d8be85ab62">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_a7c1abc2-9743-4cf0-999d-a9923bdb57e8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_d96eb87a-981a-4b74-918b-00a190e5fdcb">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_73810d33-722c-448f-9a76-1d1afb059004">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_90f21a3d-f180-44e0-a888-3b53ef3b4f06">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_224643ed-1995-4bbe-8dd1-37b92f63b67f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_b6b9e2e2-984b-447e-9607-c0c56d0f3115">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      id="F_b8547ab4-303d-48cf-8527-4c16e7629639">&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;1,181,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_3e0597ce-61d5-41c5-b0d9-1da1a266df04"
      decimals="0"
      id="F_b32adb09-5e7d-4727-b7a7-c468510d64b3"
      unitRef="U_USD">1181000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
