<?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_2969d541-2e05-4efb-b5c1-e3996386b4d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_8ffca7a7-15c0-493b-9601-1294d586ab64">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_155e66c7-bfc5-4f40-ad5b-69dd0415c8ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_455f2269-6b94-41a1-bfc4-d483befc8f39">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_63092341-f875-4d75-9acb-74b313ace9a2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_47cc7f8c-1657-4868-881c-502e2f98dfef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_d9e91dca-6565-44e5-bcdb-4d2e0acfa381">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_9f4804df-98d1-4edb-9297-380ef92df910">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_6332abc5-0be0-4798-a7b6-8b03b69049c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_04a9a400-e3c7-40e9-a74d-5e5130029b03">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      id="F_13d6ed29-7064-4969-b549-58e7f9b64450">&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;5,000,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_2969d541-2e05-4efb-b5c1-e3996386b4d5"
      decimals="-6"
      id="F_35448f53-8eaa-409d-a24c-4396d125732b"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
