<?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_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_a2753e89-4c40-40f2-8b11-75a41aed2f2b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_29ed0bbb-a183-4ed0-8b62-e0128d3172df">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_80c7f770-b395-45f7-be50-3f036898fab5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_c2cf3e88-e98e-4156-9235-4829915b6ed4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_72c2b761-b2ab-4ab7-b1ef-0c7d4ee0f65f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_a085c89d-e70c-4db1-84a1-da3ddf109b70">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_cc837d97-323b-435b-9624-01a5f69e3e01">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_8ecc1f0a-8c10-467a-a725-6085ec0e9086">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_797ceb31-a743-477b-a966-8393343e7402">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      id="F_bbcdd43e-b840-42f9-a1b0-2eeefeb34304">&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,000,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_c5f34839-8c91-4bc5-a6e0-ac22ea5ef75c"
      decimals="0"
      id="F_b2528db8-9087-4cd3-aa6f-7422fa2a4151"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
