<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_8d7a7da0-5e6f-4925-ab2e-51965ea4973a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_a6958d94-caec-4b6a-ae39-44d730774a44">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_40841af9-144a-499e-9a2a-f0818fc318c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_ab5ed838-04e3-4a63-a7a8-f09f7b39f3bb">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_c4bd3bd0-0e31-4916-8668-083aff7f19ed">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_48f48ec7-0213-4b3c-820b-d197f3f13286">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_757e826a-51ba-4810-ab94-1183dac9e473">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_9d6edf9c-9b25-43b7-9a93-93ac08214fca">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_9ba1e3d6-2e0a-4d26-be95-3759fb6248ba">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      id="F_8ce12fa2-a326-4948-9ed5-bcb9ab0aac58">&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;5,686,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_8cf59e5c-33a6-42b7-8efc-a5bcaaf699bc"
      decimals="0"
      id="F_3c42a82a-ca21-42a7-a428-ad22a68af604"
      unitRef="U_USD">5686000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
