<?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_3a485131-3e95-400b-a0d3-2aa855b18c46">
        <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:FormTp
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_252dda52-1414-4064-bfa5-bf2b0f02ee77">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_1ce67350-7720-4551-a1ed-a7e36bff5323">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_0c4ba08d-705f-44ea-bf5f-ec711d160ca1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_867b868d-53bd-4209-949f-3e3db96f396d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_b0ce23f4-e881-4e0a-92cc-80df6dde08e4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_801fdceb-5618-494b-afcd-9cb9dcde1a64">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_13546386-8760-405d-bfde-200504ad9efd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_521974f8-eb29-4d54-b32c-5b8bb74d784c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_eeee5964-1891-4ec2-9569-f74d92b0a8e4">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3a485131-3e95-400b-a0d3-2aa855b18c46"
      id="F_2ccb32c8-ac16-4816-80ca-76d02aa141cb">&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,015,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_3a485131-3e95-400b-a0d3-2aa855b18c46"
      decimals="-3"
      id="F_50c6d8be-7001-4c93-bce5-cf9ffddd346d"
      unitRef="U_USD">1015000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
