<?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_0176dc2a-bda6-4e6f-8c5a-79a7c0125479">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_7915acf4-4b6e-4d1d-8aaf-955e8e427c64">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_449d878f-274b-497b-b21c-e0d31de15cb0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_db4a6999-722d-486b-8d01-a07afc89a8d9">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_80cc6d21-1cd8-4b60-a3f7-321c05a67aa8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_555e0509-bd7d-4c89-98a8-727cdd8d1c0b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_c4654fdd-8e0f-45dd-8e63-fa4c10c8d6f0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_eacc6416-7a13-4821-85e1-da04351ffec1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_44f3bdaf-24ce-4ebf-82a9-b5cd135c6662">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_2dc9ec2d-1e78-4b46-83e3-2fb6f63fba88">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      id="F_002bed6c-9d10-46d7-8b14-aeb940ae05b5">&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;1,060,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_0176dc2a-bda6-4e6f-8c5a-79a7c0125479"
      decimals="-3"
      id="F_466317e0-13ab-40e9-8b02-9fc82c3ff405"
      unitRef="U_USD">1060000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
