<?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_44b62d02-8887-4f21-9a2a-69ee0a03eeb2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_652385ba-e2ba-4c45-9ad4-c74084e5c99c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_5d21e50c-777b-4d12-b72e-d0113fd47f74">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_269e9e58-1f69-48b0-814f-50ae8d77574f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_86621ed4-1134-40f1-af86-6b41fd89f903">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_27984cb9-9dad-4dc3-b12c-6d16f07e8adc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_fda02c10-9040-4cea-8cd8-faa20d102d63">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_c17cbb86-8b0d-409b-90ad-8edfd081dc90">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_4e896d87-8fb3-4534-8d73-9fad2a51a0be">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_b40cdc30-d8c4-44c3-89c2-c223a1bd74fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      id="F_094b6e6e-376d-45e1-842a-107cdd1eeb29">&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;2,158,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_44b62d02-8887-4f21-9a2a-69ee0a03eeb2"
      decimals="-3"
      id="F_0b9d3707-245c-4f62-9c1e-9f6cdf87a352"
      unitRef="U_USD">2158000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
