<?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_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c">
        <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:SubmissnTp
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_d00928d4-b9e4-4e41-bc7c-9dd03b1bbe38">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_b836351c-4458-4f39-8dce-435e9f85b7c5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_eb0de6e7-ae41-41c7-8aed-d9142060cc32">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_6ea2c90b-4293-4c36-b8fb-55e020f0b103">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_789d3e6f-c219-4113-9c5d-f658955028ed">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_5e4d1871-9bd7-4451-b585-ef02ac70fe93">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_3d0fd247-1372-46d9-b463-0e4bf596d19c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_46a571de-86b7-4f03-bf44-2d9e5bcb69a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_8708fa40-e650-43ea-be15-7e141e06a425">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      id="F_356e2a27-16e3-4993-94d1-f84e260cc2d3">&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;88,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_c8f89e71-76e1-4c3c-9d17-1a59b8a15d8c"
      decimals="-3"
      id="F_2aa57ce3-fa5b-458d-ad27-10fa530b6792"
      unitRef="U_USD">88000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
