<?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_0241e565-8865-4a2b-a1c5-b797b4cefb67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_2ae55c2f-2f77-4e0f-b7bb-a916a810b06c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_ef6c999d-460e-4ab1-b658-31ed33566d3b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_6f9762ac-0a73-4e6e-b58d-c7df80773a45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_b52868f1-fdee-4e65-8c4a-9da9cd5034af">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_5efa17ff-0728-487d-aed6-7f06704f35a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_1aaf0e7b-11ac-4af1-a13c-7f4c0c50e2c9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_006e8889-494e-47ef-b442-e94c0a304fd7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_f98cad50-e650-4c26-acb1-e4e714b35a1f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_daf900ac-9bc5-4d10-9f0f-68f9a5e85a6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      id="F_ac543846-ac10-4056-a8ea-17c6875be806">&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,618,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_0241e565-8865-4a2b-a1c5-b797b4cefb67"
      decimals="0"
      id="F_02513fe7-5134-4102-b57b-d892a549d872"
      unitRef="U_USD">1618000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
