<?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_bdb0a16e-55d5-4394-b7cf-612777a32c3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_abb0ef8e-1de9-4455-ba45-bd8ff6271d79">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_a7ddfa63-d761-40d9-89a1-b3ae9b2e4116">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_35b8e5e7-4609-4cbd-9ff4-9be4682c3fec">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_74d3370d-cb54-40f8-900c-72dc9072f1ce">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_bd453653-5bd3-46d2-936e-64ab0f53c1ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_35f29d61-f183-4e70-ae61-ec0819a38d47">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_af3c21b0-5122-4f93-9c89-f0ae9f5217f4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_0ebd6c37-6da2-4bb6-bf57-9ccc30c6d28b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_d00fd3e2-658a-486e-8a97-04996bf23243">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      id="F_2d72f62a-aed4-4aa1-b485-fef22fe5476d">&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;250,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_bdb0a16e-55d5-4394-b7cf-612777a32c3b"
      decimals="-3"
      id="F_bf3a955c-ba2b-4390-831c-b2716298a35d"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
