<?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_c51519e2-c486-49f2-bdaf-9e2c6af77988">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_2dd97344-ca50-4285-83d7-55133982c037">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_2810c557-f44a-40a9-9595-0c6ba8be0390">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_0007d669-a3bf-4cf5-905d-dda9ec2c6d4e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_adecb730-f369-41a9-8928-8a57441bfed7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_507a16a9-7ff1-4c52-bccd-84d8fd6bde1a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_f51b824d-e415-4a31-89a6-520764a996d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_f4cdb387-7aad-4dfd-bcd2-d408fd3cdae5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_05bc6906-de49-461c-b420-31f97ada680d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_f24b55c5-65f4-42d8-910d-023d5143853b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      id="F_03b12d02-d64b-488b-9739-25512c9518be">&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;250,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_c51519e2-c486-49f2-bdaf-9e2c6af77988"
      decimals="-3"
      id="F_adee87e0-16bc-4729-adda-f9fe89132136"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
