<?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_4dada5ee-3cac-436f-afdf-460e14e15bc8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_0a903b9f-2dc2-4f5e-8947-f5012058ae95">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_30853d5a-a940-445c-b9dc-d2dfce849bcc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_eaa47339-4ed3-44cc-9c0e-9387512f2f73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_db1f71aa-4b05-468b-9e19-091db25fddeb">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_1514b403-5668-48b2-806f-c745a7ab826f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_189dfa56-97d0-44fb-8e84-2dfce0fa81a4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_935067c2-ee59-4c9e-9096-7e975c374fe5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_0838a008-d3f7-4da7-a419-d27ff462c4f9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_21cee4e5-7a3e-4a67-bd14-ad124a411dd2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      id="F_7ecc0560-19fe-4963-8fb3-708a1430575a">&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;10,416,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_4dada5ee-3cac-436f-afdf-460e14e15bc8"
      decimals="0"
      id="F_60af93ab-1428-49b3-bb8e-010c6d6a9dea"
      unitRef="U_USD">10416000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
