<?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_a717173a-3855-416c-944c-b5b69ad17228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_ac97b31b-e8dc-4f93-9375-d718886833d8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_2076ad5b-1c23-42a0-a476-f9317ba7d65c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_c7dc0d00-59d8-4520-85a4-deb4fa334b89">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_c0b79ef6-ec75-4394-b35b-a9e3b9fb1933">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_d4706a0a-c2fa-4a31-819a-ffc4f32b8d5b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_27e96df6-553b-4d0f-adf6-5372a8c3878a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_2ce5551f-03f7-40ca-82de-fc80b8cc4764">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_f8893f82-e281-47cc-99d7-6e9231f7a192">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_948560cd-3a67-441e-9eb0-fb7272b106d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a717173a-3855-416c-944c-b5b69ad17228"
      id="F_f0bdc0a5-2fc9-4af5-a002-75cce65e21d8">&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;25,776,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_a717173a-3855-416c-944c-b5b69ad17228"
      decimals="-3"
      id="F_5b962303-d5b4-44cc-9fce-6ba6e6abfef9"
      unitRef="U_USD">25776000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
