<?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_ac4c509e-ad91-46a7-9530-b43bb22eec31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-04</startDate>
            <endDate>2026-06-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_4715ee54-749b-43ef-81cb-289a1791b405">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_d408c5ca-05c1-493c-b86a-2747b5fed5e9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_8e3a3bf2-a152-4662-ba2b-2c162efb7580">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_f673f531-74bc-4382-a473-bdb0e526bd8d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_65e42ef3-f135-4eb5-b29d-38b6c1233ddb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_12c4f958-b8a6-4530-8ad0-05fd022d381e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_e38ab27e-4690-410c-a6c6-a4ba8cc1aeaf">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_d93bdbb6-2513-4b4b-bdb2-85faea58fb0c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_950e72f2-67fb-4f6f-aa36-5bf1e2a3b513">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      id="F_51311c47-a03e-45fb-99ef-10da5a0f300a">&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;6,473,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_ac4c509e-ad91-46a7-9530-b43bb22eec31"
      decimals="-3"
      id="F_8748435f-ca8b-4877-8e4c-afd14c70fd04"
      unitRef="U_USD">6473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
