<?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_e82c9977-cd63-4049-8901-95effab97089">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_4854121d-ed96-46ee-baa0-97c8520d3088">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_b407ee4d-234e-452d-8ab3-d981632ff348">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_d5cc9987-4c91-48e4-a1a2-1701de55df5d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_ac5d81af-9581-426c-91d4-4ee1b5b637c3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_aa2edf1f-6ef1-4841-b2e0-ee58972d5f73">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_64460b10-75e2-42d6-b619-191057a37887">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_e72f9909-6743-4cbd-b9f0-d9c48a6a1582">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_11db679a-0ca1-4f8e-b161-f0fc795a605a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_b912c3a2-100e-47b6-a75d-2e372e84a50d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e82c9977-cd63-4049-8901-95effab97089"
      id="F_f88e5bab-1abe-4105-acf6-1d206e77f258">&lt;p style="tab-size:26.66px;font-size:12pt;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;586,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_e82c9977-cd63-4049-8901-95effab97089"
      decimals="-3"
      id="F_b12a45d2-8e50-421a-83b8-9eda3c8ebc51"
      unitRef="U_USD">586000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
