<?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_3ecac60c-beec-4634-89ee-624bd2cff439">
        <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:FormTp
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_930c7b52-9cb9-49ff-bc4a-f9ed3f63dcdf">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_b5d0cd6d-9778-40f1-92a5-f407f5ac9103">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_b24d9ee4-17ae-4f00-92c9-1f2805d55bae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_361a4db8-f20a-421e-9a13-284329edfe11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_88b62c67-832e-48e3-a329-4eba0eaff1e0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_ef3ab6b1-88f5-4b23-8f58-d6d2dcc0095a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_acbc7e18-7948-455b-96a7-628140273a26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_779bcf74-5f02-42d9-817c-d3744a4747dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_fc89d266-09a8-407d-90e0-496e9d750cf4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3ecac60c-beec-4634-89ee-624bd2cff439"
      id="F_a3da56a8-724a-4408-b56b-6121b4ea364e">&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;3,304,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_3ecac60c-beec-4634-89ee-624bd2cff439"
      decimals="-3"
      id="F_3fe4c969-2389-481d-bfe1-e6fe9170082b"
      unitRef="U_USD">3304000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
