<?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_dbde8d2d-7312-4b44-bf42-b72579505bd2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_cb40ecb7-d87d-4738-b2ee-0d712faa8b7c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_5257f3f4-8678-4aef-98f9-f90ffca95351">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_13239302-7198-4e5d-b8e5-a1a89c639258">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_af0499a5-8ffd-4ebe-8914-31f9c5ad8b63">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_4c79ff2f-8a6e-4b3d-8e4b-97576a8b3790">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_7fbf1dc9-dd60-41b9-b031-87fd033521b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_1c831c8e-c122-4a1b-9872-36316f499c5d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_c96c8e70-fa0b-4ab9-9e60-7a654c841054">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_d8202ca6-53cf-4cd6-80bf-9d89b4eddd9e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      id="F_4daf15de-7493-434d-8bfd-85436a0a7c55">&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,238,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_dbde8d2d-7312-4b44-bf42-b72579505bd2"
      decimals="-3"
      id="F_364165dd-16a5-4c3e-ab1f-589b8b5fbf13"
      unitRef="U_USD">1238000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
