<?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_68299370-2fa8-4109-866e-033acec7b114">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_73fe90d9-293c-4242-b4c7-b0ada47f3107">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_61adc21e-c25c-49d9-81fe-dcbdc5164200">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_9add4ef1-8b2a-4f85-abdd-3d0d8fe43fb9">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_ea6bdd1a-0c16-491d-a4cb-d21c26b5de93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_4cb6dbf6-7ec5-444a-aa18-0da54fa424d2">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_a919191b-ec6c-4a02-8a0b-78e116a9b89f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_3dae4ded-0060-4d0e-9f42-75e856c468df">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_a2e18707-0b10-44a8-bc7e-5e519a135f60">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_c25753b8-ca62-451e-a9fa-c9e898fa6437">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_68299370-2fa8-4109-866e-033acec7b114"
      id="F_ec1e81d0-c3dd-47dc-993e-c1ea304569d4">&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;3,960,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_68299370-2fa8-4109-866e-033acec7b114"
      decimals="0"
      id="F_6f6f7a81-8198-4d9b-bfc6-b271dd4228f6"
      unitRef="U_USD">3960000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
