<?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_628b24a2-dfa9-44b2-b673-21e26f03f4ec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_18f422f3-6f61-4f3f-b21c-855c742b80ea">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_dd607a5c-8d8a-4c71-993e-8c06a80d547d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_d6191959-e658-4bd5-8d88-5c3860a12ad0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_705019bc-bf5d-475b-8abb-398e302eea53">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_15205c9d-0ca8-4f6f-9793-f05e7377be44">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_bbef55b3-6a8a-4050-b5ff-c577f7d1cdaa">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_94c9cc76-deec-49e6-a8a8-b92c44181734">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_1f3dd21f-d6c4-46b9-a010-164fb0cf494b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_9fbba7ff-3373-43a6-bd36-e9f85ddefd3f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      id="F_491e394e-a13f-43d0-984a-e3bd6d8047c3">&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;2,189,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_628b24a2-dfa9-44b2-b673-21e26f03f4ec"
      decimals="-3"
      id="F_e5857533-6a9f-4e2a-b06a-3b01fbe7f086"
      unitRef="U_USD">2189000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
