<?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_3832e310-1c21-4220-96fe-9f359da5f6bb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_c88ef4fd-f14a-4af8-b497-6f5769858d31">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_7b36a23b-1259-4632-85ec-99e7c4fbb91a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_0435d506-e0c4-4111-81e4-455818e98488">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_c4414150-092f-4075-bd5f-a152e12add38">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_ba6028e1-5e7a-43f3-976c-432a9a316e3d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_2a949d67-e616-486f-a597-f76611a18677">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_28655146-9b3d-4dc9-a8b2-76fe47eae685">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_caddbb57-c6d4-43df-8c94-d1f32b9397f5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_9634384c-345c-4846-910d-6cd3231150ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3832e310-1c21-4220-96fe-9f359da5f6bb"
      id="F_bd47aee0-7bbd-4e73-9d8e-7d04e4898fd6">&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;9,777,630&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_3832e310-1c21-4220-96fe-9f359da5f6bb"
      decimals="0"
      id="F_f42a3d5e-6740-4e2f-900e-39233581c143"
      unitRef="U_USD">9777630</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
