<?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_a09e35ad-f338-405e-9f1d-b2818bf7ea76">
        <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:RegnFileNb
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_43d4ccff-3559-445a-a102-1e8d03ba290e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_1aba5f7c-b20b-42c4-8dd9-ec47e333ff1b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_0c79bd49-32a5-4cee-bc41-f015804009df">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_e61febea-94ad-41c9-98d5-f31de38daf11">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_cbdce0a6-3dec-40c1-ac7c-529445878c91">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_2280e28b-45ac-4cf5-97d5-e4eae4f7bc00">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_3b36a4dd-d6b6-4a64-903c-76ad68981237">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_1ffdc89f-f99b-43bf-9f83-bcdb6ae9ed63">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_7919224f-4fb4-4ea4-ac55-e6bc8f7178ee">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      id="F_205f5843-d26d-45ca-82c3-77757ef29629">&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;2,318,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_a09e35ad-f338-405e-9f1d-b2818bf7ea76"
      decimals="-3"
      id="F_124e5912-eedc-4220-840a-aa44f7d53120"
      unitRef="U_USD">2318000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
