<?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_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc">
        <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:FeeExhibitTp
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_5a397b4c-7952-442e-94d7-f2b5638d0975">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_7f711d75-bd98-4c0b-b146-1f2bc3b5b1f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_3a19c3cf-b364-4274-b8d5-3cb057f97bb9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_6a8d0d62-f0ab-43bc-8d95-24d448162938">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_f2029497-d5a8-48c5-9020-af3ada97d8f3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_ab587b2a-b228-41df-b510-70e7f060021e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_0da91dcc-4578-4a6b-916b-dda919740595">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_76441626-8ef3-4cef-a4ad-af9087e49ab7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_d7b38476-9671-40fb-aeb5-ef10fa143c3f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      id="F_f5513a50-7c4a-463d-9360-3b054a902f55">&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;14,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_2d9611ec-fff3-4f0c-8f8f-4e292f8a1cdc"
      decimals="-3"
      id="F_01129ddb-44e5-4eb0-b43c-cd80333409c8"
      unitRef="U_USD">14318000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
