<?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_13cfeeb1-6fa3-4995-8d54-31cf05d1d416">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_135db4d4-678c-4190-aced-4e87fb9c9f35">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_ef02ef3c-df59-4dee-aa70-2cbf4f40a595">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_7a475a9f-e427-46e1-8f0b-bcd296677c41">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_fbd3cbef-deb2-49ed-b909-ca11702feb8c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_0453dcb8-3ae7-4305-8294-8027101da582">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_46f38fa9-215c-4d2d-9277-1d61b0df7c35">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_9ba52d0c-9f21-44a3-b623-a9a8f7b7a8a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_c9f27b85-e42e-4558-9715-34d65fefa5f6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_42d38e62-f25b-4925-a646-88dac6f85843">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      id="F_8bb44a77-8cb4-4acd-befc-53dad35c6b9d">&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,883,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_13cfeeb1-6fa3-4995-8d54-31cf05d1d416"
      decimals="-3"
      id="F_549782aa-c126-4029-9913-e4c2f04bb55a"
      unitRef="U_USD">1883000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
