<?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_be1153b3-8c27-42e4-ab55-43f2b7d8eef4">
        <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:FormTp
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_77bea2ec-f423-4a59-89eb-b238398e2828">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_31f4cdb7-2c4e-423d-9d68-3cc522cf473a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_c98f207e-02fa-41cf-b254-0f60c190ac29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_a777981b-ede2-4806-a896-65a4bb2a0f63">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_c5f1557b-f3b0-4799-b653-b615c159cb31">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_0242d656-dedb-49a0-8f99-500b9227cc44">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_f5a4b37b-72c1-4fbb-b69d-84e5954ead47">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_d06ae477-c9d6-468f-a4b5-4a135e450d0d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_46b3dcbc-e4fa-4811-946d-d47e1a0d4359">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      id="F_a7c65e53-5089-4bd6-846a-07eb5164f6dc">&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,630,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_be1153b3-8c27-42e4-ab55-43f2b7d8eef4"
      decimals="-3"
      id="F_74dc3497-308a-49a8-82ae-35ac6f99cfb2"
      unitRef="U_USD">1630000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
