<?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_88101735-478e-4da3-ad91-ef14f52c75cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_6eefa08a-e0a5-4df4-8df4-01392bb9230d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_8b0efed9-5398-4b72-ba0c-ab7e22d4d762">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_44fa344f-79c8-46b3-88d3-721c19a09ff2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_9b6fde39-b3b1-44c6-8ac1-6ddb5c2f4b05">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_a1ed78b5-2d29-4d61-9bc7-c61b2f50e7fa">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_40ff3dec-2a32-4748-8dc9-a888767f8341">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_a601df28-c60d-42e3-9e3b-892b21ecd9b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_4973bc27-9233-4324-b6f5-10631f11c9fd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_1e83e122-0fc1-49bd-a8a2-e98195ef48f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_88101735-478e-4da3-ad91-ef14f52c75cf"
      id="F_4f2248cf-ec30-4210-9c75-24774a490507">&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,537,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_88101735-478e-4da3-ad91-ef14f52c75cf"
      decimals="-3"
      id="F_7871d6fd-52da-4e1c-9384-319744b25911"
      unitRef="U_USD">1537000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
