<?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_594cf9da-86b4-4d10-a164-b9a4e25786ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_5968bdac-a103-4ab5-8156-5c6923adf78b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_4ab2e5bf-db57-48e1-8c39-95e119dbb0aa">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_54ab962c-db4f-4c35-86c7-cc5022f99541">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_55f9cdb9-4b2d-4f87-b2bc-7c5bd45d0432">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_c34fb011-2933-4de5-9873-7877cd7b3e05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_7d24d591-0d25-4521-85ca-7ad0a374aa5d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_b33d7c63-b852-4f19-826a-088d79baf9ba">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_993a4216-a1bf-44ff-b97a-3098d3598149">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_599a767c-abe2-4970-b0fa-991e28110034">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      id="F_5cef1ece-4689-424c-bccb-27a374e85b43">&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;500,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_594cf9da-86b4-4d10-a164-b9a4e25786ea"
      decimals="-3"
      id="F_42521048-fed8-427e-b18a-5d606709674a"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
