<?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_681b96e1-8153-448b-a374-ed72df38baae">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_6dabd8d4-cfa1-43c5-a89f-1c85d71bc989">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_0307a269-da13-492c-a74d-eb4cb72cfeae">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_2b7278be-cc44-4386-bc9d-3018926ec00e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_9a913075-41f5-4411-bb97-9124e17c0da2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_a8c40f20-5520-43f9-876c-953fdc5af32c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_61ba2d05-634d-4e95-9517-f11f9cde0ed6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_fe961f0e-50fe-44be-8183-c692901d09ae">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_d027b40e-82e5-40d8-918b-16ba63528530">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_68e5a4b6-a998-4ed3-ae81-58e722956bd3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_681b96e1-8153-448b-a374-ed72df38baae"
      id="F_abc515d0-a8fe-4299-830d-602764c2846f">&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,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_681b96e1-8153-448b-a374-ed72df38baae"
      decimals="-6"
      id="F_739a4445-fc7f-4f0f-8fc6-5073a84d723b"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
