<?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_0371833b-b0bb-4b54-aee3-cd7db9447b80">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_0103ae27-b681-46c9-92cb-ca2658284d2e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_a7fa4bfe-a55a-4127-ad2e-13d78174fe31">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_52b05ec7-0ffe-4511-90cd-b3273c56f3d3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_d11fe584-7d99-4a9c-98f5-675b2a6fa099">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_dd0e5360-b5f4-40f3-adc3-6714d9cd3f96">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_2a84a841-a1cc-463f-bc83-be4c4facf42c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_78b747da-1833-4372-8219-9fea84a0095c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_d43a3c24-30be-4ba0-a16d-d0f5cc076962">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_92cf92f9-4785-4076-9e5b-ea67abd9d09c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      id="F_dfdcfee9-a554-4116-b1fd-b0f9e937b0d9">&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;9,470,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_0371833b-b0bb-4b54-aee3-cd7db9447b80"
      decimals="-3"
      id="F_a4d862a2-7390-4caf-bf6f-5b0bc6fdecd1"
      unitRef="U_USD">9470000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
