<?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_2f475005-877a-42a3-83cb-2797a105acb3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_04e306c7-e583-4482-89c5-0d5d993179dd">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_78de5d78-44df-4143-998c-e424bbfb315a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_6f17e3c4-50aa-4f88-ab94-97cbc4a85742">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_3e19de25-5092-4a16-a949-dd8da99dab58">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_edb74788-2127-4c7d-84ea-6737e93f4c73">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_d9326f0a-9eb1-4434-8103-0c628aeb0711">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_c85e03ed-3d59-4dc7-9816-fa55f2f8da3c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_f31894e6-c44c-49ae-ad81-046606cb4105">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_5f0960a7-61be-4c21-beea-7c2e52e8a571">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2f475005-877a-42a3-83cb-2797a105acb3"
      id="F_8d668212-a19e-4f98-bdea-ccbc32f473e5">&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,872,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_2f475005-877a-42a3-83cb-2797a105acb3"
      decimals="-3"
      id="F_e20c8fb8-3b52-4023-af51-df62e58eb17f"
      unitRef="U_USD">1872000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
