<?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_e736b80e-71a2-4869-b6f1-e87ae1b51469">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_fcb31ced-25e2-4260-b626-1b0a6c040561">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_eb38417c-e632-4bb2-ae74-76637e9fdd62">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_39658ebb-911c-4517-bc2d-4a41a7c4cd33">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_cd1ca47f-5b04-4c1a-97c2-3474da12a245">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_0581c786-57d0-4c91-be0d-f22171476c97">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_d5873393-e251-493f-9d9d-619c8828b318">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_f9413818-1dfb-4b6b-841f-abc42b064971">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_6ddcecf0-0a0f-4c85-bf6c-8af72f8d9f82">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_367282dd-12ba-4a44-b46f-063ccefa941e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      id="F_af93e8b5-1be7-4749-9f23-3853601b73da">&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,375,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_e736b80e-71a2-4869-b6f1-e87ae1b51469"
      decimals="-3"
      id="F_052081b5-b936-4c92-9bb8-95429665d45e"
      unitRef="U_USD">1375000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
