<?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_4fe92225-f229-438a-80a5-781194c1df1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_4a299368-de44-4777-bdc1-50d514b2eb60">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_e08f33e0-7e03-4ad7-bd8f-4c436423bd5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_68b3c5a8-0fca-4ef3-9525-1c13b4c1cfc2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_202227ce-df33-498a-8169-44a482896aab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_af3ed81d-b9fc-4687-94a3-936e76a47ab5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_090f6d29-ff43-4366-b8eb-9d1fc284d7c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_a9857b83-a4fe-43d0-8ebd-00a7d0c498d3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_60e01d85-2926-4fbd-bf74-9c7cdbc9c27f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_c36bad43-5490-493b-b793-85296a4e6db8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4fe92225-f229-438a-80a5-781194c1df1f"
      id="F_ca7e0203-86d3-4072-b5d5-c7b6115842d8">&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;6,335,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_4fe92225-f229-438a-80a5-781194c1df1f"
      decimals="-3"
      id="F_ff058535-d0ae-4704-a956-923324cee210"
      unitRef="U_USD">6335000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
