<?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_59c6a7b5-ad79-4de1-8252-413a2fe397af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_5f70edfc-09eb-4354-9b2d-f14649568436">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_3aac6153-a521-4242-9479-c3dde99b084c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_90a14474-7d89-4694-a389-88b90b8d68d7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_0c53eea3-38e8-4ba6-93cf-27526ac2ec7f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_f2b9185f-7e38-4fb6-a51e-b236a3bc608b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_880f742a-a887-49b7-9c38-1f578eccee12">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_e135a129-e381-49ec-8350-ccddca2ad659">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_35f553d5-e723-4ed3-86d7-311e4434f363">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_8021f287-685e-4b1c-899a-4dbfac3ba6a6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      id="F_74c25f84-af3b-4f40-aaf4-97fff969bf09">&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;935,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_59c6a7b5-ad79-4de1-8252-413a2fe397af"
      decimals="-3"
      id="F_cc186899-1b61-4985-9d05-373451343544"
      unitRef="U_USD">935000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
