<?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_e1f096df-2826-4e86-b769-bdbe0a098bbb">
        <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:FeeExhibitTp
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_7881ff2d-f007-4537-a6ed-bb15372ecbd5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_86882bb6-e72c-4d28-875b-02f432241964">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_67fe9b5f-01da-4da1-9885-090bdbd90b2f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_b6c6f10f-43a2-4518-aa7a-0df5d9b89783">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_90ac039d-cfa0-47ff-bcf0-9ccdd51eed81">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_a3d349b3-cff9-483e-9429-3dd0b9a25a3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_674fcb1d-c3bc-4db7-a15b-c1387a538ee1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_2c77c974-7a7d-4105-97d3-561a00c524eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_173974d8-4625-44ba-b02a-b7ca6c8bb61c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      id="F_f960fd63-d86d-44dc-b712-b8b069aaf41f">&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;786,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_e1f096df-2826-4e86-b769-bdbe0a098bbb"
      decimals="-3"
      id="F_8c2cc50a-25bf-4900-bab3-2a5afe6cb7a3"
      unitRef="U_USD">786000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
