<?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_37f79ac7-1047-4bda-9caf-74b50d40caa3">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_c2e1f497-98de-4517-b939-47cd069043d9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_514da7fc-fb5a-4022-9887-929103eaffec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_c06f4ff2-35e5-4445-8270-ae256763745f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_6dd71ac3-6445-44a2-87c9-3aa7e05a2464">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_e05a10bb-ab62-4554-929a-0ef40d711975">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_a3de3d64-c35f-41ce-82ef-df049bc804df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_426e48db-1acb-4aca-8fcc-702df659018c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_ecfa7944-6f98-47e8-be2f-cbdd0ca500f6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_f4f9425a-b3cd-481b-aa39-9abcb3b2de18">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      id="F_36c65f58-9cad-4e6d-93cb-cf5a44330ac4">&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;147,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_37f79ac7-1047-4bda-9caf-74b50d40caa3"
      decimals="-3"
      id="F_1e2e4b1f-bf64-4ea4-b87b-95cb00338f2f"
      unitRef="U_USD">147000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
