<?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_2bc333a3-216a-426a-adeb-1bb58c68dbc2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_cf3d046e-b2f3-4466-9907-dec3778da0f5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_3be905c2-3492-4a86-aa76-58b92a5f0358">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_bded03c5-6eca-4c63-b437-1a2566145b5f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_69d9a5c3-14db-488b-9319-001b88bc5cdc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_461a595c-ca8e-447f-bd7d-bf663b8c1bac">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_c83fc470-18e5-464a-82aa-333072de04dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_f0ff933c-c724-4192-b154-1b7cc896749c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_0dc4f7e6-6f53-4f7f-a6b7-d8dd7bf3a688">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_f46b585d-2875-428e-aef2-a671843acb79">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      id="F_be0981e7-26b2-4331-83c8-6dbcb36d8cd5">&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;3,735,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_2bc333a3-216a-426a-adeb-1bb58c68dbc2"
      decimals="-3"
      id="F_34e76df2-a731-4ff0-9936-f7b4acd7a09c"
      unitRef="U_USD">3735000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
