<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_36011e84-dc97-4c59-84e3-8216a0d34235">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_b4253225-e93a-4aca-b770-b99c93ea0681">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_01b0b824-f82b-49cf-90a7-fa45e22b9ea9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_7f0d1692-b078-4fe6-a520-718fe7ed2143">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_8e446c3b-d557-49cc-9f71-c0de1ee7958c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_a6a93cc7-8446-478f-aad6-1db0c34aca45">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_3dc06d9b-8d61-42f0-9649-35141fb31191">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_5c326730-9cda-4e52-9131-3413db10578e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_870a2277-b949-4fc0-8457-76d1f4540b35">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_473827fd-9f92-4576-a3eb-8b32995983ba">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_36011e84-dc97-4c59-84e3-8216a0d34235"
      id="F_c7a2a4bb-bcd9-47aa-8218-81efcb525e5f">&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,854,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_36011e84-dc97-4c59-84e3-8216a0d34235"
      decimals="-3"
      id="F_88cadcd9-240e-4ed4-9e6d-36b7459c50d6"
      unitRef="U_USD">1854000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
