<?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_16b89aa7-586f-4a33-97c5-6297800d2235">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_91437914-163b-460a-9558-4b7be7db4010">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_4def39c2-8154-410c-b97e-88adc9ff8b32">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_20dab304-f056-4128-b7f9-c265b3e8a319">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_8faadaa3-ee07-463b-ab5c-461bf3d2e330">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_0831080d-74d1-4911-af9f-c890e0aae20a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_f4e4859a-8c8d-4ebc-9f37-ee90da5eeac8">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_638d2794-9eac-47ac-95e2-228951c5e519">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_d56fa307-95e2-430a-a9c6-702e698a66ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_71203fd8-d61e-44ce-8f85-c7945d3a3f39">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_16b89aa7-586f-4a33-97c5-6297800d2235"
      id="F_239127d6-f269-4a0b-9cdd-2179edc257d9">&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;40,000,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_16b89aa7-586f-4a33-97c5-6297800d2235"
      decimals="-6"
      id="F_67f8acf3-574f-4082-b340-758371d3179a"
      unitRef="U_USD">40000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
