<?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_87ef8f6b-ddc0-4854-b33d-7871436a5822">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_66380eef-b739-4f97-90b9-bb42b13d16a2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_a26a6904-d4b5-417f-bb8c-990431014f47">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_b0b8d9d8-e74e-4701-9cb7-dd4a6e89fda0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_80e251bb-87c4-48ad-9edb-f3e7c0df36e6">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_3dc3719d-8afc-4a07-8b4a-be27fa8cf7a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_b1aa656c-2b16-48dc-a04e-15d5c3c09497">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_ceecbe06-09f2-4b73-aba1-696fba792f7a">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_00e316e9-1e85-43fa-ad0f-64f33c169c36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_a2c878ca-ec8e-4443-a5d1-ce6530b7b673">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      id="F_0aec1215-aeff-4340-8c64-f42882dec111">&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;14,010,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_87ef8f6b-ddc0-4854-b33d-7871436a5822"
      decimals="-3"
      id="F_bf99bba2-e4e5-4592-a65c-5584077f9991"
      unitRef="U_USD">14010000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
