<?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_eac5d4b0-4354-4aa8-a932-d7120dbaa155">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_a14151c3-25c5-4ee7-978b-8d7a680345ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_acd6dfdb-7da6-4022-9ee7-452dbaef9d00">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_1afd47c8-b782-4d46-abd3-19f30999b4b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_2defde90-8e1c-4cd0-8661-f63191078b6a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_da21f421-8dc2-423d-bdea-2c99497e77d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_d16f9c41-6972-4c57-b58b-9fb4cfbc0545">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_108a9de9-6a07-45ce-b4ff-de50cda4c667">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_b9f42d3a-d380-42d0-9d68-1ec8e1bc8df8">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_8ac6a6c6-cbce-4fb4-8a19-9cb2af92e456">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      id="F_32bbb778-adc1-4213-8161-18108281dc84">&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;544,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_eac5d4b0-4354-4aa8-a932-d7120dbaa155"
      decimals="-3"
      id="F_5295b2bc-2ab6-4fd8-a51c-f9c7f5dbf33d"
      unitRef="U_USD">544000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
