<?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_6094b844-2596-4593-845a-cd100da2edb7">
        <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_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_85d1efd9-79a9-4b45-90c9-2385c2c696ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_5925a82e-9772-4a04-baa8-c6116d38dd9f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_17224289-87e6-4e21-8193-7b897981df2e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_c3b858af-131c-4b46-ae0a-5c4e9b8f1ad0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_ffc4546c-e93a-4a1c-9123-85c87c5c4b88">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_387b96a4-649e-435c-969b-1b04c1c8bbf2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_2b3c84fe-3849-4700-8c8b-42ccd4d7c266">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_cf8978ee-7658-4100-8f34-95367c7f70c2">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_09a5554b-89f4-4065-ac12-d5558d623a06">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6094b844-2596-4593-845a-cd100da2edb7"
      id="F_b2c3e66c-c501-47b7-ad03-d72344554a4a">&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,145,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_6094b844-2596-4593-845a-cd100da2edb7"
      decimals="-3"
      id="F_8a30fb0c-26c8-4cae-9e10-d4cfb41ec0bc"
      unitRef="U_USD">1145000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
