<?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_435b233e-18ec-4069-bc00-6eaca0bcbf57">
        <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:SubmissnTp
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_d18305d1-ba08-4a15-9954-c8e7643b7d35">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_6cbf9061-ac0d-42e0-87aa-8b0fe31e24a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_b5d03cd6-edbf-49e0-adf9-d132c06195fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_72f88d8a-af13-4972-a510-5d874c99dcd7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_05f8eafc-d733-4640-a066-864da3fb14ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_b5be7096-5d82-4789-86d3-a25af24f82d1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_0d3994be-c241-4374-913c-8cc6d99abcf3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_21dd587e-0264-4b24-afaa-efac2c21d41b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_59fbdf95-5cd0-4d1b-883b-5309a36bbd82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      id="F_524448a6-f862-420b-b3be-65597ece1980">&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;200,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_435b233e-18ec-4069-bc00-6eaca0bcbf57"
      decimals="-3"
      id="F_14193b92-ac54-469a-93f1-97ffe64bab95"
      unitRef="U_USD">200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
