<?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_18760e77-083d-493c-adf7-2204ae510a33">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_96697dad-2821-44ce-9528-237c37aaf978">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_0aaf6445-bd96-4f6d-a907-49e81c29b0e7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_4fc3d9c1-bff9-4142-92e0-2841d5920e9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_bfe6c8db-7223-4704-919d-f23c8fa4b5e7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_c4096a36-3b6e-4fbc-8db4-1e427ebddf9d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_f2dc08ff-a323-429b-890d-7f445f6e14b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_b9b110a9-72b2-4d85-b2d2-92bbab80115b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_7f94cf46-0700-4e17-881b-81bd8e24f663">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_9d42e396-0aef-47de-8e9e-ccf9cc197476">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_18760e77-083d-493c-adf7-2204ae510a33"
      id="F_52294289-b459-4b1d-8371-9ffa7b278072">&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;1,210,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_18760e77-083d-493c-adf7-2204ae510a33"
      decimals="-3"
      id="F_c11e108d-a462-41ac-8a5d-8d974805b152"
      unitRef="U_USD">1210000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
