<?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_4f92d9f4-9d52-4597-8747-af32763e2beb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_3f5abb7c-d40b-4e8d-a73d-e49c754865a0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_4b1a9fc3-1e93-4d5a-8877-6689523b25bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_bfb43a13-aa2b-435b-a4dd-0bcf06336ad2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_a02d9576-fee2-4db6-907c-b399c9580a5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_d78a895f-d765-43d5-8b5c-4a4042036a97">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_507e2f25-5ddc-4c7f-9123-89744e8d4d75">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_c1a58c4a-45da-4b3a-8247-ee4c97ded065">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_2a3fc996-2d80-45ca-a66e-a255b6c03b57">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_e2293879-f9f8-4678-b072-5e7606f91589">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4f92d9f4-9d52-4597-8747-af32763e2beb"
      id="F_c8e3b4d1-a871-45b0-9394-a854faad5e96">&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,095,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_4f92d9f4-9d52-4597-8747-af32763e2beb"
      decimals="0"
      id="F_864f5d5a-64cc-4e6e-aeae-779a3f892c3f"
      unitRef="U_USD">1095000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
