<?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_a8a2f8e0-d21d-4692-92df-b46a14fec01d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_97bd1ecd-63da-41fc-8f1c-c822aab450d7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_9c332a37-06c2-430c-a5a6-853b71e32b68">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_6f48c236-3459-4ee1-aea3-557bafa5a430">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_94e28c9a-4202-4526-9ff4-794daad95b31">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_c8a3f89c-6a0d-4d90-b3af-254e5081e1b8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_c02d37cd-22a0-415f-942e-20ea679cd647">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_a40475f3-5777-46b2-83ad-4e565eddb5d0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_16554281-2477-4185-af2d-f7098ab9b42f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_eb283f76-7396-4615-a07a-6f28900cbbae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      id="F_e3798023-a1b7-41d9-851e-309df198fd5c">&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;4,300,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_a8a2f8e0-d21d-4692-92df-b46a14fec01d"
      decimals="-3"
      id="F_5cf2f219-b816-41fa-aeee-fc31094c56a1"
      unitRef="U_USD">4300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
