<?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_c26950c0-2849-46a4-94af-6bfee9d4584d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_bbe7c0a8-61de-4adf-bb46-9cde21b0292e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_2a4cc8a7-3a66-4eb3-90e2-d87e2aada521">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_6e356dd2-482c-4e42-a596-f1eaca499a17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_f7b4b6fd-fa21-4067-b46c-eb3e504f5c55">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_3214f67f-01de-44b0-8818-f40941ad6831">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_df7295d1-ca71-4242-afd7-73766c319c78">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_0efa5f5e-d2ab-45a3-8257-bdcfc3624df9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_c816827a-e4c4-4bb9-b947-196ad21da543">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_de4bed00-c6ac-40a4-afc2-97b21e39659d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c26950c0-2849-46a4-94af-6bfee9d4584d"
      id="F_0f15f1b4-b7d9-4c50-9194-8f94abaf21e5">&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;2,068,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_c26950c0-2849-46a4-94af-6bfee9d4584d"
      decimals="-3"
      id="F_7b627f22-d50f-448b-b7bb-a44067063247"
      unitRef="U_USD">2068000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
