<?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_25980df1-2eda-416d-aa70-e6fff4cd35c7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_3f668873-598e-4743-ae28-f4cdcc83f31a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_06406a39-f128-40d3-8c26-66d7954714bb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_d2b04de8-7f3f-46d9-baca-ec56ff0e3e8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_d69bfcc4-9375-4020-9fa4-3c274b702f1a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_668b7184-c870-4eb3-aad0-d0a19d9f7dec">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_d07689e8-5424-4331-9a1f-d0971f26d66c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_899b6bed-8974-4a8b-b9f7-6bfec5cf1da4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_40ae0cdd-1279-4afb-b63a-c88ede81fb6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_5134834b-f721-446c-973f-a824b1029683">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      id="F_93aac95f-bd3f-40ba-a649-0b9bf767780a">&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;1,183,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_25980df1-2eda-416d-aa70-e6fff4cd35c7"
      decimals="-3"
      id="F_d7930145-d1b9-49a6-ba02-d064f60c4589"
      unitRef="U_USD">1183000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
