<?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_0153fc44-560c-4ae0-b179-26b549436ee4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_af9c36b8-a54a-45d3-a47b-74690c04adfd">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_7c306040-0e81-4746-b75b-a96ecbaa83c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_0e5d63ef-440c-4d00-91c6-d04fcd7788b1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_42df2371-bac4-4df8-9bb2-ca4e293bed2c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_6a0e4414-fea6-49ae-a02a-8d2ed357d2a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_389d8007-df2f-4afb-b343-808d48a083dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_00c9a4e6-fed6-4cb2-8897-01d508c24bd7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_01664d79-934d-429d-a817-d3ff1f17da2b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_5f09887a-ed8c-41f5-bc7d-36578cc8e2d0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0153fc44-560c-4ae0-b179-26b549436ee4"
      id="F_63a2af9d-1932-48f9-b8d8-55649f24ed70">&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,177,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_0153fc44-560c-4ae0-b179-26b549436ee4"
      decimals="-3"
      id="F_46fa6159-7e3c-4ea4-929a-6f2599c246c1"
      unitRef="U_USD">1177000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
