<?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_7810530a-461e-456f-b3e9-036d8dbb4b29">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_fb81f96e-8ae3-4568-bda7-d5031270f65d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_22e420ab-d990-4997-b0e0-a899a3c89b9d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_af7bb342-1023-4d82-81b0-55a48bf2df90">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_22756e0b-256f-430a-914b-f86b4dada6d4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_432dae51-52f4-4365-896a-2a0830b2d020">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_1808c10a-08a3-4e23-b8d7-3a561c98e92d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_4434df06-8a09-408d-98f5-cbba4c60cd95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_740f267a-4045-40cc-b2be-9001611338fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_b0674204-5202-41e4-a056-02af59ed5864">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7810530a-461e-456f-b3e9-036d8dbb4b29"
      id="F_6619ef78-4741-468e-b82c-6bf9409e5dc4">&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;455,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_7810530a-461e-456f-b3e9-036d8dbb4b29"
      decimals="-3"
      id="F_cbee55d6-4ba1-48c8-bbd9-9a548790bf85"
      unitRef="U_USD">455000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
