<?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_a98cb0f9-4851-4c05-b821-1d317059e2f4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_ea13c7f8-f00f-4e3c-89e2-4bda45e63614">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_a1a06744-e5b7-48cc-a519-9f7025d42024">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_389888f1-20dd-4e29-b8e6-28ff12bdd355">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_03831c79-4b57-4e0c-83c6-01af9f239a46">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_62236b3b-11de-4281-a56c-d6585f3b9b32">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_2c1f56fd-d44a-4959-9f5e-d111e955e74e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_ce338020-a985-45d7-ac6f-675ecdb1d0fc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_4c1fef39-2ae5-4243-a405-0fb7efcd73f9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_a071f506-e62c-474f-b87d-dc1f005f2df3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      id="F_4f68c437-74d1-4aac-9d12-ea8af109a6f1">&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;2,211,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_a98cb0f9-4851-4c05-b821-1d317059e2f4"
      decimals="-3"
      id="F_16eb42fd-d663-4b14-8998-0d0c749856b9"
      unitRef="U_USD">2211000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
