<?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_071651fc-f7fd-4c9d-9357-6685cfaefaf0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_42bfb0a0-07c7-4c04-8418-833a3673c56e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_b16b03bc-c67c-4cfb-848b-ace7a6d391f6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_36d3785c-072a-4786-be14-35459389ae21">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_4ff498e9-a330-4931-a326-50ce1dce7028">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_0d3a57c4-af91-48ef-806f-a57e38c99fe3">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_55a89bb8-02e4-4811-bb45-91e08ff7f5eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_227f6fda-ac00-4981-aa12-a5e3e292878a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_0ee87aa9-9dd3-4e9b-9177-3272d723a66d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_756d2f16-8132-42b8-9468-eb040d29fae5">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      id="F_b1b863e3-e069-4a4c-97c8-9a9b02bc2b3a">&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,479,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_071651fc-f7fd-4c9d-9357-6685cfaefaf0"
      decimals="0"
      id="F_a0a06876-ec26-4add-96ba-c43f2a151c26"
      unitRef="U_USD">1479000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
