<?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_b09eb6ac-9086-4728-9006-3732ecd902da">
        <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:SubmissnTp
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_92687635-9541-46dc-975e-7cc6c030eb1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_4da76fb0-a911-49df-87d4-964ba8ac5190">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_b046b16f-8488-48e5-81ad-f67ec596141e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_c26beaa6-bb19-40a4-ad27-1150c93f9982">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_e6472931-21b3-4a5a-8fe0-ca75dac1549a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_eaea4a33-be29-4d69-973e-4e8a22dcda4f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_dfa97572-b85d-4e32-b783-c4a11dbabd94">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_70674f1e-8e3b-4e7f-9eb3-b35ef72a1b54">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_10c352b9-fd26-4440-b341-3e8df6bf2026">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b09eb6ac-9086-4728-9006-3732ecd902da"
      id="F_8c71a799-b1af-4d4b-b775-7a4eb703ced8">&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;4,248,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_b09eb6ac-9086-4728-9006-3732ecd902da"
      decimals="-3"
      id="F_d712f4b4-9c77-42cc-938b-c9eb9dcdc486"
      unitRef="U_USD">4248000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
