<?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_90f3041b-ab23-4ba6-ac59-1e7ea58c139d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_c2f16d44-c18f-4acc-925e-80cc312ac1fa">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_145df4b8-e6a9-4bd0-8c82-842ddd44b49c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_0e7f3fec-42e2-43d4-bd64-74fefd0fc3d4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_bbfe4071-574a-422c-bbcc-bada8b4ea8cb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_eda3e52c-9b87-4a66-9ebd-46cfe527b729">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_31608456-c4d4-422a-a854-568992207f29">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_75656a3b-47df-4eb4-9c45-fb1b48aebf99">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_7c0912f6-17b5-4092-b853-20f010dab98c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_0dd16fd7-255c-4b76-923d-339d1e081817">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      id="F_bc778364-e0db-4540-a8cc-df283099bd1c">&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;946,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_90f3041b-ab23-4ba6-ac59-1e7ea58c139d"
      decimals="-3"
      id="F_af9dacec-2e59-469d-9be9-f860b51d7d84"
      unitRef="U_USD">946000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
