<?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_d58ead47-bd2a-4f6c-9381-8786ba9d22e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_f1c6400d-38c1-475b-a4d9-79ac84743024">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_fb684a25-ec1e-47d4-a1ee-a5f3d2e7d007">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_29fc2937-99e2-4005-b9e5-8dfda3d9fe76">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_8c53246a-1847-41e1-aa67-5d07ea8b7053">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_32cbeee9-3276-4b1f-8c6c-90d4306d9e1b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_a9d91e15-63cf-4cad-b4b7-9b4e1fa94326">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_a32d8420-eae6-4da0-9177-940731b851a8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_13c78104-81a3-405a-b2b2-4843e5940ada">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_27a678a8-472e-4583-95b7-56f70dd5cb63">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      id="F_5151c093-7e6c-4aea-8355-7779bc2aa7ea">&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;5,595,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_d58ead47-bd2a-4f6c-9381-8786ba9d22e4"
      decimals="-3"
      id="F_53ded663-02af-4eba-b004-ed97219f2e33"
      unitRef="U_USD">5595000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
