<?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_87b218ce-5331-4973-9ce1-50c83d1c340c">
        <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_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_ca8cb885-5aa3-41d6-ab37-bef5340330da">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_693304b6-c196-46a0-b5a8-62d108ab76ec">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_8852394e-45aa-4b32-b987-9e766e32da8d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_e2a3f2f9-8837-43b5-af0b-54ac05db964e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_365f4aba-07b0-43c8-bbbc-e5f95651e767">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_16cea71b-8806-4f97-85bf-34e0e42aafaf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_f3d060cf-17c9-4e1f-94bd-7758ffb9e333">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_398d9bbb-3886-4496-b082-4cec9e02acc5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_566f6d9a-ff07-4f92-8259-85d9ac6b2d9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_87b218ce-5331-4973-9ce1-50c83d1c340c"
      id="F_5eeab8ae-3426-4020-be18-a5c1b9f6a857">&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,148,770&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_87b218ce-5331-4973-9ce1-50c83d1c340c"
      decimals="0"
      id="F_3e5a2e22-6ea6-4cb6-a9af-c5c7300db46a"
      unitRef="U_USD">9148770</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
