<?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_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6">
        <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>
    <ffd:FormTp
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_6aeb835a-ea5c-461b-bef2-eb692c8439a7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_5db6163d-61c7-49e1-a7ca-343ac642835e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_7b68a700-f02e-48b3-ab03-62028c9dbc0d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_5ca432e4-00cb-4aed-96d1-ede8ecbf80ae">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_5b57b8d8-c1c1-4ca3-8b92-837f0e3f2b81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_e1fdcc59-fba6-47be-b7ee-c6aa2225868d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_ac02a893-550b-4d53-a84a-885f7d7cc7bf">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_79088c72-18a6-49ff-b18b-0fbb0e3c4059">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_b1dbd12a-1203-4dee-8827-3b44c4e1504d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      id="F_92c370a4-4c1c-483f-9692-0e10f5024d01">&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;443,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_782cc3d8-f8bd-4d09-ac18-9a0f224cadc6"
      decimals="-3"
      id="F_5d150142-4bd0-4e4b-a016-13205f4acc95"
      unitRef="U_USD">443000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
