<?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_f5914069-582c-4573-96db-32e4b2a66bd7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_27d8c3ff-b827-40f8-a0a2-b06a068063cc">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_83b5a598-e24b-43fc-a3b7-27b41b1327a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_01d0f41b-7997-40b0-9d19-5735dafc60dc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_6c4fd642-6015-40b4-8286-8101d9273ef1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_e8bb929c-0192-45fc-aad4-28cd8db58813">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_6a29468a-5f2d-49fb-bee9-626143a42651">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_8335d96a-8f05-430b-b16a-671edf0acd19">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_4f268ac4-c203-4a72-9541-2a8bf25118b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_b8211b63-f450-4400-9c62-f9ed825a9024">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f5914069-582c-4573-96db-32e4b2a66bd7"
      id="F_75a45d54-214e-4c34-ac6b-69f6a5cf53d3">&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;325,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_f5914069-582c-4573-96db-32e4b2a66bd7"
      decimals="-3"
      id="F_12f85a01-c595-4057-8ae8-1604c39f92fb"
      unitRef="U_USD">325000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
