<?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_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44">
        <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>
    <ffd:RegnFileNb
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_ab438722-f943-4c06-b32b-c0c8083e3edb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_a7df8fe8-a2b2-4c7c-8c14-9bd5fde0c012">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_cb089ca0-afa1-45a0-b751-0254e1ab75a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_2fc4b6b1-dcb5-4ef0-b6f9-e8e09d93ce99">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_d2584866-8e60-4f78-8de3-8def2a910bd0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_2c7b6012-4241-4be4-9699-19ecdb92b263">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_d0d441e3-699f-445a-9eed-e7beb6439b1e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_995461df-8dfc-4bfa-8350-7c430c6b2507">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_7c38c409-8d90-47e5-8b2b-6437b0d6c79f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      id="F_b9213ae9-3f8b-4e59-9f60-d6977419c52a">&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;6,000,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_74a696c6-1cbe-48ec-aec7-0cf5f8df1e44"
      decimals="-6"
      id="F_a72ba25b-846f-4779-86c6-a5771ed39984"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
